[v-cloak] {
  display: none;
}

html,
body,
#app {
  height: 100%;
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #1f2329;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* —— D11 设计 token（间距 4 的倍数；圆角 sm/md/lg/xl）—— */

:root {
  --ding-brand: #0089ff;
  --ding-brand-hover: #33a3ff;
  --ding-brand-active: #0070d9;
  --ding-brand-soft: #e6f3ff;
  --ding-bg: #f2f4f7;
  --ding-surface: #ffffff;
  --ding-text: #1f2329;
  --ding-text-secondary: #373c43;
  --ding-muted: #646a73;
  --ding-placeholder: #8f959e;
  --ding-border: #e5e6eb;
  --ding-divider: #eff0f1;
  --ding-radius-sm: 6px;
  --ding-radius-md: 8px;
  --ding-radius-lg: 10px;
  --ding-radius-xl: 12px;
  --ding-radius-shell: 14px;
  --ding-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ding-shadow-md: 0 1px 4px rgba(15, 23, 42, 0.06);
  --ding-shadow-lg: 0 8px 24px rgba(0, 137, 255, 0.08);
  --ding-space-1: 4px;
  --ding-space-2: 8px;
  --ding-space-3: 12px;
  --ding-space-4: 16px;
  --ding-space-5: 20px;
  --ding-space-6: 24px;
  --ding-font-title: 17px;
  --ding-font-body: 14px;
  --ding-font-caption: 12px;
  --ding-font-nav: 13px;
  --ding-line-height: 1.5;
  --ding-focus-ring: 0 0 0 2px rgba(0, 137, 255, 0.2);
}

.admin-layout {
  background: var(--ding-bg);
}

/* —— 侧栏 —— */

.admin-aside {
  background: var(--ding-bg);
  border-right: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--ding-space-2) var(--ding-space-2) var(--ding-space-3) var(--ding-space-3);
  box-sizing: border-box;
}

.admin-logo {
  height: 48px;
  line-height: 1;
  padding: 0 var(--ding-space-3);
  font-size: 15px;
  font-weight: 600;
  color: var(--ding-text);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--ding-space-2);
  margin-bottom: var(--ding-space-1);
  overflow: hidden;
}

.admin-brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.admin-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-side-menu {
  border-right: none !important;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent !important;
  scrollbar-width: thin;
  scrollbar-color: #c9cdd4 transparent;
}

.admin-side-menu::-webkit-scrollbar {
  width: 4px;
}

.admin-side-menu::-webkit-scrollbar-thumb {
  background: #c9cdd4;
  border-radius: 4px;
}

.admin-side-menu:not(.el-menu--collapse) {
  width: 100%;
}

.admin-side-menu .el-menu-item,
.admin-side-menu .el-submenu__title {
  height: 40px;
  line-height: 40px;
  border-radius: var(--ding-radius-lg);
  margin: 2px var(--ding-space-1);
  color: var(--ding-muted) !important;
  font-size: var(--ding-font-nav);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.admin-side-menu .el-menu-item i,
.admin-side-menu .el-submenu__title i {
  color: var(--ding-placeholder);
  margin-right: 6px;
}

.admin-side-menu > .el-menu-item,
.admin-side-menu > .el-submenu > .el-submenu__title {
  padding-left: 12px !important;
  padding-right: 28px !important;
}

.admin-side-menu .el-submenu {
  margin-bottom: 2px;
}

.admin-side-menu .el-menu--inline {
  background: rgba(255, 255, 255, 0.45) !important;
  border-radius: var(--ding-radius-lg);
  margin: 2px var(--ding-space-2) var(--ding-space-2) var(--ding-space-2);
  padding: var(--ding-space-1) 0 var(--ding-space-2);
  overflow: visible;
}

.admin-side-menu .el-submenu .el-menu-item {
  position: relative;
  min-width: auto;
  height: 36px;
  line-height: 36px;
  border-radius: var(--ding-radius-md) !important;
  margin: 2px var(--ding-space-2);
  padding-left: 36px !important;
  padding-right: 12px !important;
  font-size: var(--ding-font-nav);
  color: var(--ding-muted) !important;
}

.admin-side-menu .el-menu-item.is-active,
.admin-side-menu .el-submenu .el-menu-item.is-active {
  background-color: var(--ding-surface) !important;
  color: var(--ding-brand) !important;
  border-right: none;
  font-weight: 500;
  box-shadow: var(--ding-shadow-sm);
}

.admin-side-menu .el-menu-item.is-active i,
.admin-side-menu .el-submenu .el-menu-item.is-active i {
  color: var(--ding-brand);
}

.admin-side-menu .el-submenu.is-active > .el-submenu__title {
  color: var(--ding-text) !important;
  font-weight: 500;
}

.admin-side-menu .el-submenu.is-opened > .el-submenu__title {
  color: var(--ding-text-secondary) !important;
}

.admin-side-menu .el-submenu__title:hover,
.admin-side-menu .el-menu-item:hover,
.admin-side-menu .el-submenu .el-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.75) !important;
}

.admin-side-menu .el-submenu__icon-arrow {
  right: 10px;
  color: var(--ding-placeholder);
  font-size: 12px;
}

.admin-side-menu .el-submenu .el-menu-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #c2c7d0;
}

.admin-side-menu .el-submenu .el-menu-item.is-active::before {
  background: var(--ding-brand);
}

/* —— 主壳（顶栏 + 内容浮层）—— */

.admin-layout > .el-container:not(.admin-layout) {
  margin: var(--ding-space-2) var(--ding-space-3) var(--ding-space-2) 0;
  background: var(--ding-surface);
  border-radius: var(--ding-radius-shell);
  overflow: hidden;
  box-shadow: var(--ding-shadow-md);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--ding-surface);
  border-bottom: 1px solid var(--ding-divider);
  height: 48px !important;
  line-height: normal !important;
  padding: 0 var(--ding-space-3) 0 var(--ding-space-4) !important;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-shrink: 0;
  gap: var(--ding-space-3);
}

.admin-header-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.admin-tab-strip {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  min-width: 0;
  padding-bottom: 0;
  scrollbar-width: thin;
  scrollbar-color: #c9cdd4 transparent;
}

.admin-tab-strip::-webkit-scrollbar {
  height: 4px;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 168px;
  height: 36px;
  padding: 0 10px 0 12px;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-radius: var(--ding-radius-sm) var(--ding-radius-sm) 0 0;
  background: transparent;
  color: var(--ding-muted);
  font-size: var(--ding-font-nav);
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-tab:hover {
  background: var(--ding-bg);
  color: var(--ding-text-secondary);
}

.admin-tab.is-active {
  background: var(--ding-bg);
  border-color: var(--ding-divider);
  border-bottom-color: var(--ding-bg);
  color: var(--ding-brand);
  font-weight: 500;
  box-shadow: inset 0 2px 0 var(--ding-brand);
}

.admin-tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  opacity: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.12s ease, background 0.12s ease;
}

.admin-tab:hover .admin-tab-close,
.admin-tab.is-active .admin-tab-close {
  opacity: 0.65;
}

.admin-tab-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ding-text);
}

.admin-tab-close .el-icon-close {
  font-size: 12px;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: var(--ding-space-2);
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
}

.admin-header-right .el-avatar {
  background: var(--ding-brand-soft);
  color: var(--ding-brand);
}

.admin-header-right .el-button--text {
  color: var(--ding-muted);
  padding: var(--ding-space-1) var(--ding-space-2);
  border-radius: var(--ding-radius-sm);
}

.admin-header-right .el-button--text:hover {
  color: var(--ding-brand);
  background: var(--ding-brand-soft);
}

.admin-user-name {
  font-size: var(--ding-font-nav);
  color: var(--ding-text-secondary);
}

.admin-user-dropdown {
  display: inline-flex;
  align-items: center;
}

.admin-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: var(--ding-radius-sm, 8px);
  cursor: pointer;
  outline: none;
  transition: background-color .15s ease;
}

.admin-user-trigger:hover,
.admin-user-trigger:focus {
  background: var(--ding-brand-soft, rgba(64, 158, 255, .1));
}

.admin-user-caret {
  font-size: 12px;
  color: var(--ding-muted, #909399);
  transition: transform .15s ease;
}

.admin-user-menu.el-dropdown-menu {
  min-width: 108px;
  padding: 4px 0;
}

.admin-user-dropdown .el-dropdown-menu__item,
.admin-user-menu .el-dropdown-menu__item {
  min-width: 108px;
  padding: 0 12px;
  line-height: 36px;
  font-size: 14px;
  color: #303133;
  text-align: center;
  justify-content: center;
}

.admin-user-dropdown .el-dropdown-menu__item:not(.is-disabled):hover,
.admin-user-menu .el-dropdown-menu__item:not(.is-disabled):hover {
  background-color: #f5f7fa;
  color: #303133;
}

.admin-user-menu-beta {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  color: #0089ff;
  vertical-align: middle;
  border: 1px solid rgba(0, 137, 255, 0.35);
  border-radius: 4px;
  transform: translateY(-1px);
}

.admin-main {
  background: var(--ding-bg);
  padding: var(--ding-space-4) var(--ding-space-5) var(--ding-space-6);
  flex: 1;
  overflow: auto;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #c9cdd4 transparent;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-main--ve {
  padding: var(--ding-space-3) var(--ding-space-3) var(--ding-space-3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.admin-main--ve > .visual-editor-root,
.admin-main--ve .visual-editor-root {
  flex: 1;
  min-height: 0;
}

.admin-page-stack {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.admin-page-stack > .admin-list-page {
  flex: 1;
  min-height: 0;
}

.admin-page-header {
  margin: 0 0 var(--ding-space-4);
}

.admin-page-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ding-text-secondary, #646a73);
  line-height: 1.5;
}

.admin-menu-dev > .el-submenu__title {
  opacity: 0.88;
  font-size: 13px;
}

.admin-page-heading {
  margin: 0;
  font-size: var(--ding-font-title);
  font-weight: 600;
  color: var(--ding-text);
  line-height: var(--ding-line-height);
}

.admin-main--ve .admin-page-heading {
  display: none;
}

.admin-main--stores {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-main--stores .admin-page-heading {
  margin-bottom: var(--ding-space-3);
}

.admin-main--stores.admin-main--redeem-gacha .stores-admin-panel,
.admin-main--stores .stores-admin-panel {
  min-height: calc(100vh - 188px);
}

.stores-admin-panel {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 148px);
  background: #fff;
  border-radius: var(--ding-radius-xl);
  box-shadow: var(--ding-shadow-sm);
  padding: var(--ding-space-4) var(--ding-space-5);
  box-sizing: border-box;
}

.stores-admin-main {
  display: flex;
  flex-direction: column;
  gap: var(--ding-space-4);
  min-width: 0;
  box-sizing: border-box;
}

.stores-admin-preview-corner {
  position: absolute;
  top: var(--ding-space-4);
  right: var(--ding-space-5);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  max-width: calc(100% - 48px);
}

.stores-preview-kicker {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ding-text-secondary);
}

.gacha-sim-time-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--ding-surface, #ffffff);
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(20, 40, 60, 0.06);
}

.gacha-sim-time-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ding-text-secondary);
}

.gacha-sim-time-hint {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--ding-primary, #2f7d8c);
}

.stores-preview-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.stores-preview-toolbar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ding-text-secondary);
}

.stores-preview-device-select {
  width: 100%;
}

.stores-ve-device-scroll {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 520px;
  max-height: calc(100vh - 200px);
}

.stores-admin-panel--split .stores-admin-main {
  flex: 1 1 auto;
  min-height: 0;
}

.stores-admin-section--grow {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stores-activity-prize-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stores-activity-prize-list-scroll {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: min(520px, calc(100vh - 340px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.stores-admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.stores-admin-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ding-text);
}

.stores-map-panel {
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid #e4e7ed;
  background: #f5f7fa;
}
.stores-map-picker {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dcdfe6;
  display: block;
  background: #f5f7fa;
}
.stores-map-picker--drag {
  height: 400px;
  border-radius: 10px;
  border-color: #e4e7ed;
}
.stores-map-pick-dialog .el-dialog__body {
  padding: 12px 16px 8px;
}
.stores-map-pick-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.stores-map-pick-search .el-input {
  flex: 1;
}
.stores-map-pick-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.stores-map-pick-meta .el-input {
  flex: 1;
}
.stores-map-pick-coord {
  flex-shrink: 0;
  font-size: 12px;
  color: #606266;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stores-map-pick-coord--muted {
  color: #c0c4cc;
}
.stores-map-pick-footer .el-button + .el-button {
  margin-left: 8px;
}

.stores-detail-drawer .el-drawer__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stores-detail-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 20px 16px;
}

.stores-detail-drawer-foot {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--ding-border-light, #ebeef5);
  background: #fff;
}

.stores-detail-map-panel {
  margin-bottom: 8px;
}

.stores-detail-map-form {
  margin-top: 12px;
}

.stores-detail-map-form .el-form-item {
  margin-bottom: 12px;
}

.stores-detail-coord-line {
  display: inline-block;
  margin-right: 12px;
  font-size: 12px;
  color: var(--ding-text-secondary);
  font-variant-numeric: tabular-nums;
}

.stores-detail-coord-line--muted {
  color: var(--ding-text-placeholder, #c0c4cc);
}

.stores-detail-reset-link {
  padding: 0;
  vertical-align: baseline;
}

.stores-detail-summary {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ding-bg-muted, #f5f7fa);
  border: 1px solid var(--ding-border-light, #ebeef5);
}

.stores-detail-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.stores-detail-summary-row:last-child {
  margin-bottom: 0;
}

.stores-detail-label {
  flex: 0 0 72px;
  color: var(--ding-text-secondary);
}

.stores-detail-value {
  flex: 1;
  min-width: 0;
  color: var(--ding-text-primary);
  word-break: break-all;
}

.stores-detail-section-title {
  margin: 4px 0 12px;
}

.stores-detail-form .el-form-item {
  margin-bottom: 14px;
}

.stores-detail-form .stores-detail-field {
  width: 100%;
  max-width: 420px;
}

.stores-detail-form .stores-detail-hours {
  max-width: 320px;
}

.stores-detail-map-hint {
  margin: 0 0 10px;
}

.stores-detail-map-warn {
  margin: 0 0 10px;
  color: #e6a23c;
}

.stores-detail-map-search {
  margin-bottom: 10px;
}

.stores-detail-map-frame {
  height: 280px;
  margin-bottom: 10px;
}

.stores-detail-map-meta {
  margin-bottom: 4px;
}

.stores-detail-footer .el-button + .el-button {
  margin-left: 8px;
}

.admin-mini-preview-footer .el-checkbox {
  margin: 0;
  font-size: 12px;
}
.stores-map-empty {
  padding: 28px 16px;
  text-align: center;
  color: #909399;
  font-size: 13px;
}
.stores-admin-readonly-tip {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ding-text-secondary);
  background: var(--ding-bg-muted, #f5f7fa);
  border-radius: 6px;
}

.stores-service-form .el-form-item {
  margin-bottom: 14px;
}

.stores-redeem-config-form {
  max-width: 720px;
  margin-bottom: 8px;
}

/* 积分兑换机 / 一番赏：整页三块白框、平级不嵌套 —— 左列(配置+已投放奖品 / 保存按钮) + 右列(模拟器)
   间距/内边距/底边距 全部对齐装修页 .visual-editor-root / .admin-main--ve（12px 节奏） */
.admin-main--stores-split {
  padding: var(--ding-space-3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.admin-main--stores-split .stores-admin-panel--split {
  flex: 1 1 auto;
  min-height: calc(100vh - 168px);
  max-height: none;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--ding-space-3);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

/* 上方一行：左列 + 右列（模拟器）—— 区块间距对齐装修页 12px */
.stores-admin-split-top {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--ding-space-3);
  width: 100%;
  box-sizing: border-box;
}

.stores-admin-left-col {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ding-space-3);
}

.stores-page-list-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stores-page-table-region {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stores-page-table-body {
  flex: 1 1 auto;
  min-height: 180px;
  min-width: 0;
  overflow: hidden;
}

.stores-page-pagination {
  flex: 0 0 auto;
  margin-top: 12px;
  text-align: right;
}

/* 伯俊券模版 / 包装奖品：列表区撑满主内容，分页贴底 */
.admin-main--catalog-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.admin-main--catalog-list .admin-page-header {
  flex: 0 0 auto;
}

.admin-main--catalog-list .catalog-list-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.admin-main--catalog-list .catalog-list-card.el-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.admin-main--catalog-list .catalog-list-card > .el-card__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--ding-space-3);
}

.catalog-list-table-region {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.catalog-list-table-body {
  flex: 1 1 auto;
  min-height: 180px;
  min-width: 0;
  overflow: hidden;
}

.catalog-list-pagination {
  flex: 0 0 auto;
  margin-top: 12px;
  text-align: right;
}

.admin-main--catalog-list .prize-desc-cell {
  white-space: pre-line;
  line-height: 1.45;
  font-size: 12px;
  word-break: break-word;
  padding: 2px 0;
  max-height: 120px;
  overflow: hidden;
  cursor: default;
}

.admin-main--catalog-list .prize-desc-tooltip {
  max-width: min(520px, 92vw);
}

.admin-main--catalog-list .prize-desc-tooltip-content {
  white-space: pre-line;
  line-height: 1.5;
  font-size: 12px;
  word-break: break-word;
  max-height: min(420px, 70vh);
  overflow-y: auto;
}

.admin-main--catalog-list .prize-desc-textarea textarea {
  font-family: inherit;
  line-height: 1.5;
}

.stores-admin-right-col {
  /* 预览区保持实机比例：禁止 flex 挤压导致 scale 缩小 */
  flex: 0 0 clamp(380px, 32vw, 420px);
  width: clamp(380px, 32vw, 420px);
  min-width: 380px;
  max-width: 42%;
  min-height: 0;
  display: flex;
  flex-shrink: 0;
}

/* 通用白色圆角框：配置块 / 模拟器块 —— 对齐装修页 .ve-canvas-col 白块：padding 12 / radius 12 / 无边框 / 淡阴影 */
.stores-panel-box {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 12px;
  box-sizing: border-box;
}

/* 上方白色框：配置 + 已投放奖品（内部可滚动） */
.stores-admin-config-box {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 去「白框套白框」：配置框内子卡片拍平为透明底 + 细分隔线，不再各自是白色圆角卡 */
.stores-admin-config-box .gacha-sim-time-bar {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 8px 0;
}
.stores-admin-config-box .gacha-period-card {
  background: transparent;
  border: none;
  border-bottom: none;
  border-radius: 0;
  padding: 12px 0;
}
.stores-admin-config-box .gacha-period-card:last-child {
  border-bottom: none;
}
.stores-admin-config-box .el-card {
  background: transparent;
  border: none;
  box-shadow: none;
}
.stores-admin-config-box .el-card__header {
  border-bottom: none;
  padding-left: 0;
  padding-right: 0;
}

.stores-admin-panel--split .stores-admin-main-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

/* 分栏页：模拟器在右列，左栏列表须铺满，禁止 legacy paddingRight 预留 */
.admin-main--stores-split .stores-admin-main {
  padding-right: 0 !important;
  width: 100%;
  max-width: 100%;
}
.admin-main--stores-split .gacha-period-list,
.admin-main--stores-split .gacha-period-card {
  width: 100%;
  max-width: 100%;
}

.stores-admin-panel--split .stores-admin-right-col .stores-admin-preview-corner {
  position: relative;
  top: auto;
  right: auto;
  flex: 1 1 auto;
  max-width: 100%;
  align-items: center;
  z-index: 1;
}

/* 右列模拟器由 .stores-admin-preview-corner 自身 flex 居中（#161 还原，避免溢出） */

.stores-admin-scroll-pad {
  height: 28px;
  flex-shrink: 0;
}

.stores-redeem-bottom-thumb {
  max-height: 88px;
}

.stores-redeem-reveal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  max-width: 420px;
}

.stores-redeem-reveal-label {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--ding-text-secondary);
}

.stores-redeem-reveal-row .el-slider {
  flex: 1;
  min-width: 0;
}

.stores-redeem-reveal-suffix {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--ding-text-secondary);
}

.stores-scroll-subtle {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.stores-scroll-subtle:hover {
  scrollbar-color: rgba(31, 35, 41, 0.1) transparent;
}

.stores-scroll-subtle::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.stores-scroll-subtle::-webkit-scrollbar-track {
  background: transparent;
}

.stores-scroll-subtle::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 999px;
}

.stores-scroll-subtle:hover::-webkit-scrollbar-thumb {
  background-color: rgba(31, 35, 41, 0.14);
}

.stores-scroll-subtle:active::-webkit-scrollbar-thumb,
.stores-scroll-subtle:focus-within::-webkit-scrollbar-thumb {
  background-color: rgba(31, 35, 41, 0.2);
}

.stores-admin-panel:not(.stores-admin-panel--split) .stores-admin-preview-corner {
  position: absolute;
  top: var(--ding-space-4);
  right: var(--ding-space-5);
}

.stores-redeem-goods-compact {
  border: none;
  border-radius: var(--ding-radius-lg, 10px);
  overflow: hidden;
  background: #fff;
}

.stores-redeem-goods-head,
.stores-redeem-goods-row {
  display: grid;
  grid-template-columns: 22px 40px minmax(0, 1fr) 52px 48px minmax(148px, auto);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.stores-redeem-goods-head {
  min-height: 32px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ding-text-secondary);
  background: #f5f7fa;
  border-bottom: none;
}

.stores-redeem-goods-row {
  min-height: 52px;
  border-bottom: none;
  font-size: 12px;
}

.stores-redeem-goods-row:last-child {
  border-bottom: none;
}

.stores-redeem-goods-row:hover {
  background: #fafbfc;
}

.stores-redeem-goods-thumb-sm {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: none;
}

.stores-redeem-goods-row-info {
  min-width: 0;
}

.stores-redeem-goods-row-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ding-text);
  line-height: 1.3;
}

.stores-redeem-goods-row-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ding-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stores-redeem-goods-row-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ding-text);
}

.stores-redeem-goods-row-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0;
}

.stores-redeem-goods-row-actions .el-button--text {
  padding: 4px 6px;
}

.gacha-period-list {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.gacha-period-card {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin-bottom: 10px;
  border: none;
  border-radius: 10px;
  background: #fff;
}

.gacha-period-thumb {
  width: 72px;
  height: 56px;
  flex: none;
  border-radius: 8px;
  background: #eef6f8;
}

.gacha-period-card-main {
  flex: 1;
  min-width: 0;
}

.gacha-period-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.gacha-period-card-main p {
  margin: 0 0 2px;
  font-size: 12px;
  color: var(--ding-text-secondary);
}

.gacha-period-card-actions {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

@media (min-width: 960px) {
  .stores-admin-panel--split .gacha-period-card {
    flex-wrap: nowrap;
    align-items: center;
  }
  .stores-admin-panel--split .gacha-period-card-actions {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
  }
}

.stores-gacha-goods-head,
.stores-gacha-goods-row {
  grid-template-columns: 40px minmax(0, 1fr) 118px 120px minmax(64px, auto);
}

.gacha-pool-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 110px 110px auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: none;
}

.gacha-pool-row-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}

.gacha-pool-row-name span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--ding-text-secondary);
}

.gacha-hero-placeholder {
  width: 96px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  color: var(--ding-text-secondary);
  font-size: 12px;
  background: #f7f8fa;
}

.stores-redeem-goods-row .stores-redeem-drag-handle {
  padding-top: 0;
  text-align: center;
}

@media (max-width: 900px) {
  .stores-redeem-goods-head {
    display: none;
  }
  .stores-redeem-goods-row {
    grid-template-columns: 22px 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    padding: 8px 10px;
  }
  .stores-redeem-goods-row-num,
  .stores-redeem-goods-row-actions {
    grid-column: 3;
  }
}

.stores-redeem-goods-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.stores-redeem-goods-card {
  border: none;
  border-radius: var(--ding-radius-lg, 10px);
  padding: 12px 14px;
  background: #fafbfc;
}

.stores-redeem-goods-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.stores-redeem-goods-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ding-text);
}

.stores-redeem-goods-meta {
  margin: 0;
  display: grid;
  gap: 6px;
}

.stores-redeem-meta-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.stores-redeem-meta-row dt {
  margin: 0;
  color: var(--ding-text-secondary);
}

.stores-redeem-meta-row dd {
  margin: 0;
  color: var(--ding-text);
  word-break: break-word;
}

.stores-redeem-goods-hint {
  margin: 10px 0 6px;
}

.stores-redeem-goods-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.stores-redeem-goods-card-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.stores-redeem-drag-handle {
  flex: 0 0 auto;
  cursor: grab;
  color: var(--ding-text-secondary);
  font-size: 14px;
  line-height: 1;
  padding-top: 28px;
  user-select: none;
}

.stores-redeem-goods-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  flex: 0 0 auto;
  background: #fff;
  border: none;
}

.stores-redeem-goods-body {
  flex: 1;
  min-width: 0;
}

.stores-redeem-goods-desc {
  margin: 4px 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ding-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stores-redeem-goods-meta--inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .stores-redeem-goods-meta--inline {
    grid-template-columns: 1fr;
  }
}

.stores-redeem-signboard-field {
  max-width: 100%;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.stores-redeem-signboard-field .ve-banner-thumb {
  flex-shrink: 0;
}

.stores-redeem-signboard-field .ve-upload-inline {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.stores-redeem-signboard-field .ve-upload-spec {
  max-width: 168px;
}

.stores-redeem-pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow: auto;
}

.stores-redeem-pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: none;
}

.stores-redeem-pick-copy {
  flex: 1;
  min-width: 0;
}

.stores-redeem-pick-copy strong {
  display: block;
  font-size: 14px;
}

.stores-redeem-pick-sku {
  font-size: 12px;
  color: var(--ding-text-secondary);
}

@media (max-width: 1100px) {
  .stores-admin-split-top {
    flex-direction: column;
  }
  .stores-admin-right-col {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .stores-admin-panel--split {
    flex-direction: column;
  }
  .stores-admin-panel--split .stores-admin-preview-corner {
    position: relative;
    top: auto;
    right: auto;
    order: -1;
    flex: none;
    width: 100% !important;
    min-width: 0;
    max-width: none;
    margin-bottom: var(--ding-space-3);
  }
  .stores-admin-panel--split .stores-admin-main {
    padding-right: 0 !important;
  }
  .stores-admin-panel--split .stores-ve-device-scroll {
    min-height: 360px;
    height: min(480px, 50vh) !important;
  }
}

/* —— 卡片 / 表格 —— */

.admin-main .el-card {
  border-radius: var(--ding-radius-xl);
  border: none;
  box-shadow: var(--ding-shadow-sm);
}

.admin-main .el-card.is-always-shadow,
.admin-main .el-card.is-hover-shadow {
  box-shadow: var(--ding-shadow-md);
}

.admin-main .el-card__header {
  padding: var(--ding-space-3) var(--ding-space-4);
  border-bottom: 1px solid var(--ding-divider);
  border-radius: var(--ding-radius-xl) var(--ding-radius-xl) 0 0;
  overflow: hidden;
  line-height: var(--ding-line-height);
  font-weight: 600;
  color: var(--ding-text);
}

.admin-main .el-card__header::after {
  content: "";
  display: block;
  clear: both;
}

.admin-main .el-card__body {
  padding: var(--ding-space-4);
}

.admin-main .el-card__header .el-button {
  float: right;
  margin-left: var(--ding-space-2);
  margin-bottom: var(--ding-space-1);
}

.admin-main .el-card__header .el-tag {
  vertical-align: middle;
  margin-left: var(--ding-space-2);
}

.admin-main .el-table {
  border-radius: var(--ding-radius-lg);
  overflow: hidden;
  font-size: var(--ding-font-body);
}

.admin-main .el-table th {
  background: #fafbfc !important;
  color: var(--ding-muted);
  font-weight: 500;
}

.admin-main .el-table td .cell .el-button + .el-button {
  margin-left: var(--ding-space-1);
}

.admin-main .el-table .el-button--mini {
  padding: 5px 10px;
}

/* —— 登录 —— */

.admin-login-page {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ding-space-6) var(--ding-space-4);
  box-sizing: border-box;
  background: linear-gradient(180deg, #e8f4ff 0%, var(--ding-bg) 55%);
}

.admin-login-panel {
  width: 100%;
  max-width: 380px;
}

.admin-login-card {
  border-radius: var(--ding-radius-shell);
  border: none;
  box-shadow: var(--ding-shadow-lg);
}

.admin-login-card .el-card__header {
  text-align: center;
  font-size: var(--ding-font-title);
  font-weight: 600;
  color: var(--ding-text);
  border-bottom: none;
  padding: 28px var(--ding-space-6) var(--ding-space-2);
}

.admin-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ding-space-2);
}

.admin-brand-logo-full {
  width: auto;
  height: 56px;
  object-fit: contain;
  display: block;
}

.admin-login-title {
  font-size: var(--ding-font-title);
  font-weight: 600;
  color: var(--ding-text);
  letter-spacing: 0.02em;
}

.admin-login-card .el-card__body {
  padding: var(--ding-space-2) 28px 32px;
}

.admin-login-card .el-input__inner {
  border-radius: var(--ding-radius-md);
  height: 40px;
}

.admin-login-card .el-button--primary {
  width: 100%;
  margin-top: var(--ding-space-2);
  border-radius: var(--ding-radius-md);
  height: 40px;
}

/* —— Element 品牌色（全局）—— */

.el-button--primary {
  background-color: var(--ding-brand);
  border-color: var(--ding-brand);
}

.el-button--primary:focus,
.el-button--primary:hover {
  background-color: var(--ding-brand-hover);
  border-color: var(--ding-brand-hover);
}

.el-button--primary:active {
  background-color: var(--ding-brand-active);
  border-color: var(--ding-brand-active);
}

.el-button--primary:focus-visible {
  box-shadow: var(--ding-focus-ring);
}

.el-radio-button__orig-radio:checked + .el-radio-button__inner,
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-switch.is-checked .el-switch__core {
  border-color: var(--ding-brand);
  background-color: var(--ding-brand);
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: var(--ding-brand);
}

.el-tabs__item.is-active,
.el-tabs__item:hover {
  color: var(--ding-brand);
}

.el-tabs__active-bar {
  background-color: var(--ding-brand);
}

.el-input__inner:focus,
.el-textarea__inner:focus {
  border-color: var(--ding-brand);
}

/* —— 内容区组件规范 —— */

.admin-main .el-button {
  border-radius: var(--ding-radius-md);
  font-weight: 500;
}

.admin-main .el-button--mini,
.admin-main .el-button--small {
  border-radius: var(--ding-radius-sm);
}

.admin-main .el-button--text {
  border-radius: var(--ding-radius-sm);
  padding-left: 6px;
  padding-right: 6px;
  font-weight: 400;
}

.admin-main .el-input__inner,
.admin-main .el-textarea__inner {
  border-radius: var(--ding-radius-md);
  border-color: var(--ding-border);
  color: var(--ding-text);
}

.admin-main .el-input__inner::placeholder {
  color: var(--ding-placeholder);
}

.admin-main .el-select .el-input__inner {
  border-radius: var(--ding-radius-md);
}

.admin-main .el-dialog {
  border-radius: var(--ding-radius-xl);
  overflow: hidden;
}

.admin-main .el-dialog__header {
  padding: var(--ding-space-4) var(--ding-space-5);
  border-bottom: 1px solid var(--ding-divider);
}

.admin-main .el-dialog__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ding-text);
}

.admin-main .el-dialog__body {
  padding: var(--ding-space-4) var(--ding-space-5);
}

.admin-main .el-dialog__footer {
  padding: var(--ding-space-3) var(--ding-space-5) var(--ding-space-4);
  border-top: 1px solid var(--ding-divider);
}

.admin-main .el-alert {
  border-radius: var(--ding-radius-lg);
}

.admin-main .el-tabs__nav-wrap::after {
  height: 1px;
  background-color: var(--ding-divider);
}

.admin-main .el-descriptions {
  border-radius: var(--ding-radius-lg);
  overflow: hidden;
}

.admin-main .el-form--inline .el-form-item {
  margin-right: var(--ding-space-3);
  margin-bottom: var(--ding-space-2);
}

.admin-main .el-form-item__label {
  color: var(--ding-text-secondary);
}

.admin-main .el-checkbox-group {
  max-width: 100%;
}

.admin-main .el-checkbox {
  display: flex;
  align-items: flex-start;
  white-space: normal;
  margin-right: 0;
}

.admin-main .el-checkbox__label {
  line-height: var(--ding-line-height);
  white-space: normal;
  word-break: break-word;
  color: var(--ding-text-secondary);
}

.admin-main .el-tag {
  border-radius: var(--ding-radius-sm);
}

.visual-editor-layout {
  min-width: 0;
  width: 100%;
}

/* 挂载在 body 的弹层（append-to-body）与主站一致 */

body .el-dialog {
  border-radius: var(--ding-radius-xl);
  overflow: hidden;
}

body .el-dialog__header {
  padding: var(--ding-space-4) var(--ding-space-5);
  border-bottom: 1px solid var(--ding-divider);
}

body .el-dialog__footer {
  padding: var(--ding-space-3) var(--ding-space-5) var(--ding-space-4);
  border-top: 1px solid var(--ding-divider);
}

body .el-message-box {
  border-radius: var(--ding-radius-xl);
  overflow: hidden;
}

.admin-user-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 72px;
}
.admin-user-role {
  font-size: 12px;
  color: var(--ding-muted);
}
.admin-menu-loading {
  padding: 24px 16px;
  color: var(--ding-muted);
  font-size: 13px;
}
.sys-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.sys-perm-group {
  margin-bottom: 12px;
}
.sys-perm-group h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ding-text-secondary);
}
.sys-perm-group .el-checkbox {
  display: block;
  margin: 0 0 6px;
}

/* ===== 一番赏：列表内模拟时间条（置于模拟器白卡内底部，#161 还原；#164 去容器颜色/边框、内容居中） ===== */
.gacha-sim-time-bar--list {
  width: 100%;
  margin: 4px 0 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  justify-content: center;
}
.gacha-period-list-head {
  margin-bottom: 12px;
}
.gacha-meta-tabs {
  margin: 2px 0 12px;
}
.gacha-meta-tabs .el-tabs__header {
  margin: 0 0 12px;
}
.gacha-empty-config {
  margin-bottom: 12px;
  border-radius: 12px;
}

/* ===== 整页底部保存条：1:1 对照小程序装修页「发布到小程序」.ve-publish-dock 真实样式 ===== */
.stores-global-save-bar {
  position: static;
  flex: 0 0 auto;
  flex-shrink: 0;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--ding-surface, #fff);
  border: none;
  border-radius: var(--ding-radius-xl, 12px);
  box-shadow: var(--ding-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.04));
  overflow: hidden;
}

/* 底部贯穿整页的保存条：与其他区块同宽、不贴边、白色圆角卡片（与装修页发布条一致） */
.stores-global-save-bar--footer {
  flex-shrink: 0;
}
.stores-global-save-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stores-global-save-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.stores-global-save-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--ding-text-secondary, #373c43);
}
.stores-global-save-tip {
  font-size: 12px;
  color: var(--ding-placeholder, #8f959e);
}
.stores-global-save-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}
.stores-global-save-actions .el-button--primary {
  min-width: 96px;
}

/* 底部按钮块：仅按钮，居中 */
.stores-save-bottom .stores-global-save-inner {
  justify-content: center;
}
.stores-save-bottom .stores-global-save-meta {
  align-items: center;
  text-align: center;
}

/* —— 借鉴 scaffold：表格可读性与操作列 —— */
.admin-main .el-table__fixed-right {
  box-shadow: -6px 0 12px rgba(15, 23, 42, 0.06);
}

.admin-main .el-table__body tr:hover > td {
  background-color: rgba(0, 137, 255, 0.04) !important;
}

.admin-main .el-table .col-actions .cell {
  white-space: nowrap;
}

.admin-login-card .admin-login-hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ding-muted);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-header-title {
  font-weight: 600;
}

.admin-card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-section-head .admin-section-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.admin-section-head:not(:has(.stores-admin-section-title)) .admin-section-head-actions {
  margin-left: 0;
  width: 100%;
  justify-content: flex-start;
}

.admin-mini-preview-footer:empty {
  display: none;
}

.activity-hub-desc {
  margin: 0 0 20px;
  color: var(--ding-muted);
  font-size: 13px;
  line-height: 1.6;
}
.activity-hub-card {
  margin-bottom: 16px;
  border-radius: 14px;
  border: 2px solid #191c1e;
  cursor: pointer;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.activity-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(25, 28, 30, 0.08);
}
.activity-hub-card-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 0;
}
.activity-hub-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid #191c1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #191c1e;
}
.activity-hub-icon-wrap--redeem { background: #d9f3fa; }
.activity-hub-icon-wrap--gacha { background: #ffe8f3; }
.activity-hub-icon-wrap--wheel { background: #efe8fc; }
.activity-hub-icon-wrap--enroll { background: #f3dce7; }
.activity-hub-copy { flex: 1; min-width: 0; }
.activity-hub-copy h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #191c1e; }
.activity-hub-copy p { margin: 0 0 8px; font-size: 13px; color: #506165; line-height: 1.5; }
.activity-hub-hint { font-size: 12px; color: #909399; }
.activity-hub-chevron { flex-shrink: 0; font-size: 18px; color: #c0c4cc; margin-top: 12px; }
.activity-hub-tile {
  margin-bottom: 16px;
  padding: 22px 20px;
  border-radius: 16px;
  border: 2px solid #191c1e;
  cursor: pointer;
  min-height: 128px;
  transition: transform 0.12s ease;
}
/* 2026-10-29：用户确认无阴影方案，去掉硬阴影（admin-ui-kit.css 已改一行一卡布局） */
.activity-hub-tile:hover { transform: translateY(-1px); }
.activity-hub-tile--redeem { background: linear-gradient(135deg, #d9f3fa, #ffffff); }
.activity-hub-tile--gacha { background: linear-gradient(135deg, #ffe8f3, #fff7d6); }
.activity-hub-tile--wheel { background: linear-gradient(135deg, #efe8fc, #d9f3fa); }
.activity-hub-tile--enroll { background: linear-gradient(135deg, #fff7d6, #f3dce7); }
.activity-hub-mark {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #506165;
  margin-bottom: 10px;
}
.activity-hub-tile h3 { margin: 0 0 8px; font-size: 17px; }
.activity-hub-tile p { margin: 0; font-size: 13px; color: #506165; line-height: 1.5; }
.enroll-detail-editor { width: 100%; }
.enroll-detail-stack-preview {
  max-height: 320px;
  overflow: auto;
  border: 1px dashed #c0c4cc;
  border-radius: 8px;
  padding: 8px;
  background: #fafafa;
}
.enroll-detail-stack-img { display: block; width: 100%; margin-bottom: 8px; border-radius: 6px; }
.enroll-detail-stack-empty { padding: 24px; text-align: center; color: #909399; font-size: 12px; }
.enroll-detail-toolbar { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.stores-enroll-prize-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stores-enroll-prize-label { font-size: 13px; font-weight: 700; color: #191c1e; }
.stores-enroll-prize-empty { font-size: 13px; color: #909399; }
.enroll-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.enroll-detail-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid #e4e7ed;
}
.form-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #909399;
  line-height: 1.5;
}

.admin-tab-context-menu {
  position: fixed;
  z-index: 4000;
  min-width: 148px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 35, 41, 0.12);
}

.admin-tab-context-menu button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 13px;
  color: #1f2329;
  cursor: pointer;
}

.admin-tab-context-menu button:hover {
  background: #f2f4f7;
}

/* 2026-10-19 欢迎页（缺省页）：关闭全部页签后的落点，独立样式不干扰现有布局 */
.admin-welcome {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.admin-welcome-inner { text-align: center; max-width: 780px; width: 100%; }
.admin-welcome-logo { width: 72px; height: 72px; object-fit: contain; margin-bottom: 14px; }
.admin-welcome-title { font-size: 22px; font-weight: 600; color: #303133; margin: 0 0 6px; }
.admin-welcome-greet { font-size: 15px; color: #606266; margin: 0 0 4px; }
.admin-welcome-sub { font-size: 13px; color: #909399; margin: 0 0 30px; }
.admin-welcome-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.admin-welcome-card { background: #fff; border: 1px solid #ebeef5; border-radius: 8px; padding: 22px 12px; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.admin-welcome-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.admin-welcome-card i { font-size: 28px; color: #409EFF; display: block; margin-bottom: 10px; }
.admin-welcome-card span { font-size: 14px; color: #303133; }

/* ===== 包装奖品 / 伯俊券模板 页 ===== */
.pkg-prizes-toolbar { display:flex; align-items:center; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.pkg-prizes-hint { color:#909399; font-size:12px; }
.pkg-prizes-noimg { color:#c0c4cc; font-size:12px; }
.pkg-prize-name { font-weight:600; color:#303133; }
.pkg-prize-sub { color:#909399; font-size:12px; margin:2px 0; }
.pkg-prize-upload { display:flex; align-items:center; gap:12px; }
/* ==========================================================================
   通用列表页布局（2026-10-25 统一规范，用户拍板）
   规范：表格通铺到底（不是固定几行后留大片空白）+ 页码在右下角
        工具条一行：左边筛选项 + 搜索/重置按钮，右边新增等主操作
        所有列表页（账号/角色/日志/门店/会员/奖品…）都按这套走
   ========================================================================== */
.admin-list-page-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.admin-list-page-wrap > .admin-list-page {
  flex: 1;
  min-height: 0;
}
.admin-list-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  display: flex;
}
.admin-list-page > .el-card__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: var(--ding-space-4, 16px);
}
.admin-list-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.admin-list-toolbar .toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-list-toolbar .toolbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* 同一页内两张列表切换（如券模板 / 同步记录） */
.admin-list-subtabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.admin-list-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.admin-list-hint {
  flex: 0 0 auto;
  font-size: 12px;
  color: #909399;
  margin: 0 0 12px;
}
/* 列表页内 el-tabs：与 admin-list-body + ak-pager 同一套纵向 flex */
.admin-list-page .el-tabs.admin-list-tabs {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.admin-list-page .el-tabs.admin-list-tabs > .el-tabs__header {
  flex: 0 0 auto;
}
.admin-list-page .el-tabs.admin-list-tabs > .el-tabs__content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.admin-list-page .el-tabs.admin-list-tabs > .el-tabs__content > .el-tab-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.admin-list-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 12px;
}
/* 表单内联错误：不用右上角飘出的提示，直接显示在字段下面 */
.admin-form-error {
  margin: 2px 0 0;
  color: #f56c6c;
  font-size: 12px;
  line-height: 1.4;
}
/* 权限树：分组标题与叶子区分 */
.admin-perm-tree .el-tree-node__label { font-size: 13px; }
.admin-perm-tree .is-group > .el-tree-node__content { font-weight: 600; }

/* ==========================================================================
   2026-10-25 全局 UI 统一规范（纯样式，不动功能）
   表格自适应 / 分页右下 / 弹框统一 / 按钮统一 / 表单统一
   ========================================================================== */

/* 1. 表格：自适应屏幕宽度，不固定死列宽 */
.el-table { width: 100% !important; }
.el-table th.el-table__cell { background: #fafbfc; color: #515a6e; font-weight: 600; font-size: 13px; }
.el-table .cell { padding: 0 10px; }

/* 2. 分页：统一右下角，小尺寸，跟表格之间有分隔线 */
.admin-list-footer { border-top: 1px solid #f0f0f0; margin-top: 12px; }
.el-pagination { justify-content: flex-end !important; padding: 12px 0 0; }
.el-pagination--small { font-size: 13px; }

/* 3. 弹框：统一宽度、圆角、按钮位置 */
.el-dialog { border-radius: 10px !important; }
.el-dialog__header { border-bottom: 1px solid #f0f0f0; padding: 16px 20px !important; margin-right: 0 !important; }
.el-dialog__title { font-size: 15px; font-weight: 600; color: #1f2329; }
.el-dialog__body { padding: 20px !important; }
.el-dialog__footer { padding: 12px 20px 16px !important; text-align: right; border-top: 1px solid #f0f0f0; }
.el-dialog__footer .el-button + .el-button { margin-left: 8px; }

/* 4. 弹框内表单：label 宽度统一、间距统一 */
.el-dialog .el-form-item { margin-bottom: 18px; }
.el-dialog .el-form-item__label { font-size: 13px; color: #515a6e; }
.el-dialog .el-form-item__content { line-height: 32px; }

/* 5. 按钮：统一尺寸和颜色 */
.el-button--small { padding: 7px 15px; font-size: 13px; border-radius: 6px; }
.el-button--mini { padding: 5px 11px; font-size: 12px; border-radius: 5px; }
.el-button--primary { background: #0089ff; border-color: #0089ff; }
.el-button--primary:hover { background: #33a3ff; border-color: #33a3ff; }
.el-button--danger { background: #f56c6c; border-color: #f56c6c; }
.el-button--danger:hover { background: #f78989; border-color: #f78989; }

/* 6. 空状态 / 加载状态统一 */
.el-table__empty-text { padding: 40px 0; color: #909399; font-size: 13px; }
.el-loading-spinner .el-loading-text { color: #0089ff; }

/* 7. Tab 标签页统一 */
.el-tabs__item { font-size: 14px; color: #515a6e; }
.el-tabs__item.is-active { color: #0089ff; }
.el-tabs__active-bar { background: #0089ff; }

/* 8. 输入框/下拉/日期选择器统一 */
.el-input__inner, .el-select .el-input__inner, .el-date-editor.el-input__inner {
  border-radius: 6px;
  border-color: #dcdfe6;
}
.el-input__inner:focus { border-color: #0089ff; }

/* 9. 卡片统一圆角 */
.el-card { border-radius: 8px !important; border: 1px solid #e5e6eb; }
.el-card__header { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; font-weight: 600; }
.el-card__body { padding: 16px; }
.admin-role-perm-cell { line-height: 1.6; }

/* === 全局统一：所有列表页强制一致 (2026-10-25) === */
.admin-list-page { padding: 0 !important; }
.admin-list-page .el-card__body { padding: 16px !important; }
.admin-list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.admin-list-toolbar .toolbar-left, .admin-list-toolbar .toolbar-right { display: flex; align-items: center; gap: 8px; }
.admin-list-toolbar .el-input { width: 200px !important; }
.admin-list-toolbar .el-input__inner { height: 32px !important; line-height: 32px !important; }
.admin-list-toolbar .el-select { width: 140px !important; }
.admin-list-toolbar .el-button { margin-left: 0 !important; }
.admin-list-body { overflow: hidden; }
.admin-list-body .el-table { width: 100% !important; }
.admin-list-body .el-table th { background: #fafafa !important; color: #515a6e !important; font-weight: 500 !important; }
.admin-list-body .el-table td { padding: 8px 0 !important; }
.admin-list-footer { border-top: 1px solid #f0f0f0; margin-top: 12px; padding-top: 12px; display: flex; justify-content: flex-end; }
.el-button--small { padding: 7px 15px !important; font-size: 13px !important; }
.el-dialog { border-radius: 8px !important; }
.el-dialog__body { padding: 20px 24px !important; }
.el-form-item__label { font-size: 13px !important; }

/* 登录后未处理告警弹框 */
.login-alert-summary {
  margin: 0 0 14px;
  color: #646a73;
  font-size: 13px;
  line-height: 1.55;
}
.login-alert-list {
  max-height: 420px;
  overflow-y: auto;
}
.login-alert-item {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fafbfc;
}
.login-alert-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.login-alert-title {
  font-weight: 600;
  color: #1f2329;
  flex: 1;
  min-width: 0;
}
.login-alert-time {
  font-size: 12px;
  color: #8f959e;
  flex-shrink: 0;
}
.login-alert-content {
  margin: 0 0 10px;
  font-size: 13px;
  color: #373c43;
  line-height: 1.5;
  word-break: break-word;
}
/* 告警中心 / 登录弹窗：摘要 + 详情·原因·建议 */
.alert-headline,
.login-alert-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
}
.alert-title-error { color: #c45656; }
.alert-title-warn { color: #c77c00; }
.alert-body-dl {
  margin: 0;
  padding: 0;
}
.alert-body-dl.compact { max-height: 132px; overflow-y: auto; }
.alert-body-row {
  display: flex;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.5;
  align-items: flex-start;
}
.alert-body-row dt {
  flex-shrink: 0;
  width: 2.5em;
  margin: 0;
  font-weight: 600;
  color: #646a73;
}
.alert-body-row dd {
  margin: 0;
  flex: 1;
  color: #373c43;
  word-break: break-word;
}
.alert-line-reason dd { color: #8a3b3b; }
.alert-line-suggest dd { color: #1f5f9d; font-weight: 500; }
.alert-line-detail dd { color: #4e5969; }
.login-alert-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.login-alert-biz {
  font-size: 12px;
  color: #8f959e;
}
.login-alert-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-card-header {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.dash-help-icon {
  margin-left: 4px;
  color: #909399;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
}

.dash-help-icon:hover {
  color: #409eff;
}

/* 运营看板：各行、各卡片统一间距（与 --ding-space-4 对齐） */
.dash-board {
  --dash-gap: var(--ding-space-4, 16px);
}

.dash-board > .el-row + .el-row {
  margin-top: var(--dash-gap);
}

.dash-board > .dash-snapshot-alert {
  margin-bottom: var(--dash-gap);
}

.dash-hero-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  margin-bottom: var(--dash-gap, 16px);
}

.dash-hero-left {
  position: relative;
  flex: 0 0 140px;
  width: 140px;
  min-height: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-hero-switch-char {
  width: auto !important;
  margin-top: auto;
  align-self: center;
  flex-shrink: 0;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  font-size: 12px;
  line-height: 1.2;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #606266 !important;
  background: rgba(255, 255, 255, 0.65) !important;
}

.dash-hero-switch-char [class*='el-icon-'] {
  font-size: 12px !important;
  margin-right: 2px;
}

.dash-hero-switch-char:hover,
.dash-hero-switch-char:focus {
  border-color: rgba(0, 137, 255, 0.35) !important;
  color: #0089ff !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.dash-hero-mascot {
  width: 140px;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: 0;
  background: transparent;
  border: none;
  user-select: none;
  -webkit-user-select: none;
}

.dash-hero-mascot-ling,
.dash-hero-mascot live-ling {
  width: 128px !important;
  height: 128px !important;
  min-width: 128px;
  min-height: 128px;
  display: inline-block;
  touch-action: none;
}

.dash-hero-mascot live-ling canvas {
  cursor: grab;
}

.dash-hero-mascot live-ling canvas:active {
  cursor: grabbing;
}

@media (max-width: 960px) {
  .dash-hero-row {
    flex-direction: column;
  }

  .dash-hero-mascot {
    width: 100%;
    flex: none;
    min-height: auto;
  }
}

.dash-hero-panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: 0;
  margin-bottom: 10px;
  padding-top: 0;
}

.dash-hero-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: 40px;
}

.dash-hero-panel-toolbar-right {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.dash-hero-speech-bubble {
  position: relative;
  flex: 0 1 auto;
  z-index: 2;
  margin: 0;
  padding: 10px 14px 10px 18px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  line-height: 1.45;
  white-space: normal;
  max-width: min(440px, 58vw);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.dash-hero-speech-bubble:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dash-hero-speech-bubble:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.88);
}

.dash-hero-speech-tail {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 22px;
  pointer-events: none;
}

.dash-hero-speech-tail::before {
  content: none;
}

.dash-hero-speech-tail::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.72);
  filter: drop-shadow(-1px 0 0 rgba(0, 0, 0, 0.04));
}

.dash-hero-row {
  align-items: stretch;
}

.dash-hero-panel .dash-kpi-row-hero {
  flex: 0 1 auto;
  align-items: stretch;
}

.dash-hero-panel .dash-kpi-card-hero .el-card__body {
  min-height: 0;
  padding: 12px 14px 12px !important;
  justify-content: flex-start;
}

.dash-hero-panel .dash-kpi-card-hero .dash-kpi-label-hero {
  display: block;
  text-align: left;
  font-size: 15px;
  color: #606266;
  margin-bottom: 6px;
  line-height: 1.45;
  font-weight: 500;
}

.dash-kpi-label-title {
  display: inline;
  white-space: normal;
}

.dash-kpi-value-block {
  display: block;
  text-align: left;
}

.dash-kpi-value-row {
  display: block;
  text-align: left;
  line-height: 1.35;
}

.dash-kpi-value-row .dash-kpi-value {
  display: inline;
  vertical-align: baseline;
}

.dash-kpi-value-row .dash-kpi-value-delta {
  display: inline;
  margin-left: 10px;
  vertical-align: baseline;
}

.dash-kpi-value-delta {
  font-size: 13px;
  font-weight: 500;
  color: #909399;
  line-height: 1.4;
}

.dash-kpi-value-delta > span + span {
  margin-left: 10px;
}

.dash-kpi-value-delta .dash-kpi-delta-up,
.dash-kpi-value-delta .dash-kpi-delta-down,
.dash-kpi-value-delta .dash-kpi-delta-flat {
  font-size: 13px;
}

.dash-hero-panel .dash-kpi-card-hero .dash-kpi-label {
  font-size: 15px;
  color: #606266;
  margin-bottom: 8px;
  line-height: 1.4;
  font-weight: 500;
}

.dash-hero-panel .dash-kpi-card-hero .dash-kpi-value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.dash-kpi-delta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: #909399;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  line-height: 1.4;
}

.dash-kpi-delta-up {
  color: #67c23a;
  font-weight: 600;
}

.dash-kpi-delta-down {
  color: #f56c6c;
  font-weight: 600;
}

.dash-kpi-delta-flat {
  color: #909399;
  font-weight: 600;
}

@media (max-width: 960px) {
  .dash-hero-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-hero-left {
    width: 100%;
    flex: none;
    min-height: auto;
  }

  .dash-hero-speech-bubble {
    white-space: normal;
  }

  .dash-hero-speech-tail {
    display: none;
  }
}

.dash-board .dash-toolbar-row {
  min-height: 40px;
  margin-bottom: var(--dash-gap);
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dash-board .dash-kpi-row {
  margin-top: 0;
  clear: both;
}

.dash-kpi-row-equal {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 0;
  align-items: stretch;
}

.dash-hero-panel .dash-kpi-row-equal {
  flex: 1 1 auto;
}

.dash-kpi-row-equal > .dash-kpi-col {
  flex: 1 1 0;
  min-width: 0;
}

.dash-board .dash-toolbar-right {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dash-kpi-ai-card {
  cursor: pointer;
  border: 1px solid #e4e7ed;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 55%);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-kpi-ai-card:hover {
  border-color: #0089ff;
  box-shadow: 0 4px 14px rgba(0, 137, 255, 0.12);
}

.dash-kpi-ai-body {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 0;
}

.dash-kpi-ai-mascot-box {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  overflow: hidden;
}

.dash-kpi-ai-mascot,
.dash-kpi-ai-mascot-box live-ling {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  min-height: 38px;
  display: inline-block;
  vertical-align: top;
}

.dash-kpi-ai-bubble {
  flex: 1;
  min-width: 0;
  position: relative;
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.35;
}

.dash-kpi-ai-bubble::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 10px;
  border: 5px solid transparent;
  border-right-color: #dce8f5;
}

.dash-kpi-ai-title {
  display: block;
  color: #303133;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-kpi-ai-kbd {
  display: inline-block;
  margin-top: 2px;
  font-size: 10px;
  color: #909399;
  border: 1px solid #ebeef5;
  border-radius: 3px;
  padding: 0 4px;
}

.dash-ai-drawer .el-drawer__body {
  padding: 0;
  height: calc(100% - 60px);
  overflow: hidden;
}

.dash-ai-drawer-v2 .el-drawer__header {
  margin-bottom: 0;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f2f5;
}

.dash-ai-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  background: #f7f8fa;
}

.dash-ai-drawer-inner .dash-ai-meta {
  padding: 10px 12px 0;
}

.dash-ai-mascot {
  display: block;
  flex-shrink: 0;
}

.dash-ai-thread-avatar {
  flex: 0 0 96px;
  width: 96px;
}

.dash-ai-mascot--thread,
.dash-ai-thread-avatar live-ling {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px;
  min-height: 96px;
  display: inline-block;
}

.dash-ai-thread {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 12px 14px;
}

.dash-ai-thread-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.dash-ai-thread-row.is-user {
  flex-direction: row-reverse;
}

.dash-ai-thread-row.is-user .dash-ai-thread-main {
  align-items: flex-end;
}

.dash-ai-thread-row.is-assistant .dash-ai-thread-main {
  max-width: calc(100% - 106px);
}

.dash-ai-thread-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.dash-ai-thread-meta {
  font-size: 11px;
  color: #909399;
  margin-bottom: 4px;
}

.dash-ai-thread-bubble {
  font-size: 14px;
  line-height: 1.55;
  color: #303133;
  word-break: break-word;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  padding: 8px 11px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.dash-ai-thread-bubble .md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0;
  font-size: 13px;
}
.dash-ai-thread-bubble .md-table th,
.dash-ai-thread-bubble .md-table td {
  border: 1px solid #dcdfe6;
  padding: 4px 8px;
  text-align: left;
}
.dash-ai-thread-bubble .md-table th {
  background: #f5f7fa;
  font-weight: 600;
}
.dash-ai-thread-bubble .md-li {
  margin: 2px 0;
}
.dash-ai-thread-row.is-user .dash-ai-thread-bubble {
  background: #0089ff;
  border-color: #0089ff;
  color: #fff;
}
.dash-ai-beta-banner {
  background: #fff8e6;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #ad6800;
  margin-bottom: 8px;
  text-align: center;
}
.dash-ai-contact-link {
  color: #d48806;
  text-decoration: underline;
  cursor: pointer;
}
.dash-ai-contact-link:hover {
  color: #ad6800;
}
.ai-beta-tag {
  font-size: 11px;
  font-weight: normal;
  color: #909399;
  margin-left: 4px;
}
.dash-ai-drawer-title {
  font-size: 16px;
}
.dash-ai-export-row {
  margin-top: 4px;
  text-align: right;
}
.dash-ai-export-btn {
  font-size: 12px;
  color: #0089ff;
  background: #ecf5ff;
  border: 1px solid #b3d8ff;
  border-radius: 4px;
  padding: 2px 10px;
  cursor: pointer;
}
.dash-ai-export-btn:hover {
  background: #d9ecff;
}
.dash-ai-suggest-bubbles {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.dash-ai-suggest-bubble {
  font-size: 13px;
  color: #606266;
  background: #f5f7fa;
  border: 1px solid #e4e7ed;
  border-radius: 16px;
  padding: 6px 14px;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
}
.dash-ai-suggest-bubble:hover {
  background: #ecf5ff;
  border-color: #b3d8ff;
  color: #0089ff;
}

.dash-ai-thread-tool {
  font-size: 12px;
  color: #0089ff;
  padding: 4px 8px 8px 106px;
}

.dash-ai-foot {
  flex-shrink: 0;
  border-top: 1px solid #ebeef5;
  background: #fff;
  padding: 10px 12px 12px;
}

.dash-ai-suggest-col {
  margin-bottom: 10px;
}

.dash-ai-suggest-label {
  font-size: 11px;
  color: #909399;
  margin-bottom: 6px;
}

.dash-ai-suggest-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  margin: 0 0 6px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #606266;
  background: #f5f7fa;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  cursor: pointer;
}

.dash-ai-suggest-item:last-of-type {
  margin-bottom: 0;
}

.dash-ai-suggest-item:hover:not(:disabled) {
  border-color: #0089ff;
  color: #0089ff;
  background: #ecf5ff;
}

.dash-ai-suggest-item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dash-ai-suggest-loading {
  font-size: 12px;
  color: #c0c4cc;
  padding: 4px 0;
}

.dash-ai-compose-panel {
  border: 1px solid #dcdfe6;
  border-radius: 10px;
  background: #fff;
  padding: 6px 8px 8px;
}

.dash-ai-compose-panel-head {
  margin-bottom: 4px;
}

.dash-ai-model-select-inline {
  flex-shrink: 0;
  max-width: none;
}

.dash-ai-model-select-inline .el-input {
  width: 100% !important;
}

.dash-ai-model-select-inline .el-input__inner {
  border: none;
  background: transparent;
  padding-left: 4px;
  padding-right: 22px;
  height: 26px;
  line-height: 26px;
  font-size: 12px;
  color: #909399;
  text-align: right;
}

.dash-ai-model-select-inline .el-input__suffix {
  right: 2px;
}

.dash-ai-model-select-inline .el-input__suffix-inner {
  padding-left: 2px;
}

.dash-ai-model-select-inline .el-select__caret {
  width: 14px;
  text-align: center;
}

.dash-ai-compose-panel-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.dash-ai-compose-input {
  width: 100%;
  flex: none;
  min-width: 0;
}

.dash-ai-compose-input .el-textarea__inner {
  border: none;
  padding: 4px 0 2px;
  min-height: 66px !important;
  line-height: 1.45;
  box-shadow: none;
  background: transparent;
}

.dash-ai-compose-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  width: 100%;
  margin-left: 0;
  padding-top: 2px;
}
.dash-ai-send-btn.el-button.is-circle {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.dash-ai-send-btn.el-button.is-circle i {
  margin: 0;
  font-size: 14px;
}

.dev-ai-strategy,
.dev-ai-events {
  margin: 0;
  padding: 10px 12px;
  background: #f5f7fa;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
}

.dev-ai-events {
  margin-top: 12px;
  max-height: 360px;
}

.dev-ai-dialogue {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dev-ai-dialogue-meta {
  font-size: 12px;
  color: #909399;
  margin-bottom: 4px;
}

.dev-ai-dialogue-bubble {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f5f7fa;
  border: 1px solid #ebeef5;
}

.dev-ai-dialogue-row.is-user .dev-ai-dialogue-bubble {
  background: #ecf5ff;
  border-color: #d9ecff;
}

.dev-ai-dialogue-row.is-assistant .dev-ai-dialogue-bubble {
  background: #f0f9eb;
  border-color: #e1f3d8;
}

.dash-ai-foot-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #c0c4cc;
  line-height: 1.4;
}

.dash-ai-cursor {
  animation: dash-ai-blink 1s step-end infinite;
}

@keyframes dash-ai-blink {
  50% { opacity: 0; }
}

.dash-board .dash-toolbar-time {
  color: #909399;
  font-size: 12px;
  margin-right: 12px;
  line-height: 1.5;
}

.dash-board .dash-chart-row > .el-col > .el-card,
.dash-board .dash-kpi-row > .el-col > .el-card {
  margin-bottom: 0;
}

.dash-kpi-row-equal .dash-kpi-col > .el-card {
  height: 100%;
}

.dash-kpi-card .el-card__body {
  padding: 12px 14px !important;
  box-sizing: border-box;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dash-kpi-card .dash-kpi-label {
  margin-bottom: 4px;
  font-size: 12px;
}

.dash-kpi-card .dash-kpi-value {
  line-height: 1.2;
  font-size: 22px;
}

.dash-kpi-label {
  font-size: 13px;
  color: #909399;
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
}

.dash-kpi-value {
  font-size: 28px;
  font-weight: 600;
  color: #1f2329;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* 头像菜单 · 操作手册弹窗 */
.admin-manual-dialog .el-dialog__body {
  padding: 12px 20px 8px;
}
.admin-manual-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #646a73;
  line-height: 1.5;
}
.admin-manual-iframe {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #fff;
}
