.site-shell-topbar {
  flex-shrink: 0;
}

.site-shell-inner {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-shell-topbar.navbar {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
}

.product-card {
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.product-card.selected {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

#qrBox img {
  max-width: 260px;
  height: auto;
}

.manage-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
}

.manage-sidebar .nav-link:hover,
.manage-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-auth-guest { display: flex; align-items: center; gap: 4px; }

.nav-auth-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #606266;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.nav-auth-icon-btn--stacked {
  flex-direction: column;
  width: auto;
  height: auto;
  min-width: 52px;
  padding: 4px 6px 2px;
  border-radius: 8px;
  gap: 2px;
}
.nav-auth-icon-btn--stacked .nav-auth-icon-label {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}
.nav-auth-icon-btn:hover {
  color: #ff7da1;
  background: rgba(255, 125, 161, 0.1);
  border-color: rgba(255, 125, 161, 0.25);
}
.nav-auth-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 125, 161, 0.45);
  outline-offset: 2px;
}

.nav-auth-user { display: flex !important; }
.nav-user-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
}
.nav-user-panel .nav-user-chip {
  padding: 0;
  border-radius: 0;
}
.nav-user-panel .nav-user-chip:hover { background: transparent; color: #333; }
.nav-user-panel .nav-user-divider {
  width: 1px;
  height: 18px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.nav-user-panel .nav-user-logout {
  padding: 0 2px;
  font-size: 13px;
  line-height: 1.2;
  color: #6b7280;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav-user-panel .nav-user-logout:hover {
  color: #111827;
  text-decoration: underline;
}
.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333;
  padding: 2px 6px;
  border-radius: 999px;
  transition: background 0.15s;
}
.nav-user-chip:hover { background: rgba(0, 0, 0, 0.05); color: #333; }
.nav-user-avatar-wrap { flex-shrink: 0; line-height: 0; }
.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-user-avatar--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff7da1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.nav-user-name {
  font-size: 14px;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-preview-img,
#adminAvatar {
  object-fit: cover;
  background: #f1f2f5;
}

.avatar-crop-container {
  max-height: 420px;
  overflow: hidden;
  background: #f8f9fa;
}

.avatar-crop-container img {
  display: block;
  max-width: 100%;
}

/* 首页导航：仅保留登录/注册或头像，不显示退出 */
.page-home #navUserLogout {
  display: none !important;
}

.site-footer {
  background: #fff;
}
.site-footer-link:hover {
  color: #ff7da1 !important;
  text-decoration: underline !important;
}
.site-footer-sep {
  opacity: 0.45;
  user-select: none;
}
.site-footer-copy {
  line-height: 1.5;
}
