/**
 * H5 统一视觉主题 — 仅样式层，与业务逻辑解耦
 * 浅色 / 移动端优先 / 可访问焦点环
 */
:root {
  --h5-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --h5-primary: #0d9488;
  --h5-primary-dark: #0f766e;
  --h5-primary-soft: rgba(13, 148, 136, 0.12);
  --h5-accent: #ea580c;
  --h5-accent-soft: #fff7ed;
  --h5-bg: #f1f5f9;
  --h5-surface: #ffffff;
  --h5-text: #0f172a;
  --h5-text-muted: #64748b;
  --h5-border: rgba(15, 23, 42, 0.08);
  --h5-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --h5-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --h5-radius: 14px;
  --h5-radius-pill: 999px;
  --h5-ring: var(--h5-primary);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--h5-ring);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ========== 商城首页 theme-page-shop（新排版：顶栏 + 横滑分类 + 双列商品卡） ========== */
/* 商城页：整页滚动（微信 / 部分 WebView 内嵌 flex+子区域滚动易失效） */
html.theme-page-shop-root {
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.theme-page-shop {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #e8ecf3;
  font-family: var(--h5-font);
  -webkit-tap-highlight-color: transparent;
}

body.theme-page-shop * {
  box-sizing: border-box;
}

body.theme-page-shop .app-container.shop-app {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
  height: auto;
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 32%, #f1f5f9 100%);
  box-shadow: 0 0 0 1px var(--h5-border), var(--h5-shadow-md);
}

body.theme-page-shop .shop-header {
  padding: 14px 16px 12px;
  background: transparent;
  position: relative;
  z-index: 40;
  flex-shrink: 0;
}

body.theme-page-shop .shop-header-top {
  margin-bottom: 12px;
}

body.theme-page-shop .shop-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--h5-text);
  margin: 0 0 4px;
}

body.theme-page-shop .shop-sub {
  margin: 0;
  font-size: 13px;
  color: var(--h5-text-muted);
}

body.theme-page-shop .search-box.shop-search {
  background: var(--h5-surface);
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 6px 0 14px;
  min-height: 48px;
  border: 1px solid var(--h5-border);
  box-shadow: var(--h5-shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

body.theme-page-shop .search-box.shop-search:focus-within {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

body.theme-page-shop .shop-search-icon {
  color: #94a3b8;
  font-size: 18px;
  margin-right: 6px;
}

body.theme-page-shop .search-input {
  border: none;
  background: transparent;
  flex: 1;
  min-width: 0;
  height: 44px;
  font-size: 16px;
  color: var(--h5-text);
  outline: none;
}

body.theme-page-shop .shop-search-clear {
  color: #94a3b8;
  padding: 8px;
  display: inline-flex;
  align-items: center;
}

body.theme-page-shop .search-btn {
  border: none;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 11px;
  margin: 4px;
  white-space: nowrap;
  min-height: 40px;
}

body.theme-page-shop .shop-carousel-wrap {
  padding: 0 14px;
  flex-shrink: 0;
}

body.theme-page-shop .shop-carousel {
  border-radius: 18px !important;
  overflow: hidden;
}

body.theme-page-shop .shop-slide-img {
  height: 132px !important;
  object-fit: cover;
}

body.theme-page-shop .shop-notice {
  margin: 10px 14px 6px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

body.theme-page-shop .shop-notice-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(245, 158, 11, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
}

body.theme-page-shop .shop-notice-marquee {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

body.theme-page-shop .shop-notice-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: shop-marquee 18s linear infinite;
}

@keyframes shop-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-page-shop .shop-notice-marquee span {
    animation: none;
    padding-left: 0;
    white-space: normal;
  }
}

body.theme-page-shop .shop-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

body.theme-page-shop .shop-cat-rail {
  position: sticky;
  top: 0;
  z-index: 38;
  flex-shrink: 0;
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--h5-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

body.theme-page-shop .shop-cat-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.theme-page-shop .shop-cat-inner::-webkit-scrollbar {
  display: none;
}

body.theme-page-shop .shop-cat-pill {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: var(--h5-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--h5-text-muted);
  background: var(--h5-surface);
  border: 1px solid var(--h5-border);
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}

body.theme-page-shop .shop-cat-pill:active {
  transform: scale(0.97);
}

body.theme-page-shop .shop-cat-pill.is-active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

body.theme-page-shop .shop-product-wrap {
  flex: none;
  width: 100%;
  overflow: visible;
  padding: 12px 12px calc(200px + env(safe-area-inset-bottom, 0px));
}

body.theme-page-shop .shop-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.theme-page-shop .shop-p-card {
  display: flex;
  flex-direction: column;
  background: var(--h5-surface);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--h5-border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s;
}

body.theme-page-shop .shop-p-card:active {
  transform: scale(0.98);
}

body.theme-page-shop .shop-p-cover {
  aspect-ratio: 1;
  background: #f1f5f9;
  overflow: hidden;
}

body.theme-page-shop .shop-p-cover .p-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border: none;
  margin: 0;
}

body.theme-page-shop .shop-p-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

body.theme-page-shop .p-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--h5-text);
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

body.theme-page-shop .shop-p-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

body.theme-page-shop .p-price {
  color: #dc2626;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
}

body.theme-page-shop .p-price::before {
  content: "¥";
  font-size: 12px;
  margin-right: 1px;
  font-weight: 800;
}

body.theme-page-shop .shop-p-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.theme-page-shop .btn-buy-sm {
  flex: 1;
  justify-content: center;
  padding: 8px 10px;
  min-height: 38px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff !important;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

body.theme-page-shop .shop-cart-hit {
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

body.theme-page-shop .add-cart-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--h5-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #4f46e5;
  transition: all 0.2s;
}

body.theme-page-shop .add-cart-btn::before {
  content: "\F64D";
  font-family: "bootstrap-icons";
  font-size: 17px;
}

body.theme-page-shop .prod-check {
  display: none;
}

body.theme-page-shop .prod-check:checked + .add-cart-btn {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

body.theme-page-shop .prod-check:checked + .add-cart-btn::before {
  content: "\F26E";
}

body.theme-page-shop .shop-empty {
  text-align: center;
  padding: 56px 20px 80px;
  color: #94a3b8;
}

body.theme-page-shop .shop-empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.45;
}

body.theme-page-shop .shop-empty-text {
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
  margin: 0 0 6px;
}

body.theme-page-shop .shop-empty-hint {
  font-size: 13px;
  margin: 0 0 16px;
}

body.theme-page-shop .shop-empty-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--h5-radius-pill);
  background: var(--h5-surface);
  border: 1px solid var(--h5-border);
  color: #4f46e5;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

body.theme-page-shop .shop-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  pointer-events: none;
}

body.theme-page-shop .shop-bottom-dock > * {
  pointer-events: auto;
}

body.theme-page-shop .shop-profile-strip {
  position: relative;
  margin: 0 14px;
  width: auto;
  max-width: none;
  left: auto;
  transform: none;
  bottom: auto;
  min-height: 54px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  z-index: 1;
  border: 1px solid var(--h5-border);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

body.theme-page-shop .shop-profile-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.theme-page-shop .shop-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--h5-border);
  flex-shrink: 0;
}

body.theme-page-shop .shop-profile-text {
  min-width: 0;
}

body.theme-page-shop .shop-profile-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--h5-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-page-shop .shop-profile-link {
  flex-shrink: 0;
  color: #4f46e5;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
}

body.theme-page-shop .shop-settle {
  position: relative;
  left: auto;
  transform: none;
  bottom: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 16px 14px;
  background: rgba(15, 23, 42, 0.97);
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px 18px 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
}

body.theme-page-shop .shop-settle .settle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.theme-page-shop .shop-settle .settle-label {
  font-size: 11px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.theme-page-shop .settle-price {
  font-size: 22px;
  font-weight: 900;
  color: #fde047 !important;
  letter-spacing: -0.03em;
}

body.theme-page-shop .shop-settle .settle-count {
  font-size: 12px;
  opacity: 0.7;
}

body.theme-page-shop .shop-settle .settle-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.theme-page-shop .btn-clear-cart {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  margin-right: 0;
  min-height: 44px;
}

body.theme-page-shop .btn-submit-cart {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0 20px;
  min-height: 44px;
  font-weight: 800;
  font-size: 14px;
}

body.theme-page-shop .btn-submit-cart:disabled {
  background: #334155;
  color: #64748b;
}

@media (min-width: 480px) {
  body.theme-page-shop .shop-product-grid {
    gap: 14px;
  }
}
/* ========== 用户登录 login.php ========== */
body.theme-page-login {
  background: linear-gradient(165deg, #ecfdf5 0%, var(--h5-bg) 45%, #e0f2fe 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--h5-font);
  padding: 24px 16px;
  -webkit-tap-highlight-color: transparent;
}

body.theme-page-login .login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 28px;
  background: var(--h5-surface);
  border-radius: var(--h5-radius);
  box-shadow: var(--h5-shadow-md);
  border: 1px solid var(--h5-border);
  position: relative;
}

body.theme-page-login .sys-title {
  text-align: center;
  color: var(--h5-text);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

body.theme-page-login .input-group-text {
  background: transparent;
  border-right: none;
  color: var(--h5-text-muted);
}

body.theme-page-login .form-control {
  border-left: none;
  padding-left: 0;
  box-shadow: none !important;
  min-height: 48px;
  font-size: 16px;
}

body.theme-page-login .form-control:focus {
  border-color: var(--h5-primary);
}

body.theme-page-login .input-group {
  border: 1px solid var(--h5-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.theme-page-login .input-group:focus-within {
  border-color: var(--h5-primary);
  box-shadow: 0 0 0 3px var(--h5-primary-soft);
}

body.theme-page-login .btn-primary {
  width: 100%;
  padding: 14px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  background: linear-gradient(135deg, var(--h5-primary) 0%, var(--h5-primary-dark) 100%);
  border: none;
  margin-top: 8px;
}

body.theme-page-login .btn-primary:active {
  transform: scale(0.99);
}

body.theme-page-login .footer-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

body.theme-page-login .footer-link a {
  color: var(--h5-text-muted);
  text-decoration: none;
}

body.theme-page-login .footer-link a:hover {
  color: var(--h5-primary);
}

/* ========== 用户中心 theme-page-user（侧向信息头 + 数据卡 + 下划线分段导航） ========== */
body.theme-page-user {
  background: #eef2ff;
  /* web-view / 刘海屏底部栏：留出足够空白，避免「保存修改」等按钮被裁切 */
  padding: 0 0 calc(120px + env(safe-area-inset-bottom));
  margin: 0;
  font-family: var(--h5-font);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  box-sizing: border-box;
}

body.theme-page-user .user-app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 8px;
}

body.theme-page-user .user-header.user-hero-strip {
  background: linear-gradient(125deg, #312e81 0%, #4f46e5 48%, #6366f1 100%);
  padding: calc(14px + env(safe-area-inset-top)) 18px 22px;
  margin: 0;
  text-align: left;
  position: relative;
  color: #fff;
}

body.theme-page-user .user-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

body.theme-page-user .u-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.35);
  margin: 0;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

body.theme-page-user .user-hero-text {
  flex: 1;
  min-width: 0;
}

body.theme-page-user .u-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

body.theme-page-user .u-id {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin: 6px 0 0;
  font-variant-numeric: tabular-nums;
}

body.theme-page-user .user-role-row {
  margin-top: 8px;
}

body.theme-page-user .user-role-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--h5-radius-pill);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.theme-page-user .user-role-pill.is-merchant {
  background: rgba(250, 204, 21, 0.95);
  color: #422006;
}

body.theme-page-user .btn-logout-top {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 21px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.theme-page-user .stats-container.user-metrics-bar {
  display: flex;
  gap: 10px;
  width: calc(100% - 28px);
  max-width: 492px;
  margin: -20px auto 18px;
  position: relative;
  z-index: 2;
}

body.theme-page-user .stat-card {
  flex: 1;
  background: var(--h5-surface);
  padding: 14px 12px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-align: left;
}

body.theme-page-user .rc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--h5-text-muted);
  margin-bottom: 8px;
}

body.theme-page-user .rc-amount {
  font-size: 21px;
  font-weight: 800;
  color: var(--h5-text);
  font-variant-numeric: tabular-nums;
}

body.theme-page-user .stat-balance {
  color: #4f46e5 !important;
}

body.theme-page-user .btn-withdraw {
  margin-top: 10px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 10px;
  border: 1px solid #c7d2fe !important;
  color: #4338ca !important;
  background: #eef2ff !important;
}

body.theme-page-user .container.user-panel {
  padding-left: 14px;
  padding-right: 14px;
  max-width: 520px;
}

body.theme-page-user .user-tab-wrap.nav-custom-container {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  background: var(--h5-surface);
  border-radius: 16px;
  border: 1px solid var(--h5-border);
  box-shadow: var(--h5-shadow-sm);
  overflow: hidden;
}

body.theme-page-user .user-tab-wrap.nav-custom-container.scrollable .user-seg-nav {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 10px 4px 4px;
}

body.theme-page-user .user-seg-nav.nav-custom {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 6px;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 100%;
}

@media (min-width: 768px) {
  body.theme-page-user .user-seg-nav.nav-custom {
    min-width: auto;
  }
}

body.theme-page-user .user-seg-nav .nav-item {
  flex: none;
}

body.theme-page-user .user-seg-nav.merchant-mode .nav-item {
  flex: none;
}

body.theme-page-user .user-seg-nav .nav-link {
  color: var(--h5-text-muted);
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  border: none;
  background: transparent;
  box-shadow: none;
  min-height: 44px;
}

body.theme-page-user .user-seg-nav .nav-link.active {
  background: #eef2ff;
  color: #4338ca;
  box-shadow: none;
}

body.theme-page-user .tab-content .card {
  border-radius: 18px !important;
  border: 1px solid var(--h5-border) !important;
}

body.theme-page-user #tab-profile .card-body {
  padding-left: 14px;
  padding-right: 14px;
}

/* 修改资料且悬浮钮在左侧时，左侧留白避免挡输入 */
body.theme-page-user.tab-profile-active #tab-profile .card-body {
  padding-left: max(18px, calc(14px + 56px));
}

body.theme-page-user #tab-profile .form-control,
body.theme-page-user #tab-profile input[type='file'] {
  max-width: 100%;
}

body.theme-page-user #tab-profile .btn-dark.w-100 {
  margin-top: 4px;
}

body.theme-page-user .filter-group {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

body.theme-page-user .filter-btn {
  flex: 1;
  border: 1px solid var(--h5-border);
  background: var(--h5-surface);
  color: var(--h5-text-muted);
  padding: 10px 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}

body.theme-page-user .filter-btn.active {
  background: var(--h5-primary);
  color: #fff;
  border-color: var(--h5-primary);
}

body.theme-page-user .order-card {
  background: var(--h5-surface);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--h5-border);
}

body.theme-page-user .oc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--h5-border);
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--h5-text-muted);
}

body.theme-page-user .oc-body {
  display: flex;
  align-items: center;
}

body.theme-page-user .oc-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 12px;
  background: var(--h5-bg);
}

body.theme-page-user .oc-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--h5-text);
}

body.theme-page-user .oc-price {
  color: var(--h5-accent);
  font-weight: 700;
}

body.theme-page-user .oc-btn {
  font-size: 12px;
  padding: 6px 16px;
  border-radius: var(--h5-radius-pill);
  min-height: 36px;
}

body.theme-page-user .btn-del {
  color: #cbd5e1;
  font-size: 16px;
  padding: 8px;
  margin-left: 8px;
  min-width: 44px;
}

body.theme-page-user .withdraw-item,
body.theme-page-user .agent-item {
  background: var(--h5-surface);
  border-radius: var(--h5-radius);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--h5-border);
  box-shadow: var(--h5-shadow-sm);
}

body.theme-page-user .w-money {
  font-size: 17px;
  font-weight: 700;
  color: var(--h5-text);
}

body.theme-page-user .w-time {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

body.theme-page-user .w-status {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

body.theme-page-user .w-status.s0 {
  color: #c2410c;
  background: #ffedd5;
}

body.theme-page-user .w-status.s1 {
  color: #15803d;
  background: #dcfce7;
}

body.theme-page-user .w-status.s2 {
  color: #b91c1c;
  background: #fee2e2;
}

body.theme-page-user .float-home-btn {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1050;
  transition: transform 0.2s;
}

body.theme-page-user .float-home-btn:active {
  transform: scale(0.96);
}

body.theme-page-user .float-home-btn.user-fab-home {
  /* 抬高少许，避开小程序 web-view 底部手势条 */
  bottom: calc(32px + env(safe-area-inset-bottom));
  right: max(14px, env(safe-area-inset-right));
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.4);
}

/* 修改资料 Tab：首页悬浮钮移到左侧，避免挡输入框（仍可从表单内「返回首页」离开） */
body.theme-page-user.tab-profile-active .float-home-btn.user-fab-home {
  left: max(14px, env(safe-area-inset-left));
  right: auto;
}

body.theme-page-user .product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  color: #fff;
}

body.theme-page-user .bg-audit-0 {
  background: #ea580c;
}
body.theme-page-user .bg-audit-1 {
  background: #16a34a;
}
body.theme-page-user .bg-audit-2 {
  background: #dc2626;
}

/* ========== 模板选择 theme-page-tpl（顶栏 + 订单卡 + 通栏模板列表） ========== */
body.theme-page-tpl.tpl-page {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 0 0 calc(96px + env(safe-area-inset-bottom));
  margin: 0;
  font-family: var(--h5-font);
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

body.theme-page-tpl .tpl-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--h5-border);
  max-width: 540px;
  margin: 0 auto;
}

body.theme-page-tpl .tpl-back {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--h5-bg);
  color: var(--h5-text);
  text-decoration: none;
  border: 1px solid var(--h5-border);
}

body.theme-page-tpl .tpl-topbar-copy {
  flex: 1;
  min-width: 0;
}

body.theme-page-tpl .tpl-topbar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  display: block;
}

body.theme-page-tpl .tpl-topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--h5-text);
  letter-spacing: -0.02em;
}

body.theme-page-tpl .tpl-topbar-placeholder {
  width: 42px;
  flex-shrink: 0;
}

body.theme-page-tpl .tpl-order-sheet {
  max-width: 540px;
  margin: 12px auto 8px;
  padding: 0 14px;
}

body.theme-page-tpl .tpl-order-sheet-inner {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.2);
}

body.theme-page-tpl .tpl-order-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

body.theme-page-tpl .tpl-order-kicker {
  font-size: 12px;
  opacity: 0.82;
}

body.theme-page-tpl .tpl-order-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

body.theme-page-tpl .tpl-order-amount {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

body.theme-page-tpl .tpl-order-meta {
  font-size: 13px;
  opacity: 0.75;
}

body.theme-page-tpl .tpl-shell.container-fluid {
  max-width: 540px;
  margin: 0 auto;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

body.theme-page-tpl .tpl-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--h5-text-muted);
  margin: 18px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.theme-page-tpl .tpl-section-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

body.theme-page-tpl .tpl-section-dot.tpl-section-dot-accent {
  background: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.22);
}

body.theme-page-tpl .tpl-section-dot.tpl-section-dot-generic {
  background: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.22);
}

body.theme-page-tpl .tpl-go-sub {
  display: block;
  font-weight: 600;
  color: var(--h5-text-muted);
  font-size: 12px;
  line-height: 1.35;
}

body.theme-page-tpl .tpl-strip.bg-generic-pay {
  background: linear-gradient(125deg, #5b21b6 0%, #7c3aed 45%, #0d9488 100%);
}

body.theme-page-tpl .tpl-card-generic-pay {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}

body.theme-page-tpl .tpl-strip.bg-secondary {
  background: linear-gradient(115deg, #475569 0%, #334155 100%);
}

body.theme-page-tpl .tpl-grid.row {
  --bs-gutter-y: 1rem;
  --bs-gutter-x: 0;
}

body.theme-page-tpl .tpl-card.tpl-card-v2 {
  background: var(--h5-surface);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--h5-border);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100%;
  transition: transform 0.14s, box-shadow 0.14s;
}

body.theme-page-tpl .tpl-card.tpl-card-v2:active {
  transform: scale(0.99);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
}

body.theme-page-tpl .tpl-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: #fff;
  position: relative;
  min-height: 72px;
}

body.theme-page-tpl .tpl-strip-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

body.theme-page-tpl .tpl-strip-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

body.theme-page-tpl .tpl-card-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--h5-border);
  background: #fafafa;
}

body.theme-page-tpl .tpl-go {
  font-size: 13px;
  font-weight: 700;
  color: #4f46e5;
}

body.theme-page-tpl .tpl-strip.bg-didi-blue {
  background: linear-gradient(115deg, #1e293b 0%, #2563eb 90%);
}
body.theme-page-tpl .tpl-strip.bg-didi-green {
  background: linear-gradient(115deg, #065f46 0%, #34d399 100%);
}
body.theme-page-tpl .tpl-strip.bg-xianyu {
  background: linear-gradient(115deg, #fbbf24 0%, #eab308 100%);
  color: #1e293b !important;
}
body.theme-page-tpl .tpl-strip.bg-xianyu .tpl-strip-icon {
  color: inherit;
}
body.theme-page-tpl .tpl-strip.bg-douyin {
  background: linear-gradient(115deg, #020617 0%, #475569 100%);
}
body.theme-page-tpl .tpl-strip.bg-meituan {
  background: linear-gradient(115deg, #fef08a 0%, #fcd34d 100%);
  color: #78350f !important;
}
body.theme-page-tpl .tpl-strip.bg-meituan .tpl-strip-icon {
  background: rgba(180, 83, 9, 0.12);
}
body.theme-page-tpl .tpl-strip.bg-taobao {
  background: linear-gradient(115deg, #ea580c 0%, #f97316 100%);
}
body.theme-page-tpl .tpl-strip.bg-taobao-light {
  background: linear-gradient(115deg, #fb923c 0%, #fdba74 100%);
}
body.theme-page-tpl .tpl-strip.bg-jd {
  background: linear-gradient(115deg, #991b1b 0%, #f87171 100%);
}
body.theme-page-tpl .tpl-strip.bg-pdd {
  background: linear-gradient(115deg, #dc2626 0%, #fb7185 100%);
}
body.theme-page-tpl .tpl-strip.bg-ctrip {
  background: linear-gradient(115deg, #1d4ed8 0%, #60a5fa 100%);
}
body.theme-page-tpl .tpl-strip.bg-ctrip-hotel {
  background: linear-gradient(115deg, #0f766e 0%, #5eead4 100%);
}
body.theme-page-tpl .tpl-strip.bg-fliggy {
  background: linear-gradient(115deg, #f59e0b 0%, #fb923c 100%);
}
body.theme-page-tpl .tpl-strip.bg-dewu {
  background: linear-gradient(115deg, #09090b 0%, #52525b 100%);
}
body.theme-page-tpl .tpl-strip.bg-maoyan {
  background: linear-gradient(115deg, #b91c1c 0%, #fb7185 100%);
}

body.theme-page-tpl .tpl-safe-hint.safe-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--h5-border);
  backdrop-filter: blur(10px);
  max-width: 540px;
  margin: 0 auto;
}

body.theme-page-tpl .tpl-safe-hint i {
  vertical-align: -0.1em;
  margin-right: 6px;
  color: var(--h5-primary);
}

/* ========== 微信拉单页 theme-page-wxpay ========== */
body.theme-page-wxpay {
  background: var(--h5-bg);
  text-align: center;
  padding: 64px 24px;
  font-family: var(--h5-font);
}

body.theme-page-wxpay .loading {
  font-size: 15px;
  color: var(--h5-text-muted);
}

body.theme-page-wxpay .loading::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  border: 3px solid var(--h5-primary-soft);
  border-top-color: var(--h5-primary);
  border-radius: 50%;
  animation: h5-spin 0.8s linear infinite;
}

@keyframes h5-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== 支付结果 / 免签页 ========== */
body.theme-pay-success {
  text-align: center;
  padding-top: 72px;
  background: var(--h5-bg);
  font-family: var(--h5-font);
  min-height: 100vh;
}

body.theme-pay-manual .pay-manual-shell {
  max-width: 480px;
  margin: 0 auto;
  background: var(--h5-surface);
  min-height: 100vh;
  padding: 48px 24px;
  text-align: center;
  border-left: 1px solid var(--h5-border);
  border-right: 1px solid var(--h5-border);
}

body.theme-pay-manual .pay-manual-price {
  font-size: 40px;
  font-weight: 800;
  margin: 12px 0 8px;
  color: var(--h5-text);
  letter-spacing: -0.02em;
}

body.theme-pay-manual .pay-manual-qr {
  width: 228px;
  height: 228px;
  margin: 20px auto;
  border: 1px solid var(--h5-border);
  padding: 8px;
  border-radius: var(--h5-radius);
  object-fit: contain;
  background: #fff;
}

body.theme-pay-manual #btnPaid {
  min-height: 48px;
  border-radius: var(--h5-radius-pill) !important;
  font-weight: 600;
}

body.theme-pay-manual .text-primary {
  color: var(--h5-primary) !important;
}

/* ========== 美团默认收银 body.cashier-mt（静态样式；海报背景仍为页内 PHP） ========== */
body.cashier-mt {
  margin: 0;
  padding: 0;
  background-color: var(--h5-bg);
  font-family: var(--h5-font);
  -webkit-tap-highlight-color: transparent;
}

body.cashier-mt * {
  box-sizing: border-box;
}

body.cashier-mt .user-header {
  padding: 22px 16px;
  display: flex;
  align-items: center;
}

body.cashier-mt .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 14px;
  border: 2px solid var(--h5-surface);
  box-shadow: var(--h5-shadow-sm);
}

body.cashier-mt .user-info .nick {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--h5-text);
}

body.cashier-mt .user-info .slogan {
  font-size: 13px;
  color: var(--h5-text-muted);
}

body.cashier-mt .card {
  background: var(--h5-surface);
  border-radius: var(--h5-radius);
  margin: 0 14px 14px;
  padding: 24px 20px;
  box-shadow: var(--h5-shadow-sm);
  border: 1px solid var(--h5-border);
}

body.cashier-mt .pay-amount {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 6px;
  font-family: var(--h5-font);
  color: var(--h5-text);
  letter-spacing: -0.03em;
}

body.cashier-mt .pay-amount::before {
  content: "¥";
  font-size: 22px;
  margin-right: 4px;
  color: var(--h5-text-muted);
  font-weight: 700;
}

body.cashier-mt .timer-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--h5-text);
}

body.cashier-mt .timer-box {
  background: var(--h5-text);
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  margin: 0 4px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.cashier-mt .notice-box {
  background: #fffbeb;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.75;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

body.cashier-mt .notice-title {
  color: #b45309;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
}

body.cashier-mt .btn-main {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #1e293b;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  padding: 15px 0;
  min-height: 52px;
  border-radius: var(--h5-radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.35);
}

body.cashier-mt .btn-poster {
  background: var(--h5-surface);
  border: 2px solid #eab308;
  color: #a16207;
  margin-top: 12px;
  box-shadow: none;
}

body.cashier-mt .btn-card-share {
  background: var(--h5-surface);
  border: 2px solid #22c55e;
  color: #15803d;
  margin-top: 12px;
  box-shadow: none;
}

body.cashier-mt .product-row {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--h5-border);
}

body.cashier-mt .product-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.cashier-mt .p-img {
  width: 64px;
  height: 64px;
  background: var(--h5-bg);
  border-radius: 10px;
  margin-right: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--h5-border);
}

body.cashier-mt .p-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

body.cashier-mt .p-name {
  font-size: 14px;
  color: var(--h5-text);
  line-height: 1.45;
  margin-bottom: 6px;
  min-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.cashier-mt .modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.88);
  z-index: 9999;
  text-align: center;
}

body.cashier-mt .modal img {
  width: 86%;
  max-width: 320px;
  margin-top: 10%;
  border-radius: var(--h5-radius);
  box-shadow: var(--h5-shadow-md);
}

body.cashier-mt .close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
}

/* ========== 后台登录 theme-page-admin-login ========== */
body.theme-page-admin-login {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(13, 148, 136, 0.15), transparent),
    var(--h5-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--h5-font);
  padding: 24px;
}

body.theme-page-admin-login .login-wrapper {
  display: flex;
  width: 840px;
  max-width: 100%;
  min-height: 460px;
  background: var(--h5-surface);
  border-radius: 20px;
  box-shadow: var(--h5-shadow-md);
  overflow: hidden;
  border: 1px solid var(--h5-border);
}

body.theme-page-admin-login .login-side {
  width: 42%;
  background: linear-gradient(160deg, var(--h5-primary-dark) 0%, #042f2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 40px 32px;
  position: relative;
}

body.theme-page-admin-login .login-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 55%);
}

body.theme-page-admin-login .side-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  z-index: 1;
  letter-spacing: -0.02em;
}

body.theme-page-admin-login .side-desc {
  font-size: 14px;
  opacity: 0.88;
  text-align: center;
  z-index: 1;
  line-height: 1.65;
}

body.theme-page-admin-login .login-form-box {
  width: 58%;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

body.theme-page-admin-login .form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--h5-text);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

body.theme-page-admin-login .input-group-text {
  background: transparent;
  border-right: none;
  color: var(--h5-text-muted);
}

body.theme-page-admin-login .form-control {
  border-left: none;
  padding-left: 0;
  box-shadow: none !important;
  min-height: 48px;
}

body.theme-page-admin-login .input-group {
  border: 1px solid var(--h5-border);
  border-radius: 12px;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

body.theme-page-admin-login .input-group:focus-within {
  border-color: var(--h5-primary);
  box-shadow: 0 0 0 3px var(--h5-primary-soft);
}

body.theme-page-admin-login .btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--h5-primary) 0%, var(--h5-primary-dark) 100%);
  color: #fff;
  padding: 14px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

body.theme-page-admin-login .btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--h5-primary-soft);
}

@media (max-width: 768px) {
  body.theme-page-admin-login .login-wrapper {
    flex-direction: column;
    min-height: auto;
    width: 100%;
  }
  body.theme-page-admin-login .login-side {
    width: 100%;
    padding: 32px 24px;
    min-height: 180px;
  }
  body.theme-page-admin-login .login-form-box {
    width: 100%;
    padding: 36px 28px 40px;
  }
}

/* ========== 后台管理 theme-page-admin（对齐收银模版：携程蓝 / 滴滴绿 / 拼多多红等，非单一主色） ========== */
body.theme-page-admin {
  --admin-page-bg: #eef2f7;
  --tpl-ctrip-1: #499bf7;
  --tpl-ctrip-2: #2986f6;
  --tpl-didi: #29c378;
  --tpl-pdd: #f3554f;
  background: linear-gradient(165deg, #eef2f7 0%, #e8ecf4 45%, #f4f6f9 100%);
  font-family: var(--h5-font);
  min-height: 100vh;
}

body.theme-page-admin .sidebar {
  min-height: 100vh;
  background: transparent;
  box-shadow: none;
  z-index: 10;
  border-right: none;
}

body.theme-page-admin .admin-shell {
  max-width: 1920px;
  margin: 0 auto;
}

body.theme-page-admin .admin-layout-row {
  min-height: 100vh;
  align-items: stretch;
}

body.theme-page-admin .admin-sidebar-col {
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 72%, #f1f5f9 100%);
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 6px 0 40px rgba(15, 23, 42, 0.05);
}

body.theme-page-admin .admin-sidebar-col .sidebar-inner {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

body.theme-page-admin .admin-sidebar-kicker {
  letter-spacing: 0.12em;
  font-size: 0.65rem !important;
  opacity: 0.85;
}

body.theme-page-admin .sidebar-footer .btn {
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
}

body.theme-page-admin .admin-main-column {
  background: transparent;
  min-width: 0;
}

body.theme-page-admin .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.045);
}

body.theme-page-admin .admin-page-title {
  font-size: 1.32rem;
  letter-spacing: -0.025em;
  color: #0f172a;
}

body.theme-page-admin .admin-bc-current {
  color: #64748b;
}

body.theme-page-admin .admin-content-area {
  max-width: 1480px;
}

body.theme-page-admin .admin-content-area > .card.border-0.shadow-sm {
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.065) !important;
}

body.theme-page-admin .admin-content-area .table {
  --bs-table-hover-bg: rgba(41, 134, 246, 0.04);
}

body.theme-page-admin .admin-content-area .table thead th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

body.theme-page-admin .admin-content-area .table-responsive {
  border-radius: 12px;
}

body.theme-page-admin .modal-content {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

body.theme-page-admin .admin-brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0;
  background: linear-gradient(90deg, var(--tpl-ctrip-2) 0%, var(--tpl-didi) 48%, var(--tpl-pdd) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.theme-page-admin .admin-brand-title-sm {
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--tpl-ctrip-2) 0%, var(--tpl-didi) 50%, var(--tpl-pdd) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.theme-page-admin .admin-toolbar-user-icon {
  color: var(--tpl-ctrip-2);
}

body.theme-page-admin .admin-accent-money-didi {
  color: var(--tpl-didi);
}

body.theme-page-admin .admin-user-avatar-icon {
  color: var(--tpl-ctrip-2);
}

body.theme-page-admin .nav-link {
  padding: 12px 18px;
  color: #64748b;
  border-radius: 12px;
  margin-bottom: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

body.theme-page-admin .nav-link:hover:not(.active) {
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
}

body.theme-page-admin .nav-link.admin-nav-group-open:not(.active) {
  font-weight: 700;
  color: #1e293b;
  background: linear-gradient(90deg, rgba(41, 134, 246, 0.07), rgba(41, 195, 120, 0.06), rgba(243, 85, 79, 0.06));
}

body.theme-page-admin .nav-link i {
  margin-right: 12px;
  font-size: 1.1em;
}

body.theme-page-admin .submenu-link {
  padding-left: 46px;
  font-size: 0.92em;
}

/* —— 一级菜单激活：每条对应不同模版色 —— */
body.theme-page-admin .nav-link.admin-accent-dashboard.active {
  background: linear-gradient(135deg, var(--tpl-ctrip-1) 0%, var(--tpl-ctrip-2) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(41, 134, 246, 0.38);
}
body.theme-page-admin .nav-link.admin-accent-products.active {
  background: linear-gradient(135deg, #3fdf96 0%, var(--tpl-didi) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(41, 195, 120, 0.38);
}
body.theme-page-admin .nav-link.admin-accent-categories.active {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}
body.theme-page-admin .nav-link.admin-accent-orders.active {
  background: linear-gradient(135deg, #ff7a73 0%, var(--tpl-pdd) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(243, 85, 79, 0.38);
}
body.theme-page-admin .nav-link.admin-accent-withdrawals.active {
  background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
  color: #422006;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}
body.theme-page-admin .nav-link.admin-accent-users.active {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}
body.theme-page-admin .nav-link.admin-accent-pay_settings.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.38);
}
body.theme-page-admin .nav-link.admin-accent-tools.active {
  background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(71, 85, 105, 0.35);
}

/* —— 一级悬停浅色提示（与激活色同系） —— */
body.theme-page-admin .nav-link.admin-accent-dashboard:hover:not(.active) {
  background: rgba(41, 134, 246, 0.09);
  color: var(--tpl-ctrip-2);
}
body.theme-page-admin .nav-link.admin-accent-products:hover:not(.active) {
  background: rgba(41, 195, 120, 0.1);
  color: #15803d;
}
body.theme-page-admin .nav-link.admin-accent-categories:hover:not(.active) {
  background: rgba(124, 58, 237, 0.09);
  color: #6d28d9;
}
body.theme-page-admin .nav-link.admin-accent-orders:hover:not(.active) {
  background: rgba(243, 85, 79, 0.09);
  color: #dc2626;
}
body.theme-page-admin .nav-link.admin-accent-withdrawals:hover:not(.active) {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
body.theme-page-admin .nav-link.admin-accent-users:hover:not(.active) {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
}
body.theme-page-admin .nav-link.admin-accent-pay_settings:hover:not(.active) {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}
body.theme-page-admin .nav-link.admin-accent-tools:hover:not(.active) {
  background: rgba(71, 85, 105, 0.1);
  color: #334155;
}
body.theme-page-admin .nav-link.admin-accent-system_group:hover:not(.active) {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

/* —— 二级菜单激活 —— */
body.theme-page-admin .submenu-link.active {
  box-shadow: none;
  font-weight: 700;
}
body.theme-page-admin .submenu-link.admin-accent-settings.active {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  box-shadow: inset 4px 0 0 #64748b;
}
body.theme-page-admin .submenu-link.admin-accent-storage.active {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
  box-shadow: inset 4px 0 0 #0d9488;
}
body.theme-page-admin .submenu-link.admin-accent-slides.active {
  background: rgba(244, 63, 94, 0.1);
  color: #be123c;
  box-shadow: inset 4px 0 0 #e11d48;
}
body.theme-page-admin .submenu-link.admin-accent-cards.active {
  background: rgba(139, 92, 246, 0.11);
  color: #6d28d9;
  box-shadow: inset 4px 0 0 #8b5cf6;
}
body.theme-page-admin .submenu-link.admin-accent-fake.active {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  box-shadow: inset 4px 0 0 #f59e0b;
}

body.theme-page-admin .submenu-link:hover:not(.active) {
  background: rgba(15, 23, 42, 0.03);
  color: #475569;
}

body.theme-page-admin .stat-card-new {
  background: #fff;
  border-radius: var(--h5-radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--h5-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  position: relative;
}

body.theme-page-admin .stat-card-new:hover {
  transform: translateY(-3px);
  box-shadow: var(--h5-shadow-md);
}

body.theme-page-admin .stat-card-new .card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

body.theme-page-admin .stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: #64748b;
}

body.theme-page-admin .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
}

body.theme-page-admin .stat-icon-bg {
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 5rem;
  opacity: 0.08;
  transform: rotate(15deg);
  z-index: 1;
  transition: transform 0.25s;
}

body.theme-page-admin .stat-card-new:hover .stat-icon-bg {
  transform: rotate(0deg) scale(1.08);
}

body.theme-page-admin .chart-card {
  border-radius: var(--h5-radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--h5-shadow-sm);
  height: 100%;
  overflow: hidden;
}

body.theme-page-admin .chart-header {
  padding: 1rem 1.25rem;
  font-weight: 700;
  border-radius: var(--h5-radius) var(--h5-radius) 0 0;
}

body.theme-page-admin .chart-head-tpl-ctrip {
  background: linear-gradient(180deg, rgba(41, 134, 246, 0.14) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-bottom: 1px solid rgba(41, 134, 246, 0.22);
  color: #1e40af;
}

body.theme-page-admin .chart-head-tpl-didi {
  background: linear-gradient(180deg, rgba(41, 195, 120, 0.15) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-bottom: 1px solid rgba(41, 195, 120, 0.28);
  color: #047857;
}

body.theme-page-admin .chart-head-tpl-pdd {
  background: linear-gradient(180deg, rgba(243, 85, 79, 0.13) 0%, rgba(255, 255, 255, 1) 100%);
  border-bottom: 1px solid rgba(243, 85, 79, 0.22);
  color: #c2410c;
}

body.theme-page-admin .chart-head-tpl-sky {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.13) 0%, rgba(255, 255, 255, 1) 100%);
  border-bottom: 1px solid rgba(14, 165, 233, 0.22);
  color: #0369a1;
}

/* 统计卡片左边条：与模版色一致 */
body.theme-page-admin .stat-card-new.b-primary {
  border-left: 4px solid var(--tpl-ctrip-2);
}
body.theme-page-admin .c-primary {
  color: var(--tpl-ctrip-2);
}
body.theme-page-admin .stat-card-new.b-success {
  border-left: 4px solid var(--tpl-didi);
}
body.theme-page-admin .c-success {
  color: var(--tpl-didi);
}
body.theme-page-admin .stat-card-new.b-info {
  border-left: 4px solid #0284c7;
}
body.theme-page-admin .c-info {
  color: #0284c7;
}
body.theme-page-admin .stat-card-new.b-warning {
  border-left: 4px solid var(--tpl-pdd);
}
body.theme-page-admin .c-warning {
  color: var(--tpl-pdd);
}

body.theme-page-admin .table img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

body.theme-page-admin #storageConfigCard #qiniuFields .form-control::placeholder {
  color: #94a3b8;
  opacity: 0.95;
}
body.theme-page-admin #storageConfigCard #qiniuFields .form-control::-webkit-input-placeholder {
  color: #94a3b8;
}
body.theme-page-admin #storageConfigCard #qiniuFields .form-control::-moz-placeholder {
  color: #94a3b8;
  opacity: 0.95;
}

@media (max-width: 767.98px) {
  body.theme-page-admin .sidebar {
    display: none !important;
  }
}

/* ========== Admin Pro + 左侧栏：柔和深色侧栏 + 浅灰主区（内容区铺满宽度） ========== */
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar {
  --sb-bg: #f1f5f9;
  --sb-surface: #ffffff;
  --sb-ink: #0f172a;
  --sb-muted: #475569;
  --sb-border: #cbd5e1;
  --sb-sidebar: #1e293b;
  --sb-sidebar-border: rgba(255, 255, 255, 0.08);
  --sb-accent: #3b82f6;
  --sb-accent-soft: rgba(59, 130, 246, 0.14);
  background: var(--sb-bg);
  color: var(--sb-ink);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-shell-sidebar {
  max-width: 100%;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-split {
  min-height: 100vh;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-pro {
  width: 260px;
  min-width: 260px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-right: 1px solid var(--sb-sidebar-border);
  position: sticky;
  top: 0;
  align-self: flex-start;
  /* 侧栏整列：flex + 限制高度，避免中间导航无法收缩导致「数据维护」等末项被裁且滚不到 */
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  overflow: hidden;
  z-index: 1025;
  transition:
    width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    min-width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.32s ease;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-pro {
  width: 76px;
  min-width: 76px;
  box-shadow: inset -1px 0 0 rgba(59, 130, 246, 0.12), 8px 0 32px rgba(15, 23, 42, 0.35);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-collapse-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-collapse-btn:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.38);
  color: #fff;
  transform: translateY(-1px);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-collapse-btn:active {
  transform: translateY(0);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-title,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-sub {
  display: none !important;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-brand > div.d-flex.justify-content-between {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-brand > div > .d-flex:first-child {
  flex-grow: 0 !important;
  justify-content: center;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-brand .min-w-0 {
  display: none !important;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-label {
  display: none !important;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-scroll .nav-link {
  justify-content: center;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-scroll .nav-link > span.d-inline-flex {
  justify-content: center;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-group-btn {
  justify-content: center !important;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-group-btn .bi-chevron-right {
  display: none !important;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-group-btn .flex-grow-1 {
  flex-grow: 0 !important;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-user {
  justify-content: center;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-user.dropdown-toggle::after {
  display: none !important;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar.admin-sidebar-rail .admin-sidebar-logout .bi {
  margin-right: 0 !important;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-logo {
  width: 10px;
  height: 38px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  background: linear-gradient(180deg, #93c5fd 0%, var(--sb-accent) 55%, #1d4ed8 100%);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #f8fafc;
  line-height: 1.2;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.92);
  margin-top: 4px;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 6px;
  /* 末项（数据维护）与底部账号区之间留白，避免误以为没有更多菜单 */
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
  scroll-padding-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link {
  color: rgba(226, 232, 240, 0.88);
  border-radius: 10px;
  margin-bottom: 2px;
  padding: 8px 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link.admin-nav-group-open:not(.active) {
  background: rgba(255, 255, 255, 0.05);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link.active {
  background: var(--sb-accent-soft);
  color: #eff6ff;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: inset 3px 0 0 var(--sb-accent);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .submenu-link {
  padding: 11px 14px 11px 42px;
  margin-bottom: 3px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.96);
}

/* 桌面侧栏分组：自定义浮层（不依赖 Popper），fixed 定位避免被 overflow 裁切 */
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-nav-group {
  position: relative;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-sidebar-group-btn {
  color: rgba(226, 232, 240, 0.88);
  border-radius: 10px;
  margin-bottom: 2px;
  padding: 8px 12px;
  font-weight: 600;
  border: 1px solid transparent;
  box-sizing: border-box;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-sidebar-group-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-sidebar-group-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-sidebar-group-btn.admin-nav-group-open {
  background: var(--sb-accent-soft);
  color: #eff6ff;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: inset 3px 0 0 var(--sb-accent);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-nav-group.is-open .admin-sidebar-group-btn .bi-chevron-right {
  transform: rotate(90deg);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-sidebar-group-btn .bi-chevron-right {
  transition: transform 0.15s ease;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-sidebar-flyout {
  display: none;
  position: fixed;
  min-width: 216px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  border-radius: 12px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 8px 16px 40px rgba(15, 23, 42, 0.45);
  z-index: 1060;
  -webkit-overflow-scrolling: touch;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-nav-group.is-open .admin-sidebar-flyout {
  display: block;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-sidebar-flyout-link {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-sidebar-flyout-link:hover,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-sidebar-flyout-link:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .admin-sidebar-flyout-link.active {
  background: rgba(59, 130, 246, 0.24);
  color: #eff6ff;
}

/* 手机抽屉：仍用 collapse，关掉高度动画避免同类闪烁 */
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar #mobileMenu .collapse,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar #mobileMenu .collapse.collapsing {
  transition: none !important;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .submenu-link.active {
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
  box-shadow: inset 3px 0 0 var(--sb-accent);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .submenu-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-footer {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
  flex-shrink: 0;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-user {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-user:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-logout {
  border-radius: 10px;
  font-weight: 600;
}

/* 取消 rainbow：侧栏内激活统一蓝色系 */
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link.admin-accent-dashboard.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link.admin-accent-products.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link.admin-accent-categories.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link.admin-accent-orders.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link.admin-accent-withdrawals.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link.admin-accent-users.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link.admin-accent-pay_settings.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link.admin-accent-tools.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .nav-link.admin-accent-system_group.active {
  background: var(--sb-accent-soft);
  color: #eff6ff;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: inset 3px 0 0 var(--sb-accent);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .submenu-link.admin-accent-settings.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .submenu-link.admin-accent-storage.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .submenu-link.admin-accent-slides.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .submenu-link.admin-accent-cards.active,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-sidebar-scroll .submenu-link.admin-accent-fake.active {
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
  box-shadow: inset 3px 0 0 var(--sb-accent);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-main-stage {
  background: var(--sb-bg);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-page-head {
  background: var(--sb-surface);
  border-bottom: 1px solid var(--sb-border);
  flex-shrink: 0;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-page-title {
  font-family: var(--h5-font);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--sb-ink);
  letter-spacing: -0.02em;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-bc-muted {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sb-muted);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-bc-sep {
  margin: 0 8px;
  color: #94a3b8;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-bc-current {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--sb-ink);
}

/* 关键：主区域铺满，不再居中收窄 */
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-content-area {
  max-width: none !important;
  width: 100%;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-mobile-bar {
  background: var(--sb-sidebar);
  color: #f8fafc;
  border-bottom: 1px solid var(--sb-sidebar-border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-mobile-menu-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-mobile-user-dd {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  color: var(--sb-ink);
  border-radius: 10px;
  font-weight: 700;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-content-area > .card.border-0.shadow-sm,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-content-area .card.border-0.shadow-sm {
  border-radius: 12px !important;
  border: 1px solid var(--sb-border) !important;
  background: var(--sb-surface) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  width: 100%;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-content-area .table thead th {
  color: var(--sb-muted);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
  border-bottom: 2px solid var(--sb-border);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-content-area .table tbody td {
  color: var(--sb-ink);
  border-bottom-color: #e2e8f0;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-content-area .table {
  --bs-table-hover-bg: rgba(59, 130, 246, 0.05);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-content-area .btn-light {
  background: #f8fafc;
  border: 1px solid var(--sb-border);
  color: var(--sb-ink);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-content-area .form-control,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-content-area .form-select {
  border-color: #94a3b8;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-content-area .form-control:focus,
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-content-area .form-select:focus {
  border-color: var(--sb-accent);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-accent-money-didi {
  color: #047857;
  font-weight: 800;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .admin-user-avatar-icon {
  color: var(--sb-accent);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .modal-content {
  border-radius: 12px;
  border: 1px solid var(--sb-border);
}

/* 手机抽屉 */
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar #mobileMenu.offcanvas {
  background: var(--sb-surface);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar #mobileMenu .admin-mobile-nav-title {
  color: var(--sb-ink);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar #mobileMenu .offcanvas-header {
  border-bottom: 1px solid var(--sb-border);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar #mobileMenu .nav-link {
  color: var(--sb-ink);
  border-radius: 10px;
  font-weight: 650;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar #mobileMenu .nav-link.active {
  background: #dbeafe;
  color: #1e40af;
  box-shadow: inset 4px 0 0 var(--sb-accent);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar #mobileMenu .submenu-link.active {
  background: #eff6ff;
  color: #1d4ed8;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar #mobileMenu .nav-link:hover {
  background: #f1f5f9;
}

/* ========== Dashboard ========== */
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-inner {
  border-radius: 12px;
  overflow: hidden;
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-cell {
  padding: 1.2rem 1.3rem;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 575.98px) {
  body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-cell {
    border-right: none;
  }
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-cell:last-child {
  border-bottom: none;
}

@media (min-width: 576px) and (max-width: 1199.98px) {
  body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-cell:nth-child(2n) {
    border-right: none;
  }
  body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-cell:nth-child(n + 3) {
    border-bottom: none;
  }
}

@media (min-width: 1200px) {
  body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-cell {
    border-bottom: none;
  }
  body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-cell:not(:nth-child(4n)) {
    border-right: 1px solid #e2e8f0;
  }
  body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-cell:nth-child(4n) {
    border-right: none;
  }
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-a { border-top: 4px solid var(--sb-accent); }
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-b { border-top: 4px solid #059669; }
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-c { border-top: 4px solid #7c3aed; }
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-d { border-top: 4px solid #dc2626; }

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sb-muted);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-value {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--sb-ink);
  margin-top: 0.35rem;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-meta {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sb-muted);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-hero-meta-action {
  color: var(--sb-accent);
  font-weight: 700;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-panel {
  background: var(--sb-surface);
  border-radius: 12px;
  border: 1px solid var(--sb-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-panel-head {
  padding: 0.95rem 1.15rem;
  font-weight: 800;
  font-size: 0.93rem;
  color: var(--sb-ink);
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-dot-blue { background: var(--sb-accent); }
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-dot-violet { background: #7c3aed; }
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-dot-amber { background: #d97706; }
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-dot-teal { background: #059669; }

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-panel-body {
  padding: 0.65rem 1rem 1rem;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-chart-box {
  height: 320px;
  width: 100%;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-chart-box-sm {
  height: 300px;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-pro-list .dash-pro-li {
  border: none;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-pro-list .dash-pro-li:last-child {
  border-bottom: none;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-pro-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  background: #e2e8f0;
  color: var(--sb-muted);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-pro-li-title {
  color: var(--sb-ink);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-pro-li-meta {
  color: var(--sb-muted);
  font-weight: 600;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-pro-money {
  color: #047857;
  font-weight: 800;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-pro-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1d4ed8;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-pro-empty {
  color: var(--sb-muted);
  font-weight: 600;
}

/* ========== 运营大屏 SaaS 格局（仿浅色仪表盘：大卡片区 + 右侧主趋势图） ========== */
body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dashboard-saas {
  --dash-royal: #4169e1;
  --dash-card-shadow: 0 4px 20px rgba(15, 23, 42, 0.055);
  padding: 8px 8px 28px;
  margin: -6px -8px 0;
  border-radius: 20px;
  background: linear-gradient(165deg, #eef0fa 0%, #f3f5fc 42%, #eef2f8 100%);
}

@media (min-width: 992px) {
  body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dashboard-saas {
    margin: -8px -12px 0;
    padding: 16px 18px 32px;
  }
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dashboard-saas-toolbar .btn-primary {
  background: var(--dash-royal);
  border-color: var(--dash-royal);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dashboard-saas-toolbar .btn-outline-primary {
  color: var(--dash-royal);
  border-color: rgba(65, 105, 225, 0.45);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dashboard-saas-toolbar .btn-outline-primary:hover {
  background: rgba(65, 105, 225, 0.08);
  border-color: var(--dash-royal);
  color: #2f4fbf;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dashboard-saas-date {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e293b;
  line-height: 1.25;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--dash-card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: hidden;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-card-hero {
  min-height: 0;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dash-royal);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.2);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-dot-blue {
  background: var(--dash-royal);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.22);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-dot-violet {
  background: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-dot-teal {
  background: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-dot-amber {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-dot-sky {
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-card-body {
  padding: 4px 0 12px;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-chart-hero {
  height: min(380px, 52vh);
  min-height: 280px;
  width: 100%;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-pie-box {
  height: 240px;
  width: 100%;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  color: #94a3b8;
  font-size: 0.88rem;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-empty {
  padding: 24px 16px;
  text-align: center;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-stat-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-stat-rows li:last-child {
  border-bottom: none;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-stat-rows .label {
  color: #64748b;
  font-weight: 600;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-stat-rows strong {
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-invoice-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-invoice-value {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-invoice-hint {
  margin-top: 6px;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.9);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-top-row:last-child {
  border-bottom: none;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-strip-orange {
  border-left: 4px solid #fb923c;
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.14), transparent 72%);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-strip-purple {
  border-left: 4px solid #a78bfa;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.16), transparent 72%);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-strip-teal {
  border-left: 4px solid #2dd4bf;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.14), transparent 72%);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-strip-rose {
  border-left: 4px solid #fb7185;
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.14), transparent 72%);
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-top-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-top-main > div {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-top-rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  flex-shrink: 0;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-top-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-top-meta {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-top-amt {
  font-weight: 900;
  color: #047857;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  padding-top: 2px;
  text-align: right;
  white-space: nowrap;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-user-row:last-child {
  border-bottom: none;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-user-av {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-user-info {
  flex: 1;
  min-width: 0;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-user-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: #0f172a;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-user-ip {
  font-size: 0.72rem;
  color: #94a3b8;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-user-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-mini {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 14px 16px;
  border: 1px solid #eef2f7;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  height: 100%;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-mini .bg-indigo-soft {
  background: rgba(99, 102, 241, 0.12) !important;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-mini-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
}

body.theme-page-admin.admin-theme-pro.admin-layout-sidebar .dash-saas-mini-value {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* ========== 运营大屏降级（仅需 body.theme-page-admin；部署漏类名或 CSS 分段失效时仍能呈现卡片与图表区） ========== */
body.theme-page-admin .admin-content-area .dashboard-saas {
  --dash-royal: #4169e1;
  --dash-card-shadow: 0 4px 20px rgba(15, 23, 42, 0.055);
  padding: 8px 8px 28px;
  margin: -6px -8px 0;
  border-radius: 20px;
  background: linear-gradient(165deg, #eef0fa 0%, #f3f5fc 42%, #eef2f8 100%);
}

@media (min-width: 992px) {
  body.theme-page-admin .admin-content-area .dashboard-saas {
    margin: -8px -12px 0;
    padding: 16px 18px 32px;
  }
}

body.theme-page-admin .admin-content-area .dashboard-saas-toolbar .btn-primary {
  background: var(--dash-royal);
  border-color: var(--dash-royal);
}

body.theme-page-admin .admin-content-area .dashboard-saas-toolbar .btn-outline-primary {
  color: var(--dash-royal);
  border-color: rgba(65, 105, 225, 0.45);
}

body.theme-page-admin .admin-content-area .dashboard-saas-date {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e293b;
  line-height: 1.25;
}

body.theme-page-admin .admin-content-area .dash-saas-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--dash-card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: hidden;
}

body.theme-page-admin .admin-content-area .dash-saas-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

body.theme-page-admin .admin-content-area .dash-saas-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dash-royal);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.2);
}

body.theme-page-admin .admin-content-area .dash-saas-dot-violet {
  background: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22);
}

body.theme-page-admin .admin-content-area .dash-saas-dot-teal {
  background: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

body.theme-page-admin .admin-content-area .dash-saas-dot-amber {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

body.theme-page-admin .admin-content-area .dash-saas-dot-sky {
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

body.theme-page-admin .admin-content-area .dash-saas-dot-blue {
  background: var(--dash-royal);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.22);
}

body.theme-page-admin .admin-content-area .dash-saas-chart-hero {
  height: min(380px, 52vh);
  min-height: 280px;
  width: 100%;
}

body.theme-page-admin .admin-content-area .dash-saas-pie-box {
  height: 240px;
  width: 100%;
}

body.theme-page-admin .admin-content-area .dash-saas-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  color: #94a3b8;
  font-size: 0.88rem;
}

body.theme-page-admin .admin-content-area .dash-saas-empty {
  padding: 24px 16px;
  text-align: center;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
}

body.theme-page-admin .admin-content-area .dash-saas-stat-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

body.theme-page-admin .admin-content-area .dash-saas-stat-rows li:last-child {
  border-bottom: none;
}

body.theme-page-admin .admin-content-area .dash-saas-stat-rows .label {
  color: #64748b;
  font-weight: 600;
}

body.theme-page-admin .admin-content-area .dash-saas-stat-rows strong {
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

body.theme-page-admin .admin-content-area .dash-saas-invoice-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-page-admin .admin-content-area .dash-saas-invoice-value {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

body.theme-page-admin .admin-content-area .dash-saas-invoice-hint {
  margin-top: 6px;
}

body.theme-page-admin .admin-content-area .dash-saas-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.9);
}

body.theme-page-admin .admin-content-area .dash-saas-top-row:last-child {
  border-bottom: none;
}

body.theme-page-admin .admin-content-area .dash-saas-strip-orange {
  border-left: 4px solid #fb923c;
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.14), transparent 72%);
}

body.theme-page-admin .admin-content-area .dash-saas-strip-purple {
  border-left: 4px solid #a78bfa;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.16), transparent 72%);
}

body.theme-page-admin .admin-content-area .dash-saas-strip-teal {
  border-left: 4px solid #2dd4bf;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.14), transparent 72%);
}

body.theme-page-admin .admin-content-area .dash-saas-strip-rose {
  border-left: 4px solid #fb7185;
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.14), transparent 72%);
}

body.theme-page-admin .admin-content-area .dash-saas-top-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

body.theme-page-admin .admin-content-area .dash-saas-top-main > div {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

body.theme-page-admin .admin-content-area .dash-saas-top-rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  flex-shrink: 0;
}

body.theme-page-admin .admin-content-area .dash-saas-top-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.theme-page-admin .admin-content-area .dash-saas-top-meta {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

body.theme-page-admin .admin-content-area .dash-saas-top-amt {
  font-weight: 900;
  color: #047857;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  padding-top: 2px;
  text-align: right;
  white-space: nowrap;
}

body.theme-page-admin .admin-content-area .dash-saas-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

body.theme-page-admin .admin-content-area .dash-saas-user-row:last-child {
  border-bottom: none;
}

body.theme-page-admin .admin-content-area .dash-saas-user-av {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.theme-page-admin .admin-content-area .dash-saas-user-info {
  flex: 1;
  min-width: 0;
}

body.theme-page-admin .admin-content-area .dash-saas-user-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: #0f172a;
}

body.theme-page-admin .admin-content-area .dash-saas-user-ip {
  font-size: 0.72rem;
  color: #94a3b8;
}

body.theme-page-admin .admin-content-area .dash-saas-user-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

body.theme-page-admin .admin-content-area .dash-saas-mini {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 14px 16px;
  border: 1px solid #eef2f7;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  height: 100%;
}

body.theme-page-admin .admin-content-area .dash-saas-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

body.theme-page-admin .admin-content-area .dash-saas-mini .bg-indigo-soft {
  background: rgba(99, 102, 241, 0.12) !important;
}

body.theme-page-admin .admin-content-area .dash-saas-mini-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
}

body.theme-page-admin .admin-content-area .dash-saas-mini-value {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
