/* kt-ui + console */
/**
 * KtUI — 管理后台标准组件样式
 * 与 console.css 并存；类名 kt-* 为规范入口，旧类名保留兼容。
 */

/* —— 按钮 —— */
.kt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.kt-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.kt-btn--primary {
  border: 0;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(2, 42, 153, 0.55);
}
.kt-btn--secondary {
  background: #fff;
  border-color: rgba(2, 42, 153, 0.18);
  color: var(--brand);
}
.kt-btn--soft {
  background: #f1f5f9;
  border-color: rgba(2, 42, 153, 0.1);
  color: var(--text);
}
.kt-btn--danger {
  background: #fff;
  border-color: rgba(201, 55, 44, 0.45);
  color: #b42318;
}
.kt-btn--link {
  background: transparent;
  border: 0;
  color: var(--brand);
  font-weight: 600;
  height: auto;
  padding: 0;
}
.kt-btn--sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 8px;
}
.kt-btn--lg {
  height: 40px;
  padding: 0 20px;
  border-radius: 12px;
}
.kt-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.kt-actions--row {
  display: flex;
  gap: 8px;
}

/* —— 筛选工具栏（与 .filter-toolbar 共用布局） —— */
.kt-filter-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin: 0 16px 14px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(2, 42, 153, 0.1);
  border-radius: 14px;
  background: linear-gradient(165deg, #f8fafc 0%, #eef3fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
}
.kt-filter-toolbar .kt-filter-field,
.kt-filter-toolbar .filter-field {
  flex: 0 0 auto;
  width: 152px;
  max-width: 100%;
  box-sizing: border-box;
}
.kt-filter-toolbar .kt-filter-field:first-child,
.kt-filter-toolbar .filter-field:first-child {
  width: min(180px, 28vw);
  min-width: 140px;
}
.kt-filter-toolbar .kt-input,
.kt-filter-toolbar .kt-select,
.kt-filter-toolbar .filter-control,
.kt-filter-toolbar input,
.kt-filter-toolbar select {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .kt-filter-toolbar {
    flex-wrap: nowrap;
  }
}
@media (max-width: 899px) {
  .kt-filter-toolbar .kt-filter-actions,
  .kt-filter-toolbar .filter-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
.kt-filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.kt-filter-label {
  display: block;
  min-height: 18px;
  line-height: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.kt-filter-control-shell {
  position: relative;
}
.kt-filter-control-shell--select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  margin-top: -2px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.75;
  pointer-events: none;
}
.kt-input,
.kt-select {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(2, 42, 153, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kt-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}
.kt-select:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background: #f1f5f9;
}
.kt-input:focus,
.kt-select:focus {
  outline: none;
  border-color: rgba(2, 42, 153, 0.45);
  box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.12);
}
.kt-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
  margin-left: 2px;
  border-left: 1px solid rgba(2, 42, 153, 0.1);
}
.kt-filter-toolbar .kt-filter-actions,
.kt-filter-toolbar .filter-actions {
  flex: 0 0 auto;
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: flex-start;
  gap: 10px;
  padding-left: 4px;
  margin-left: 0;
  border-left: none;
}
.kt-filter-actions--inline {
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: flex-start;
  padding-left: 4px;
  margin-left: 0;
  border-left: none;
}
.kt-filter-actions-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}
.kt-filter-field--status {
  width: 108px !important;
  flex: 0 0 108px !important;
}
.kt-filter-field--status .kt-filter-control-shell,
.kt-filter-field--status .kt-input,
.kt-filter-field--status .kt-select {
  width: 100%;
  max-width: 108px;
}

/* 简易搜索条 */
.kt-search-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px;
}
.kt-search-inline .kt-input {
  width: min(280px, 100%);
}

/* —— 弹窗 —— */
.kt-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}
.kt-modal__dialog {
  width: min(920px, 100%);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}
.kt-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.kt-modal__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.kt-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.kt-modal__close:hover {
  background: #f1f5f9;
  color: var(--text);
}
.kt-modal__body {
  overflow: auto;
  padding: 8px 0 4px;
}

/* —— 图片上传 —— */
.kt-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kt-upload__label {
  font-size: 14px;
  font-weight: 600;
}
.kt-upload__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.kt-upload__preview {
  position: relative;
  max-width: 560px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.kt-upload__preview[hidden] {
  display: none !important;
}
.kt-upload__preview img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}
.kt-upload__preview-actions {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.kt-upload__picker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kt-upload__picker[hidden] {
  display: none !important;
}
.kt-upload__file {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* —— 行内操作下拉 —— */
.kt-action-menu {
  position: relative;
  display: inline-block;
}
.kt-action-menu__panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  min-width: 120px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.kt-action-menu__panel[hidden] {
  display: none !important;
}
.kt-action-menu__item {
  display: block;
  width: 100%;
  justify-content: flex-start;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
}
.kt-action-menu__item--danger {
  color: #b42318;
}
.kt-action-menu__sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}

/* —— 轻提示 —— */
.kt-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 2000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.kt-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.kt-toast--success {
  background: #fff;
  color: var(--brand, #022a99);
  border: 1px solid rgba(2, 42, 153, 0.22);
}
.kt-toast--error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.25);
}

/* —— 高级表单页（Banner 等） —— */
.kt-form-page {
  margin-top: 4px;
}

.kt-form-page__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(2, 42, 153, 0.1);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(245, 165, 36, 0.12), transparent 55%),
    linear-gradient(165deg, #f8fafc 0%, #eef3fb 48%, #fff 100%);
  box-shadow: 0 18px 48px -36px rgba(1, 18, 74, 0.35);
}

.kt-form-page__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand, #022a99);
  opacity: 0.85;
}

.kt-form-page__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #1a2842);
}

.kt-form-page__desc {
  margin: 8px 0 0;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted, #6b7488);
}

.kt-form-page__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.kt-form-sheet {
  border: 1px solid rgba(2, 42, 153, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 56px -44px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.kt-form-sheet__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 0;
}

/* 字段直接挂在 grid 下（无左右 kt-form-section），如商城分类添加/编辑 */
.kt-form-sheet__grid--flat {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 20px 24px;
  padding: 24px 26px 20px;
  align-items: stretch;
}

.kt-form-sheet__grid--flat > .kt-form-field--span {
  grid-column: 1 / -1;
}

.kt-form-sheet__grid--flat > .kt-form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  min-width: 0;
}

.kt-form-sheet__grid--flat .kt-form-field__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  margin-bottom: 12px;
}

.kt-form-sheet__grid--flat .kt-form-field__label:empty {
  display: none;
}

/* 同排字段输入框贴底对齐，避免一侧有 hint 时基线错位 */
.kt-form-sheet__grid--flat > .kt-form-field > .filter-control-shell,
.kt-form-sheet__grid--flat > .kt-form-field > .kt-filter-control-shell,
.kt-form-sheet__grid--flat > .kt-form-field > .kt-check-card,
.kt-form-sheet__grid--flat > .kt-form-field > .kt-form-control,
.kt-form-sheet__grid--flat > .kt-form-field > .toolbar-check {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

.kt-check-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid rgba(2, 42, 153, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink, #1a2842);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kt-check-card:hover {
  border-color: rgba(2, 42, 153, 0.28);
  box-shadow: 0 2px 8px rgba(2, 42, 153, 0.08);
}

.kt-check-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--brand, #022a99);
}

@media (max-width: 900px) {
  .kt-form-sheet__grid {
    grid-template-columns: 1fr;
  }
  .kt-form-sheet__grid--flat {
    grid-template-columns: 1fr;
    padding: 20px 18px 16px;
  }
  .kt-form-sheet__grid--flat .kt-form-field__head {
    min-height: 0;
  }
}
.kt-form-section {
  padding: 24px 26px 28px;
}

.kt-form-section + .kt-form-section {
  border-left: 1px solid var(--line, #e6ebf3);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

@media (max-width: 900px) {
  .kt-form-section + .kt-form-section {
    border-left: 0;
    border-top: 1px solid var(--line, #e6ebf3);
  }
}

.kt-form-section__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #1a2842);
}
.kt-form-section__lead {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted, #6b7488);
}

.kt-form-field {
  margin-bottom: 18px;
}

.kt-form-field__head {
  margin-bottom: 8px;
}

.kt-form-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1a2842);
}

.kt-form-field__hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted, #6b7488);
}

.kt-form-control {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(2, 42, 153, 0.14);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--text, #1a2842);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kt-form-control:focus {
  outline: none;
  border-color: rgba(2, 42, 153, 0.45);
  box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.1);
}

select.kt-form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand, #022a99) 50%),
    linear-gradient(135deg, var(--brand, #022a99) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.kt-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 26px;
  border-top: 1px solid var(--line, #e6ebf3);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.kt-form-footer__msg {
  flex: 1;
  min-width: 140px;
  margin: 0;
  font-size: 13px;
  color: #b42318;
}

.kt-form-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.kt-form-footer .kt-btn--primary {
  min-width: 132px;
  height: 42px;
  font-size: 14px;
  border-radius: 12px;
}

/* Banner 上传区 */
.kt-upload--banner .kt-upload__preview {
  max-width: none;
  margin-top: 0;
  border-radius: 14px;
  border: 1px solid rgba(2, 42, 153, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.kt-upload--banner .kt-upload__preview img {
  aspect-ratio: 5 / 2;
  max-height: none;
}

.kt-upload--dropzone {
  width: 100%;
}
.kt-upload--dropzone .kt-upload__preview {
  max-width: none;
  margin-top: 0;
  border-radius: 14px;
  border: 1px solid rgba(2, 42, 153, 0.12);
}
.kt-upload--dropzone .kt-upload__preview img {
  aspect-ratio: 1;
  max-height: none;
  object-fit: cover;
}
.kt-upload--dropzone .kt-upload__dropzone {
  width: 100%;
  min-height: 152px;
  box-sizing: border-box;
}

.kt-upload__dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  padding: 20px 16px;
  border: 1.5px dashed rgba(2, 42, 153, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(2, 42, 153, 0.06), transparent 70%),
    #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.kt-upload__dropzone:hover {
  border-color: rgba(2, 42, 153, 0.5);
  background: #f1f5fb;
}

.kt-upload__dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  pointer-events: none;
}

.kt-upload__dropzone-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: linear-gradient(145deg, #022a99, #1e4bb8);
  box-shadow: 0 10px 24px -12px rgba(2, 42, 153, 0.65);
  position: relative;
}

.kt-upload__dropzone-icon::before,
.kt-upload__dropzone-icon::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 2px;
}

.kt-upload__dropzone-icon::before {
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
}

.kt-upload__dropzone-icon::after {
  left: 50%;
  top: 50%;
  width: 2px;
  height: 18px;
  margin: -9px 0 0 -1px;
}

.kt-upload__dropzone-inner strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1a2842);
}

.kt-upload__dropzone-sub {
  max-width: 260px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted, #6b7488);
}

/* —— 标准列表页 —— */
.kt-admin-list + .kt-admin-list,
.kt-admin-list + .panel {
  margin-top: 16px;
}

/* —— 列表页 Tab 导航（分段控制器） —— */
.kt-page-tabs {
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, #fcfdfe 0%, #fff 100%);
  border: 1px solid var(--line, #e6ebf3);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 4px 20px rgba(26, 40, 66, 0.04);
}
.kt-admin-list > .kt-page-tabs + .kt-list-panel {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}
.section-tabs--line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  width: 50%;
  max-width: 520px;
  min-width: 300px;
  margin: 0;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.kt-admin-list > .kt-page-tabs .section-tabs--line {
  width: 50%;
  max-width: 520px;
}
.section-tabs--line .section-tabs__item {
  position: relative;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease;
}
.section-tabs--line .section-tabs__item:hover:not(.is-active) {
  color: #334155;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(148, 163, 184, 0.35);
}
.section-tabs--line .section-tabs__item.is-active {
  color: var(--brand, #022a99);
  font-weight: 700;
  background: #fff;
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transform: none;
}
.section-tabs--line .section-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 24px;
  height: 2px;
  margin-left: -12px;
  border-radius: 999px;
  background: var(--brand, #022a99);
}
.section-tabs--line .section-tabs__item:focus-visible {
  outline: 2px solid rgba(2, 42, 153, 0.4);
  outline-offset: 1px;
}
@media (max-width: 900px) {
  .kt-page-tabs {
    padding: 14px 14px 10px;
  }
  .section-tabs--line,
  .kt-admin-list > .kt-page-tabs .section-tabs--line {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-tabs--line .section-tabs__item {
    height: 38px;
    font-size: 12px;
    white-space: normal;
    line-height: 1.25;
  }
}
.kt-list-panel .kt-filter-toolbar {
  margin-bottom: 12px;
}
.kt-list-host {
  min-height: 48px;
}
.kt-list-loading {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted, #6b7488);
}

.kt-list-footer {
  margin: 0;
  padding: 12px 18px 16px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #6b7488);
  border-top: 1px solid var(--line, #e8ecf2);
}

.panel-head--compact {
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: none;
}
.panel-head--compact:empty,
.panel-head--compact:not(:has(.panel-head-actions)) {
  display: none;
}

/* —— 商品管理 —— */
.kt-goods-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kt-goods-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kt-goods-thumb__empty {
  font-size: 11px;
  color: var(--muted);
}
.kt-goods-form-page .kt-form-section--full {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.kt-goods-detail-avatar {
  padding: 0;
  overflow: hidden;
  background: #f1f5f9;
}
.kt-goods-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kt-sku-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.kt-sku-editor__panel {
  border: 1px solid rgba(2, 42, 153, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.kt-sku-editor__head,
.kt-sku-editor__row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 112px 96px 72px;
  gap: 10px;
  align-items: center;
}
.kt-sku-editor__head {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--line);
}
.kt-sku-editor__col-head:last-child {
  text-align: center;
}
.kt-sku-editor__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 10px 10px;
}
.kt-sku-editor__row {
  padding: 8px 4px;
  border-bottom: 1px dashed rgba(2, 42, 153, 0.1);
}
.kt-sku-editor__row:last-child {
  border-bottom: none;
}
.kt-sku-editor__cell--act {
  display: flex;
  justify-content: center;
}
.kt-sku-editor__input {
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
}
.kt-sku-editor__remove {
  min-width: 56px;
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
  color: #b42318;
}
.kt-sku-editor__remove:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.kt-sku-editor__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kt-sku-editor__summary {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.kt-sku-editor__add {
  align-self: stretch;
  justify-content: center;
  height: 40px;
  border: 1.5px dashed rgba(2, 42, 153, 0.28);
  border-radius: 12px;
  background: #f8fafc;
  font-weight: 600;
}
.kt-spec {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kt-spec__hint,
.kt-spec__summary {
  margin: 0;
  color: var(--muted, #6b7488);
  font-size: 13px;
  line-height: 1.5;
}
.kt-spec__sub {
  margin: 8px 0 0;
  font-size: 15px;
}
.kt-spec__card {
  padding: 12px;
  border: 1px solid var(--line, #e6eaf2);
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kt-spec__card-head,
.kt-spec__batch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.kt-spec .kt-spec__name,
.kt-spec .kt-spec__value-input {
  width: 168px;
  max-width: 100%;
  flex: 0 0 168px;
}
.kt-spec__values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.kt-spec__value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.kt-spec__switch {
  position: relative;
}
.kt-spec__switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.kt-spec__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.kt-spec__switch i {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 99px;
  background: #d5dbe6;
  transition: background 0.15s ease;
}
.kt-spec__switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  transition: left 0.15s ease;
}
.kt-spec__switch input:checked + i {
  background: #16a34a;
}
.kt-spec__switch input:checked + i::after {
  left: 18px;
}
.kt-spec__icon {
  border: 0;
  background: transparent;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.kt-spec__card-head .kt-spec__icon {
  margin-left: auto;
  font-size: 13px;
  width: auto;
  padding: 0 8px;
}
.kt-spec__icon:hover:not(:disabled) {
  background: #fff;
  color: #b91c1c;
}
.kt-spec__icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.kt-spec__add-value,
.kt-spec__add-dim {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 4px;
}
.kt-spec__add-dim {
  align-self: flex-start;
}
.kt-spec__pic {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  color: #64748b;
  flex: 0 0 auto;
}
.kt-spec__pic img,
.kt-spec__sku-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
}
.kt-spec__pic input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.kt-spec__batch-row .kt-input,
.kt-spec__batch-row .kt-select {
  width: 128px;
  flex: 0 0 auto;
}
.kt-spec__table .kt-input {
  width: 108px;
  min-width: 0;
  max-width: 140px;
}
.kt-spec__batch-label {
  font-size: 13px;
  color: #334155;
  flex: 0 0 auto;
}
.kt-spec-confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
}
.kt-spec-confirm__box {
  width: min(360px, calc(100vw - 32px));
  padding: 22px 22px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}
.kt-spec-confirm__box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #1e293b;
}
.kt-spec-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.kt-spec-confirm__actions button {
  min-width: 72px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
.kt-spec-confirm__actions button:last-child {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.kt-sku-editor__add:hover {
  border-color: rgba(2, 42, 153, 0.45);
  background: #f1f5fb;
}
@media (max-width: 720px) {
  .kt-sku-editor {
    max-width: none;
  }
  .kt-sku-editor__head {
    display: none;
  }
  .kt-sku-editor__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafbfd;
  }
  .kt-sku-editor__list {
    padding: 8px;
  }
  .kt-sku-editor__cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .kt-sku-editor__cell::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
  }
  .kt-sku-editor__cell--act {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .kt-sku-editor__cell--act::before {
    content: attr(data-label);
  }
}

/* 未走 UI.form.field 包裹的原生 select（兼容旧 inline-form，逐步迁移） */
#extra select:not(.kt-select) {
  height: 40px;
  min-width: 140px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(2, 42, 153, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
#extra select:not(.kt-select):focus {
  outline: none;
  border-color: rgba(2, 42, 153, 0.45);
  box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.12);
}

/* —— 日期 / 时间选择（禁止用手输 yyyy-mm-dd 冒充） —— */
.kt-input[type="date"],
.kt-input[type="datetime-local"],
.kt-input[type="time"],
#extra input[type="date"]:not(.kt-input),
#extra input[type="datetime-local"]:not(.kt-input),
#extra input[type="time"]:not(.kt-input) {
  min-height: 40px;
  padding-right: 12px;
  cursor: pointer;
  color-scheme: light;
}
.kt-filter-control-shell--date::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  opacity: 0.72;
  pointer-events: none;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23022A99' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3M4 11h16M5 21h14a2 2 0 0 0 2-2V7H3v12a2 2 0 0 0 2 2z'/%3E%3C/svg%3E");
}
.kt-input[type="date"]::-webkit-calendar-picker-indicator,
.kt-input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.kt-input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
  margin-left: 4px;
}

.kt-form-sheet--compact {
  padding: 4px 0 0;
}
.kt-form-sheet__grid--dense {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px 16px;
}
.kt-form-footer--inline {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* —— 富文本编辑器 —— */
.kt-rich-editor {
  border: 1px solid rgba(2, 42, 153, 0.14);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.kt-rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.kt-rich-editor__toolbar .kt-btn {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}
.kt-form-field > .kt-rich-editor {
  width: 100%;
}
.filter-control-shell:has(.kt-rich-editor)::after,
.filter-control-shell:has(.kt-upload)::after {
  display: none !important;
}
.filter-control-shell .kt-rich-editor.filter-control,
.filter-control-shell .kt-upload.filter-control {
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.kt-rich-editor__file {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.kt-rich-editor__body {
  min-height: 220px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  outline: none;
}
.kt-rich-editor__body:empty:before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}
.kt-rich-editor__body h3 {
  margin: 12px 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.kt-rich-editor__body ul,
.kt-rich-editor__body ol {
  margin: 8px 0;
  padding-left: 1.4em;
}
.kt-rich-html {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.kt-rich-html img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}
.kt-goods-form-page .kt-form-sheet,
.kt-goods-form-page .kt-form-sheet__grid,
.kt-goods-form-page .kt-form-section,
.kt-goods-form-page .kt-rich-editor,
.kt-goods-form-page .kt-rich-editor__body {
  height: auto;
  max-height: none;
}
.kt-goods-form-page .kt-form-sheet__grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  align-content: start;
}
.kt-goods-form-page .kt-form-section + .kt-form-section {
  border-left: 0;
  border-top: 1px solid var(--line, #e6ebf3);
}
.kt-goods-form-page .kt-form-section--aside {
  position: static;
}
.kt-goods-form-page .kt-form-page__intro {
  flex: 1;
  min-width: 0;
}
.kt-goods-form-page .kt-form-page__desc {
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .kt-goods-form-page .kt-form-page__desc {
    white-space: normal;
  }
}

/* —— 平台商品审核 —— */
.kt-platform-goods-title-cell__name {
  font-weight: 600;
  line-height: 1.35;
}
.kt-platform-goods-title-cell__sub,
.kt-platform-goods-title-cell__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.kt-platform-goods-detail {
  padding: 12px 20px 20px;
}
.kt-platform-goods-detail__hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.kt-platform-goods-detail__hero .kt-goods-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.kt-platform-goods-detail__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.kt-platform-goods-detail__subtitle {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}
.kt-platform-goods-detail__facts {
  margin-bottom: 16px;
}
.kt-platform-goods-detail__section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.kt-platform-goods-detail__section-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}
.kt-platform-goods-spec-dim + .kt-platform-goods-spec-dim {
  margin-top: 12px;
}
.kt-platform-goods-spec-dim__name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.kt-platform-goods-spec-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kt-platform-goods-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 13px;
}
.kt-platform-goods-spec-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  vertical-align: middle;
}
.kt-platform-goods-detail__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* —— 全局确认弹窗 KtUI.confirm —— */
.kt-confirm { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, 0.45); animation: kt-confirm-fade .16s ease-out; }
.kt-confirm.is-leaving { opacity: 0; transition: opacity .14s; }
.kt-confirm__dialog { width: min(440px, 100%); border-radius: 16px; background: #fff; box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25); overflow: hidden; animation: kt-confirm-pop .18s cubic-bezier(.2, .9, .3, 1.2); }
.kt-confirm__body { display: flex; gap: 14px; padding: 24px 24px 20px; }
.kt-confirm__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #1d4ed8; background: #e8efff; }
.kt-confirm.is-danger .kt-confirm__icon { color: #dc2626; background: #fde8e8; }
.kt-confirm.is-warning .kt-confirm__icon { color: #c27803; background: #fff4dc; }
.kt-confirm__main { min-width: 0; flex: 1; padding-top: 2px; }
.kt-confirm__title { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--ink, #0f172a); }
.kt-confirm__msg { margin: 0 0 4px; font-size: 14px; line-height: 1.7; color: #475569; word-break: break-word; }
.kt-confirm__detail { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #f7f9fc; font-size: 13px; line-height: 1.6; color: #64748b; }
.kt-confirm__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line, #e5e9f0); background: #fafbfd; }
.kt-confirm__foot .kt-btn { min-width: 84px; height: 36px; justify-content: center; }
@keyframes kt-confirm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kt-confirm-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* —— 全局输入弹窗 KtUI.prompt —— */
.kt-prompt__dialog { width: min(480px, 100%); }
.kt-prompt__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0 24px; }
.kt-prompt__head .kt-confirm__title { margin: 0; }
.kt-prompt__close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted, #8a93a6); font-size: 22px; line-height: 1; cursor: pointer; }
.kt-prompt__close:hover { background: #f1f5f9; color: var(--ink, #0f172a); }
.kt-prompt__body { padding: 14px 24px 18px; }
.kt-prompt__msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #f7f9fc; font-size: 13px; line-height: 1.7; color: #475569; }
.kt-prompt__label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #334155; }
.kt-prompt__label i { margin-left: 3px; color: #dc2626; font-style: normal; }
.kt-prompt__label em { font-style: normal; font-weight: 400; font-size: 12px; color: #94a3b8; }
.kt-prompt__input { display: block; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line, #e5e9f0); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; line-height: 1.6; color: var(--ink, #0f172a); resize: vertical; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.kt-prompt__input { min-height: 96px; }
.kt-prompt__input:focus { border-color: var(--brand, #022a99); box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.1); }
.kt-prompt__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kt-prompt__chip { height: 26px; padding: 0 10px; border: 1px solid var(--line, #e5e9f0); border-radius: 999px; background: #fff; font: inherit; font-size: 12px; color: #475569; cursor: pointer; }
.kt-prompt__chip:hover { border-color: var(--brand, #022a99); color: var(--brand, #022a99); }
.kt-prompt__err { margin: 8px 0 0; min-height: 0; font-size: 12px; color: #dc2626; }
.kt-prompt__err:empty { display: none; }

:root {
  --navy: #011b66;
  --brand: #022a99;
  --gold: #f5a524;
  --coral: #ff6b5b;
  --ink: #1a2842;
  --muted: #6b7488;
  --line: #e6ebf3;
  --bg: #f4f6fa;
  --side: 232px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
body {
  position: fixed;
  inset: 0;
  width: 100%;
}

button, input { font-family: inherit; }

a { color: inherit; text-decoration: none; }

.login-page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 165, 36, 0.18), transparent 28%),
    linear-gradient(160deg, #01124a 0%, var(--navy) 46%, var(--brand) 100%);
}

.login-card {
  width: 420px;
  max-width: 100%;
  padding: 36px 32px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(1, 18, 74, 0.28);
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #203983;
  color: #fff;
  font-weight: 700;
}

.login-card h1 {
  margin: 18px 0 6px;
  font-size: 26px;
}

.login-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.field { margin-top: 18px; }

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fc;
  font-size: 15px;
}

.primary {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  border: 0;
  border-radius: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.switch-link {
  color: var(--brand);
  font-weight: 600;
}

.shell {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 0;
}

.side {
  width: var(--side);
  flex: 0 0 var(--side);
  align-self: stretch;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #01124a 0%, var(--navy) 40%, #021f78 100%);
  color: #fff;
}

.brand {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 22px 18px 16px;
}

.brand strong { display: block; font-size: 15px; }
.brand small { color: rgba(255,255,255,0.62); font-size: 12px; }

.nav {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 12px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.group { margin-top: 16px; }

.group-name {
  margin: 0 8px 6px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}

.item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,0.82);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
a.item {
  text-decoration: none;
  font: inherit;
}

.item--with-badge {
  position: relative;
  padding-right: 36px;
}
.item__label {
  flex: 1;
  min-width: 0;
}
.inbox-unread-badge {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  box-sizing: border-box;
}
.inbox-unread-badge[hidden],
.nav-inbox-badge[hidden],
.header-inbox-badge[hidden] {
  display: none !important;
}

.nav-inbox-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.35);
}

.header-inbox-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin-right: 2px;
  border-radius: 10px;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-inbox-btn:hover {
  background: #eef2f8;
  color: var(--brand);
}
.header-inbox-btn:focus {
  outline: none;
}
.header-inbox-btn:focus-visible {
  outline: 2px solid rgba(2, 42, 153, 0.35);
  outline-offset: 2px;
}
.header-inbox-btn:active {
  transform: none;
}
.header-inbox-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  pointer-events: none;
}
.header-inbox-btn > .header-inbox-badge,
.header-inbox-btn > .inbox-unread-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
  transform: translate(35%, -35%);
}
.header-inbox-btn > .nav-inbox-badge {
  top: 5px;
  right: 5px;
  min-width: 16px;
  width: auto;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
  transform: translate(35%, -35%);
}

.item.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold);
}

.main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top {
  flex-shrink: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.crumb { color: var(--muted); font-size: 13px; }
.crumb b { color: var(--ink); }

.who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  flex-shrink: 0;
}
#who-name {
  flex: 0 0 6.5em;
  width: 6.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  color: var(--ink);
}
.badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(2, 42, 153, 0.08);
  color: var(--brand);
  font-weight: 600;
}

.content {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.card {
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(26, 40, 66, 0.05);
}

.card h2 { margin: 0 0 8px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); line-height: 1.7; }

.stats { display: flex; gap: 12px; margin-top: 22px; }
.stat {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg);
}
.stat b { display: block; margin-top: 6px; font-size: 20px; color: var(--gold); }
.text-btn { border: 0; background: transparent; color: var(--brand); cursor: pointer; font-weight: 600; }
.grid { width: 100%; margin-top: 8px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.grid th, .grid td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.grid th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: none; }
.grid.data-table {
  table-layout: fixed;
}
.grid.data-table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5fb 100%);
  border-bottom: 1px solid #d8e0ed;
  color: #5a6578;
  white-space: nowrap;
}
.grid.data-table tbody td {
  overflow: hidden;
}
.kt-cell-ellipsis {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.grid.data-table--shop-apply tbody tr.is-clickable-row {
  cursor: pointer;
}
.grid.data-table--shop-apply tbody tr.is-clickable-row:hover td {
  background: rgba(2, 42, 153, 0.05);
}
.grid.data-table--shop-apply tbody td {
  overflow: visible;
  vertical-align: top;
}
.grid.data-table--shop-apply td:nth-child(4) {
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
}
.grid.data-table--shop-apply td:nth-child(8) {
  min-width: 200px;
}
.kt-shop-apply-cat-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}
.kt-shop-apply-cat-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: #1e3a7a;
  background: rgba(2, 42, 153, 0.07);
  border: 1px solid rgba(2, 42, 153, 0.14);
}
.shop-apply-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 200px;
}
.shop-apply-btn-detail.kt-btn,
.shop-apply-list-review.kt-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.shop-apply-btn-detail--soft.kt-btn {
  color: var(--brand);
  background: rgba(2, 42, 153, 0.08);
  border: 1px solid rgba(2, 42, 153, 0.22);
}
.shop-apply-list-review.review-btn-pass-sm.kt-btn {
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.35);
}
.shop-apply-list-review.review-btn-reject-sm.kt-btn {
  color: #b42318;
  background: #fff5f4;
  border: 1px solid rgba(201, 55, 44, 0.35);
}

.kt-shop-apply-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kt-shop-apply-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kt-shop-apply-detail .panel > div:not(.panel-head) {
  padding: 18px 24px 22px;
}
.kt-shop-apply-detail .panel-head {
  padding: 16px 24px;
}
.kt-shop-apply-detail .profile {
  margin-top: 0;
}
.kt-shop-apply-profile {
  padding: 16px 18px;
}
.kt-shop-apply-banner {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid var(--line);
}
.kt-shop-apply-banner--pending {
  color: #9a6408;
  background: rgba(245, 165, 36, 0.12);
  border-color: rgba(245, 165, 36, 0.35);
}
.kt-shop-apply-banner--ok {
  color: #15803d;
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.28);
}
.kt-shop-apply-banner--bad {
  color: #b42318;
  background: #fff5f4;
  border-color: rgba(201, 55, 44, 0.28);
}
.kt-shop-apply-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.kt-shop-apply-info-cell {
  padding: 16px 18px 17px;
  border-radius: 14px;
  background: linear-gradient(165deg, #f8fafc 0%, #fff 55%);
  border: 1px solid rgba(2, 42, 153, 0.1);
  box-shadow: 0 6px 18px rgba(15, 35, 80, 0.04);
}
.kt-shop-apply-info-cell--wide {
  grid-column: 1 / -1;
}
.kt-shop-apply-info-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.03em;
}
.kt-shop-apply-info-value {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}
@media (max-width: 720px) {
  .kt-shop-apply-info-grid {
    grid-template-columns: 1fr;
  }
  .kt-shop-apply-info-cell--wide {
    grid-column: auto;
  }
}
.kt-shop-apply-materials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 2px 4px 0;
}
.kt-shop-apply-material__label {
  margin-bottom: 8px;
  padding-left: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.kt-shop-apply-material__frame {
  height: 148px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.kt-shop-apply-material__img {
  display: block;
  max-width: 100%;
  max-height: 132px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  cursor: zoom-in;
}
.kt-shop-apply-material__loading,
.kt-shop-apply-material__err {
  font-size: 12px;
  color: var(--muted);
}
.kt-shop-apply-material__err {
  color: #b42318;
}
.kt-shop-apply-material-tip {
  margin: 14px 4px 0;
  padding: 0 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.shop-detail-materials {
  padding: 16px 20px 0;
}
.shop-detail-materials + .kt-shop-apply-material-tip {
  padding: 0 20px 18px;
  margin-top: 12px;
}
.kt-shop-apply-detail .kt-shop-apply-cats {
  padding: 2px 4px 4px;
}
@media (max-width: 960px) {
  .kt-shop-apply-materials {
    grid-template-columns: 1fr;
  }
  .kt-shop-apply-material__frame {
    height: 180px;
  }
  .kt-shop-apply-material__img {
    max-height: 164px;
  }
}
.table-scroll .grid.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.grid.data-table tbody tr {
  transition: background 0.12s ease;
}
.grid.data-table tbody tr:hover td {
  background: rgba(2, 42, 153, 0.03);
}
.grid.data-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.85);
}
.grid.data-table tbody tr:nth-child(even):hover td {
  background: rgba(2, 42, 153, 0.05);
}
.table-scroll {
  overflow: auto;
  border-top: 1px solid var(--line);
}
.shop-login-account {
  font-weight: 600;
  color: var(--klein-600, #022a99);
  font-family: "DM Sans", ui-monospace, monospace;
  letter-spacing: 0.02em;
}
.row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.btn-soft {
  border-color: rgba(2, 42, 153, 0.18);
  color: var(--brand);
  background: rgba(2, 42, 153, 0.06);
}
.btn-danger-soft {
  border-color: rgba(201, 55, 44, 0.28);
  color: #b42318;
  background: #fff5f4;
}
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.inline-form h3, #extra h3 { width: 100%; margin: 16px 0 0; font-size: 16px; }
.inline-form input { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; }
.inline-form select { min-width: 120px; }
.mini { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.primary-mini { border: 0; background: var(--brand); color: #fff; }
.form-note { width: 100%; margin: 0; color: var(--muted); font-size: 12px; }
/* 列表页 Tab：线型样式见 kt-ui.css .section-tabs--line */
.section-tabs button.on {
  /* 兼容旧 class，sectionTabs 已改用 .is-active */
  color: var(--brand);
}
.search-bar:not(.filter-toolbar):not(.kt-filter-toolbar) { display: flex; gap: 8px; margin: 14px 0 4px; }
.search-bar:not(.filter-toolbar):not(.kt-filter-toolbar) input {
  width: 260px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
}
.search-bar.search-bar-wide:not(.filter-toolbar):not(.kt-filter-toolbar) { flex-wrap: wrap; align-items: center; margin: 0 0 12px; padding: 0 16px 4px; }
.search-bar.search-bar-wide:not(.filter-toolbar):not(.kt-filter-toolbar) input { width: 200px; }
.search-bar:not(.filter-toolbar):not(.kt-filter-toolbar) select {
  height: 38px;
  min-width: 120px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
  font: inherit;
}

.filter-toolbar.search-bar-wide,
.filter-toolbar.kt-filter-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin: 0 16px 14px !important;
  padding: 16px 18px 14px !important;
  border: 1px solid rgba(2, 42, 153, 0.1);
  border-radius: 14px;
  background: linear-gradient(165deg, #f8fafc 0%, #eef3fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.filter-toolbar.search-bar-wide .filter-actions,
.filter-toolbar.kt-filter-toolbar .filter-actions {
  flex-direction: row !important;
  align-items: flex-end !important;
  border-left: none;
  padding-left: 4px;
}
@media (min-width: 900px) {
  .filter-toolbar.search-bar-wide,
  .filter-toolbar.kt-filter-toolbar {
    flex-wrap: nowrap;
  }
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.filter-field-wide {
  min-width: 0;
}
.filter-field-label {
  display: block;
  min-height: 18px;
  line-height: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.filter-field-label-spacer {
  user-select: none;
}
.filter-control-shell {
  position: relative;
}
.filter-control-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  margin-top: -2px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.75;
  pointer-events: none;
}
.filter-control-shell:has(input)::after {
  display: none;
}
.filter-control-shell:has(.kt-rich-editor)::after,
.filter-control-shell:has(.kt-upload)::after {
  display: none;
}
.filter-control-shell > .kt-rich-editor.filter-control,
.filter-control-shell > .kt-upload.filter-control {
  height: auto !important;
  min-height: 0;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.filter-control.filter-select-native,
.filter-control:not(.filter-select-native) {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(2, 42, 153, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.filter-control.filter-select-native {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.filter-control.filter-select-native:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background: #f1f5f9;
}
.filter-control:focus {
  outline: none;
  border-color: rgba(2, 42, 153, 0.45);
  box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.12);
}
.filter-control optgroup {
  font-weight: 700;
  color: var(--brand);
}
.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-self: start;
  padding-left: 16px;
  margin-left: 2px;
  border-left: 1px solid rgba(2, 42, 153, 0.1);
}
.filter-toolbar .filter-actions,
.kt-filter-toolbar .filter-actions {
  flex-direction: row !important;
  align-items: flex-end !important;
  border-left: none;
  padding-left: 4px;
  margin-left: 0;
}
.filter-actions-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}
.filter-submit {
  min-width: 88px;
  height: 40px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px -10px rgba(2, 42, 153, 0.55);
}
.filter-reset {
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(2, 42, 153, 0.18) !important;
  background: #fff !important;
  color: var(--brand) !important;
  font-weight: 600;
}
.filter-reset:hover {
  background: #f8fafc !important;
}
.pager { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f4f7ff 0%, #fff 72%);
}
.profile-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  flex: none;
}
.profile-name { margin: 0; font-size: 20px; font-weight: 700; }
.profile-sub { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
/*
 * 状态胶囊：始终按文字宽度显示（width: fit-content），放进纵向 flex / grid 单元格里也不会被拉满整格。
 * 颜色按语义：ok 绿（正常、发放中、已通过）、wait 橙（待审核、待付款）、bad / danger 红（驳回、停用）、info 蓝、默认灰；
 * 有颜色的状态前面带一个同色圆点。
 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  flex: none;
  box-sizing: border-box;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f1f4f9;
  color: #5b6478;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.pill.ok, .pill.wait, .pill.bad, .pill.danger, .pill.info { padding-left: 8px; }
.pill.ok::before, .pill.wait::before, .pill.bad::before, .pill.danger::before, .pill.info::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.pill.ok { background: #e8f7ef; border-color: #c9ecd8; color: #18794e; }
.pill.wait { background: #fff6e5; border-color: #f8e0b0; color: #9a6400; }
.pill.bad, .pill.danger { background: #fdeeec; border-color: #f7d0ca; color: #c0392b; }
.pill.info { background: #eef2fd; border-color: #d5def8; color: var(--brand); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 12px 16px; padding: 16px; }
.kv span { color: var(--muted); }
.kv strong { font-weight: 600; line-height: 1.5; }
.fact { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fact span { display: block; color: var(--muted); font-size: 12px; }
.fact strong { display: block; margin-top: 8px; font-size: 16px; font-weight: 700; white-space: nowrap; }

.shop-detail-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.shop-detail-meta-row .panel,
.shop-detail-info-panel.panel {
  margin-top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.shop-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
}
.shop-detail-info-grid--merchant {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.shop-detail-info-cell {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(2, 42, 153, 0.08);
  background: linear-gradient(165deg, #f8fafd 0%, #fff 55%);
  min-width: 0;
}
.shop-detail-info-cell--wide {
  grid-column: 1 / -1;
}
.shop-detail-info-label {
  display: block;
  font-size: 12px;
  color: var(--muted, #6b7488);
  margin-bottom: 6px;
  line-height: 1.35;
}
.shop-detail-info-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1a2842);
  line-height: 1.45;
  word-break: break-word;
}
@media (max-width: 1100px) {
  .shop-detail-info-grid--merchant {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .shop-detail-meta-row {
    grid-template-columns: 1fr;
  }
  .shop-detail-info-grid,
  .shop-detail-info-grid--merchant {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .shop-detail-info-grid,
  .shop-detail-info-grid--merchant {
    grid-template-columns: 1fr;
  }
}

#extra {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-goods-categories-panel {
  margin-top: 16px;
}
.shop-goods-categories-panel .panel-head {
  flex-wrap: wrap;
}
.shop-goods-cat-head-meta {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand, #022a99);
  background: rgba(2, 42, 153, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.shop-goods-cat-body {
  padding: 0 20px 20px;
}
.shop-goods-cat-intro {
  padding: 16px 18px;
  margin-top: 16px;
  border-radius: 14px;
  background: linear-gradient(165deg, #f4f7fd 0%, #fafbfd 100%);
  border: 1px solid rgba(2, 42, 153, 0.1);
}
.shop-goods-cat-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink, #1a2842);
  font-weight: 600;
}
.shop-goods-cat-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted, #6b7488);
}
.shop-goods-cat-toolbar {
  margin-top: 18px;
  padding-bottom: 4px;
}
.shop-goods-cat-tabs-slot .kt-page-tabs {
  margin: 0;
}
.shop-goods-cat-tabs-slot .section-tabs--line {
  border-bottom: 1px solid var(--line, #e8ecf2);
}
.shop-goods-cat-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted, #6b7488);
}
.kt-form-sheet__grid--flat > .kt-form-field--span {
  grid-column: 1 / -1;
}

/* 商家店铺资料 · 经营类目只读标签区（勿包进 filter-control-shell） */
.shop-profile-categories {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(2, 42, 153, 0.14);
  border-radius: 12px;
  background: #f7f9fc;
}
.shop-profile-categories__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  max-width: 100%;
}
.shop-profile-categories__tags .pill {
  max-width: 100%;
  height: auto;
  min-height: 24px;
  padding: 4px 10px;
  white-space: normal;
  line-height: 1.4;
  word-break: break-word;
}
.shop-profile-categories__empty {
  margin: 0;
  line-height: 1.5;
}

.kt-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid rgba(2, 42, 153, 0.14);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  resize: vertical;
}
.shop-biz-categories__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 4px 0;
}
.shop-biz-categories .shop-goods-cat-tabs {
  margin-bottom: 8px;
}
.shop-biz-categories .shop-goods-cat-list {
  margin-top: 0;
}
.shop-biz-categories__item {
  margin: 0;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.grid.data-table--shop-list tbody tr.is-clickable-row {
  cursor: pointer;
}
.grid.data-table--shop-list tbody tr.is-clickable-row:hover td {
  background: rgba(2, 42, 153, 0.05);
}

.shop-list-cat-summary {
  display: inline-block;
  max-width: 12rem;
  line-height: 1.35;
  color: var(--kt-text-secondary, #5c6470);
  word-break: break-all;
}

.shop-list-row-actions {
  min-width: 108px;
}

.shop-merchant-pwd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}
.shop-merchant-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 0 20px 18px;
  border-top: 1px solid var(--line, #e8ecf2);
  margin-top: 4px;
}
.shop-merchant-hint {
  flex: 1 1 220px;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted, #6b7488);
}
.shop-merchant-actions .mini {
  margin-top: 12px;
}
.shop-merchant-msg {
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--muted, #6b7488);
}
.shop-merchant-msg.ok {
  color: #067647;
}
.shop-merchant-msg.bad {
  color: #b42318;
}

.goods-media-section .goods-media-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}
.goods-media-section .goods-media-grid > .kt-form-field {
  margin: 0;
  width: 100%;
}

/* 商品主图：详情页 5:4，单张小尺寸 */
.goods-media-upload--cover.kt-upload--dropzone {
  max-width: 160px;
}
.goods-media-upload--cover.kt-upload--dropzone .kt-upload__dropzone {
  min-height: 0;
  width: 160px;
  max-width: 100%;
  aspect-ratio: 5 / 4;
  padding: 10px 8px;
  box-sizing: border-box;
}
.goods-media-upload--cover.kt-upload--dropzone .kt-upload__dropzone-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  border-radius: 8px;
}
.goods-media-upload--cover.kt-upload--dropzone .kt-upload__dropzone-icon::before {
  width: 14px;
  margin-left: -7px;
}
.goods-media-upload--cover.kt-upload--dropzone .kt-upload__dropzone-icon::after {
  height: 14px;
  margin-top: -7px;
}
.goods-media-upload--cover.kt-upload--dropzone .kt-upload__dropzone-inner strong {
  font-size: 11px;
}
.goods-media-upload--cover.kt-upload--dropzone .kt-upload__dropzone-sub {
  font-size: 10px;
  max-width: 148px;
  line-height: 1.4;
}
.goods-media-upload--cover.kt-upload--dropzone .kt-upload__preview {
  max-width: 160px;
}
.goods-media-upload--cover.kt-upload--dropzone .kt-upload__preview img {
  aspect-ratio: 5 / 4;
}

/* 列表图：多张小图 4:3，横向排列 */
.goods-media-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  overflow: visible;
}
.kt-form-field .goods-media-list-grid {
  min-height: 0;
  height: auto;
}
.goods-media-list-cell {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(2, 42, 153, 0.12);
  background: #f8fafc;
  box-shadow: 0 4px 14px -10px rgba(15, 35, 80, 0.25);
}
.goods-media-list-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.goods-media-list-cell .kt-btn {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 1;
  padding: 2px 8px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
}
.goods-media-list-add {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  padding: 12px;
  border: 1.5px dashed rgba(2, 42, 153, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(2, 42, 153, 0.06), transparent 70%),
    #f8fafc;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.goods-media-list-add:hover {
  border-color: rgba(2, 42, 153, 0.5);
  background: #f1f5fb;
}
.goods-media-list-add__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #022a99, #1e4bb8);
  box-shadow: 0 8px 18px -10px rgba(2, 42, 153, 0.65);
  position: relative;
}
.goods-media-list-add__icon::before,
.goods-media-list-add__icon::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 2px;
  left: 50%;
  top: 50%;
}
.goods-media-list-add__icon::before {
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
}
.goods-media-list-add__icon::after {
  width: 2px;
  height: 12px;
  margin: -6px 0 0 -1px;
}
.goods-media-list-add__text {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #6b7488);
}

.goods-service-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
}
.goods-service-tag {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line, #e6ebf3);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.goods-service-tag:hover {
  border-color: rgba(2, 42, 153, 0.28);
  box-shadow: 0 4px 14px rgba(15, 35, 80, 0.06);
}
.goods-service-tag.is-on {
  border-color: rgba(2, 42, 153, 0.45);
  background: linear-gradient(165deg, #f5f8ff 0%, #eef3fb 100%);
  box-shadow: 0 6px 18px rgba(2, 42, 153, 0.08);
}
.goods-service-tag__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.goods-service-tag__mark {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #c5d0e0;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.goods-service-tag.is-on .goods-service-tag__mark {
  border-color: var(--brand, #022a99);
  background: var(--brand, #022a99)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2 5 8.7 9.5 3.8'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}
.goods-service-tag__text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text, #1a2842);
}
.goods-service-tag.is-on .goods-service-tag__text {
  color: var(--brand, #022a99);
}

.goods-addon-section .goods-addon-list {
  margin-top: 4px;
}
.kt-goods-form-page--service .kt-form-page__desc {
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kt-service-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  align-items: start;
}
@media (max-width: 640px) {
  .kt-service-price-row {
    grid-template-columns: 1fr;
  }
}

.goods-addon-section .form-note {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(2, 42, 153, 0.18);
  background: #f8fafc;
  font-size: 13px;
  color: var(--muted, #6b7488);
  text-align: center;
}
.goods-addon-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
/* 若误包进 filter-control-shell，勿压成单行输入框高度 */
.filter-control-shell > .goods-service-tags.filter-control,
.filter-control-shell > .goods-addon-list.filter-control {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.goods-addon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line, #e6ebf3);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.goods-addon-item:hover {
  border-color: rgba(2, 42, 153, 0.22);
}
.goods-addon-item.is-on {
  border-color: rgba(2, 42, 153, 0.35);
  background: rgba(2, 42, 153, 0.04);
}
.goods-addon-item__input {
  flex: none;
  width: 16px;
  height: 16px;
  accent-color: var(--brand, #022a99);
  cursor: pointer;
}
.goods-addon-item__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  min-width: 0;
}
.goods-addon-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.goods-addon-item__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand, #022a99);
}

.kt-goods-publish-dock__msg {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #b42318;
}
.review-btn-ghost {
  color: var(--text, #1a2842);
  border: 1px solid var(--line, #e6ebf3);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 35, 80, 0.04);
}
.review-btn-ghost:hover:not(:disabled) {
  border-color: rgba(2, 42, 153, 0.28);
  background: #f8fafc;
}
.kt-goods-publish-dock .review-btn-pass {
  min-width: 148px;
  padding: 0 22px;
}
.freight-form-page .kt-form-sheet {
  padding: 8px 8px 4px;
}
.freight-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  padding: 28px 32px 12px;
  align-items: start;
}
.freight-form-grid > .kt-form-field {
  margin-bottom: 0;
  min-width: 0;
}
.freight-form-grid > .kt-form-field--span {
  grid-column: 1 / -1;
}
.freight-form-page .kt-form-footer {
  margin: 4px 32px 20px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line, #e6ebf3);
  background: transparent;
}
.freight-form-page .kt-list-host {
  margin-top: 16px;
}
@media (max-width: 900px) {
  .freight-form-grid {
    grid-template-columns: 1fr;
    padding: 20px 18px 8px;
  }
  .freight-form-page .kt-form-footer {
    margin-left: 18px;
    margin-right: 18px;
  }
}

.region-pick-btn.kt-btn {
  width: 100%;
  justify-content: flex-start;
  height: auto;
  min-height: 42px;
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
  white-space: normal;
  line-height: 1.45;
}
.region-summary {
  flex: none;
  margin: 14px 0 0;
  max-height: 4.6em;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink, #1a2842);
  word-break: break-all;
}
.region-pick-btn.is-placeholder {
  color: var(--muted, #6b7488);
}
.region-modal.console-modal-dialog,
.region-modal.kt-modal__dialog {
  width: min(920px, calc(100vw - 48px));
  max-height: min(86vh, 720px);
}
.region-modal .console-modal-head,
.region-modal .kt-modal__head {
  flex: none;
  padding: 20px 28px;
}
.region-modal .console-modal-body,
.region-modal .kt-modal__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 20px 28px 18px;
}
.region-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  flex: 1;
  min-height: 0;
  height: min(460px, calc(86vh - 250px));
}
.region-cols--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.region-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line, #e6ebf3);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.region-col__title {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #6b7488);
  background: #f8fafc;
  border-bottom: 1px solid var(--line, #e6ebf3);
}
.region-col__list {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 6px;
}
.region-row {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.region-row.is-on,
.region-check.is-on {
  background: rgba(2, 42, 153, 0.08);
  color: var(--brand, #022a99);
}
.region-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.region-check__name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.region-check__more {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #6b7488);
  font-size: 18px;
  cursor: pointer;
}
.region-empty {
  margin: 12px 8px;
  font-size: 12px;
  color: var(--muted, #6b7488);
}
.region-modal__foot {
  display: flex;
  flex: none;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  padding-top: 4px;
}
@media (max-width: 800px) {
  .region-cols,
  .region-cols--two {
    grid-template-columns: 1fr;
  }
  .region-col__list {
    max-height: 220px;
  }
}

.freight-rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 12px;
}
.freight-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line, #e6ebf3);
}
.freight-rule .region-pick-btn {
  flex: 1 1 220px;
}
.freight-rule input {
  width: 72px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line, #e6ebf3);
  border-radius: 8px;
}

.freight-piece-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.freight-piece-row input {
  width: 72px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.goods-media-preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 8px;
  border: 1px solid var(--line);
}
.goods-media-preview--row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.goods-media-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.grid.data-table th:last-child,
.grid.data-table td:last-child {
  min-width: 120px;
}

.shop-goods-cat-list {
  max-height: min(420px, 52vh);
  overflow-y: auto;
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(2, 42, 153, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.shop-goods-cat-group {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(2, 42, 153, 0.06);
}
.shop-goods-cat-group + .shop-goods-cat-group {
  margin-top: 10px;
}
.shop-goods-cat-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 8px;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.shop-goods-cat-row:hover {
  background: rgba(2, 42, 153, 0.04);
}
.shop-goods-cat-row--top {
  font-weight: 600;
  color: var(--ink);
  padding-top: 4px;
  padding-bottom: 6px;
}
.shop-goods-cat-row--child {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 2px solid rgba(2, 42, 153, 0.12);
  color: var(--muted, #5c6470);
}
.shop-goods-cat-row--child .shop-goods-cat-label {
  color: var(--ink, #1a2842);
  font-weight: 500;
}
.shop-goods-cat-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.shop-goods-cat-check {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1.5px solid rgba(2, 42, 153, 0.28);
  background: #fff;
  box-sizing: border-box;
  position: relative;
}
.shop-goods-cat-row input:checked + .shop-goods-cat-check {
  border-color: var(--brand, #022a99);
  background: var(--brand, #022a99);
}
.shop-goods-cat-row input:checked + .shop-goods-cat-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.shop-goods-cat-label {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.shop-goods-cat-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e8ecf2);
}
.shop-goods-cat-footer .kt-form-footer__msg {
  flex: 1;
  min-width: 120px;
  margin: 0;
  font-size: 12px;
  text-align: left;
}
.shop-goods-cat-footer .ok {
  color: #067647;
}
.shop-goods-cat-footer .bad {
  color: #b42318;
}
.member-plans-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.member-plans-tabs .section-tabs {
  margin-bottom: 0;
}
.member-plans-hint {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.member-plans-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) {
  .member-plans-grid {
    grid-template-columns: 1fr;
  }
}
.member-plans-grid .panel {
  margin-top: 0;
  min-width: 0;
}
.member-plans-grid .grid {
  margin-top: 0;
  min-width: 0;
  width: 100%;
}
.member-plans-grid .grid input.kt-input,
.member-plans-grid .grid input[type="number"] {
  width: 100%;
  max-width: 120px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(2, 42, 153, 0.14);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.trade-cat-summary {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.trade-cat-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.trade-cat-form select,
.trade-cat-form .kt-input {
  width: auto;
  min-width: 140px;
  flex: 1 1 160px;
  max-width: 220px;
}

.mall-home-activities {
  margin-top: 20px;
}
.mall-home-activities--standalone {
  margin-top: 0;
}
.mall-home-act-desc {
  margin: 0 0 18px !important;
  line-height: 1.65;
}
.mall-home-act-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 22px 26px;
  margin-top: 4px;
  align-items: start;
}
.mall-hot-activities .mall-home-act-grid,
.mall-home-activities--standalone .mall-home-act-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}
.mall-home-act-preview__words {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
}
.mall-home-act-preview.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.mall-home-act-preview.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(1, 18, 74, 0.72) 0%, rgba(1, 18, 74, 0.08) 58%, transparent 100%);
}
.mall-home-act-preview.has-image .mall-home-act-preview__words {
  z-index: 2;
}
.mall-home-act-preview .mall-hot-act-tag {
  z-index: 3;
}
.mall-home-act-card--has-cover .mall-home-act-preview:not(.has-image) {
  min-height: 0;
  aspect-ratio: auto;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  background: #f8fafc !important;
  box-shadow: none;
  color: var(--muted);
}
.mall-home-act-card--has-cover .mall-home-act-preview:not(.has-image) strong,
.mall-home-act-card--has-cover .mall-home-act-preview:not(.has-image) small {
  color: var(--muted);
  text-shadow: none;
  opacity: 1;
}
@media (max-width: 900px) {
  .mall-home-act-grid {
    grid-template-columns: 1fr;
  }
}
.mall-home-act-card {
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mall-home-act-card .kt-form-field {
  margin-bottom: 14px;
  min-width: 0;
}
.mall-home-act-card .kt-form-field__head {
  margin-bottom: 6px;
}
.mall-home-act-card .kt-form-field__hint {
  margin-top: 4px;
  line-height: 1.5;
}
.mall-home-act-cover,
.mall-home-act-copy {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  clear: both;
}
.mall-home-act-cover__head,
.mall-home-act-copy__head {
  margin-bottom: 8px;
}
.mall-home-act-cover__label,
.mall-home-act-copy__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1a2842);
}
.mall-home-act-cover__hint,
.mall-home-act-copy__hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.mall-home-act-cover .kt-upload {
  display: block;
  width: 100%;
  margin: 0;
}
.mall-home-act-cover .news-field.kt-upload {
  margin-top: 0;
}
.mall-home-act-cover .kt-upload__preview {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}
.mall-home-act-cover .kt-upload__preview:not([hidden]) {
  display: block !important;
}
.mall-home-act-cover .kt-upload--banner .kt-upload__preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: none;
  object-fit: cover;
}
.mall-home-act-cover .kt-upload__preview-actions {
  position: relative;
  z-index: 1;
}
.mall-home-act-card__title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
}
.mall-home-act-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
  font-size: 13px;
  line-height: 1.4;
}
.mall-home-act-check input {
  flex: none;
  margin: 0;
}
.mall-home-act-preview {
  position: relative;
  margin-top: 0;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: inset 0 -40px 50px -20px rgba(1, 18, 74, 0.65);
}
.mall-home-act-preview strong {
  font-size: 15px;
}
.mall-home-act-preview small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.85;
}
.mall-home-act-preview.act-a {
  background: linear-gradient(135deg, #1f5ad6, #3e86e6);
}
.mall-home-act-preview.act-b {
  background: linear-gradient(135deg, #1fa97b, #3fc79a);
}
.mall-home-act-preview.act-c {
  background: linear-gradient(135deg, #7e56c8, #a87be6);
}
.mall-home-act-preview.act-d {
  background: linear-gradient(135deg, #f5a524, #f7bd43);
}
.mall-home-act-card .kt-upload.is-uploading {
  opacity: 0.65;
  pointer-events: none;
}
.mall-home-act-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mall-miniprogram-page {
  max-width: 1280px;
}
.mall-miniprogram-admin .panel + .panel,
.mall-home-admin-page .panel + .panel {
  margin-top: 28px;
}
.mall-home-admin-page {
  max-width: 1280px;
}
.mall-home-admin-intro {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(2, 42, 153, 0.12);
  background: linear-gradient(135deg, rgba(2, 42, 153, 0.05) 0%, rgba(31, 90, 214, 0.08) 100%);
}
.mall-home-admin-intro__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink, #1a2842);
}
.mall-home-admin-intro__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.mall-home-entrance-hot-hint {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.mall-home-entrance-hot-hint a {
  color: #1f5ad6;
  font-weight: 600;
  text-decoration: none;
}
.mall-home-entrance-hot-hint a:hover {
  text-decoration: underline;
}
.mall-home-act-form-section {
  margin: 4px 0 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #1a2842);
}
.mall-miniprogram-intro {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(2, 42, 153, 0.12);
  background: linear-gradient(135deg, rgba(2, 42, 153, 0.05) 0%, rgba(31, 90, 214, 0.08) 100%);
}
.mall-miniprogram-intro__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1a2842);
  margin-bottom: 6px;
}
.mall-miniprogram-intro__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.mall-home-activities > div:not(.panel-head),
.mall-hot-activities > div:not(.panel-head) {
  padding: 16px 20px 20px;
}
.mall-home-activities .panel-desc.mall-home-act-desc,
.mall-hot-activities .panel-desc.mall-home-act-desc {
  padding: 0 0 16px;
  margin: 0 !important;
}
.mall-home-act-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px !important;
  border-bottom: 1px solid var(--line);
}
.mall-home-act-card__title::before {
  content: "";
  flex: none;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #1f5ad6, #022a99);
}
.mall-home-act-card--hot {
  display: grid;
  grid-template-columns: minmax(200px, 38%) 1fr;
  gap: 16px 22px;
  align-items: start;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(2, 42, 153, 0.06);
}
.mall-home-act-card--hot > .mall-home-act-card__title {
  grid-column: 1 / -1;
}
.mall-home-act-card--hot > .mall-hot-act-side {
  grid-column: 1;
}
.mall-home-act-card--hot > .mall-home-act-card__form {
  grid-column: 2;
}
@media (max-width: 960px) {
  .mall-home-act-card--hot {
    grid-template-columns: 1fr;
  }
  .mall-home-act-card--hot > .mall-hot-act-side,
  .mall-home-act-card--hot > .mall-home-act-card__form {
    grid-column: 1;
  }
}
.mall-hot-act-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.mall-hot-act-side__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.mall-home-act-cover--compact {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.mall-home-act-cover--compact .mall-home-act-cover__head {
  display: none;
}
.mall-home-act-cover--compact .kt-upload--banner .kt-upload__dropzone {
  min-height: 72px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.mall-home-act-cover--compact .kt-upload__dropzone-inner strong {
  font-size: 13px;
  font-weight: 600;
}
.mall-home-act-cover--compact .kt-upload__dropzone-sub {
  font-size: 11px;
}
.mall-hot-act-side.has-cover .mall-home-act-cover--compact .kt-upload__preview {
  display: none !important;
}
.mall-hot-act-side.has-saved-cover .mall-home-act-cover--compact .kt-upload__picker {
  display: none !important;
}
.mall-hot-act-cover-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.mall-hot-act-cover-tools[hidden] {
  display: none !important;
}
.mall-home-act-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin-bottom: 2px;
}
@media (max-width: 520px) {
  .mall-home-act-inline {
    grid-template-columns: 1fr;
  }
}
.mall-hot-act-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  min-height: 0;
  color: #fff;
  box-shadow: 0 8px 24px -12px rgba(1, 18, 74, 0.45);
}
.mall-hot-act-preview::before {
  content: "";
  position: absolute;
  top: -28px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  pointer-events: none;
}
.mall-hot-act-preview__words {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
}
.mall-hot-act-preview.act-a {
  background: linear-gradient(135deg, #1f5ad6, #3e86e6);
}
.mall-hot-act-preview.act-b {
  background: linear-gradient(135deg, #1fa97b, #3fc79a);
}
.mall-hot-act-preview.act-c {
  background: linear-gradient(135deg, #7e56c8, #a87be6);
}
.mall-hot-act-preview.act-d {
  background: linear-gradient(135deg, #f5a524, #f7bd43);
}
.mall-hot-act-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  line-height: 1.2;
}
.mall-hot-act-tag.hot {
  color: #fff;
  background: #e85d4c;
}
.mall-hot-act-tag.brand {
  color: #01124a;
  background: #f5c842;
}
.mall-hot-act-preview strong {
  display: block;
  color: #fff;
  font-size: 15px;
  text-shadow: 0 1px 6px rgba(1, 18, 74, 0.4);
}
.mall-hot-act-preview small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  text-shadow: 0 1px 4px rgba(1, 18, 74, 0.35);
}
.mall-hot-act-preview.act-a,
.mall-hot-act-preview.act-b,
.mall-hot-act-preview.act-c,
.mall-hot-act-preview.act-d {
  box-shadow:
    inset 0 -48px 56px -24px rgba(1, 18, 74, 0.55),
    0 8px 24px -12px rgba(1, 18, 74, 0.45);
}
.mall-hot-act-preview.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.mall-hot-act-preview.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(1, 18, 74, 0.72) 0%, rgba(1, 18, 74, 0.08) 58%, transparent 100%);
}
.mall-hot-act-preview.has-image .mall-hot-act-tag,
.mall-hot-act-preview.has-image .mall-hot-act-preview__words {
  z-index: 2;
}
.mall-categories-home {
  scroll-margin-top: 12px;
}

.panel {
  margin-top: 16px;
  border: 1px solid rgba(2, 42, 153, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 40, 66, 0.05);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
}
.panel-head em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 600; }
.panel-desc {
  margin: 0;
  padding: 14px 20px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.panel-table-host .table-scroll {
  border-top: 0;
}
.toolbar-card {
  margin: 14px 16px 0;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, #f8fafc 0%, #eef3fb 100%);
}
.toolbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px 14px;
  align-items: end;
}
.toolbar-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.toolbar-field input,
.toolbar-field select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}
.toolbar-flags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 38px;
  justify-content: center;
}
.toolbar-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.toolbar-submit {
  height: 38px;
  padding: 0 18px;
}
.toolbar-msg {
  margin: 10px 0 0;
}
.panel .grid { margin: 0; }
.panel .grid { min-width: 720px; }
.panel .grid.fit { min-width: 0; width: 100%; }
.panel .grid th, .panel .grid td { padding: 14px 18px; vertical-align: middle; }
.panel .grid tbody tr:last-child td { border-bottom: 0; }
.panel .empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.panel .actions { padding: 0 16px 16px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* 商城首页 */
.mall-categories-home .home-entrance {
  margin-top: 4px;
  padding: 0 20px 20px;
}
.mall-categories-home .mall-home-entrance-hot-hint {
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 4px;
}
.home-entrance-tabs.section-tabs--line {
  width: 100%;
  max-width: 560px;
}
.home-entrance-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.15fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .home-entrance-layout { grid-template-columns: 1fr; }
}
.home-entrance-col {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.home-entrance-col--main {
  background: linear-gradient(180deg, #f8faff 0%, #fff 42%);
  box-shadow: 0 12px 32px rgba(2, 42, 153, 0.06);
}
.home-entrance-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  font-weight: 700;
  font-size: 14px;
}
.home-entrance-col-head em {
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
}
.home-entrance-count {
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  color: var(--brand);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(2, 42, 153, 0.08);
}
.home-entrance-pool {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}
.home-entrance-chip {
  height: 36px;
  padding: 0 14px;
  border: 1px dashed rgba(2, 42, 153, 0.35);
  border-radius: 999px;
  background: #f4f7ff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.home-entrance-chip:hover {
  background: #e8efff;
  border-color: var(--brand);
  transform: translateY(-1px);
}
.home-entrance-preview {
  padding: 16px 16px 8px;
}
.home-entrance-preview-slot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
  padding: 14px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.home-entrance-preview-item {
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.home-entrance-preview-item.is-fixed { opacity: 0.72; }
.home-entrance-preview-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 8px 18px -10px rgba(1, 18, 74, 0.45);
}
.home-entrance-preview-ico.t-blue { background: linear-gradient(145deg, #3e86e6, #1f5ad6); }
.home-entrance-preview-ico.t-teal { background: linear-gradient(145deg, #37b7c4, #1f8fb0); }
.home-entrance-preview-ico.t-purple { background: linear-gradient(145deg, #a87be6, #7e56c8); }
.home-entrance-preview-ico.t-coral { background: linear-gradient(145deg, #ff8a7a, #ff6b5b); }
.home-entrance-preview-ico.t-gold { background: linear-gradient(145deg, #f7bd43, #f5a524); }
.home-entrance-preview-ico.t-green { background: linear-gradient(145deg, #3fc79a, #1fa97b); }
.home-entrance-preview-name {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-entrance-list {
  flex: 1;
  padding: 8px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-entrance-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.home-entrance-order {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}
.home-entrance-row-name { font-weight: 600; font-size: 14px; }
.home-entrance-row-name { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-entrance-line { font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: #eef2f8; color: #4a5a75; }
.home-entrance-line--normal { background: #e8f0fe; color: #1f5ad6; }
.home-entrance-line--used { background: #fff1ec; color: #d2553f; }
.home-entrance-line--service { background: #e7f7f1; color: #17946a; }
.home-entrance-off { font-size: 12px; font-weight: 400; color: #c0392b; }
.home-entrance-chip.is-full { opacity: .5; }
.home-entrance-preview-ico.has-img { background: #f2f5fa; overflow: hidden; }
.home-entrance-preview-ico.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mall-cat-name { display: inline-flex; align-items: center; gap: 10px; }
.mall-cat-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #f2f5fa; border: 1px solid #e4e9f2; flex-shrink: 0; }
.mall-cat-image-field { max-width: 360px; }
.mall-cat-image-field .kt-upload__preview img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }

.home-entrance-row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.home-entrance-remove { color: #c24134; border-color: rgba(255, 107, 91, 0.35); }
.home-entrance-empty {
  margin: 0;
  padding: 24px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.home-entrance-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.home-entrance-msg {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.home-entrance-msg.ok { color: var(--brand); font-weight: 600; }
.home-entrance-msg.bad { color: #c24134; font-weight: 600; }
.home-entrance-save {
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(2, 42, 153, 0.55);
}
.home-entrance-save:disabled { opacity: 0.65; cursor: wait; }

.msg-item {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.msg-item:not(.read) {
  border-color: rgba(2, 42, 153, 0.35);
  background: #f0f5ff;
}
.msg-item--action:hover {
  border-color: rgba(2, 42, 153, 0.45);
  box-shadow: 0 6px 18px -12px rgba(2, 42, 153, 0.45);
}
.msg-item .msg-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.msg-item .msg-head strong { font-size: 15px; }
.msg-item p { margin: 0 0 6px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.msg-item .muted { color: var(--muted); font-size: 12px; }

.inbox-foot .pager {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.news-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 4px;
}
.news-form {
  max-width: 640px;
  margin-top: 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbfd;
}
.news-field {
  display: block;
  margin-top: 16px;
}
.news-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.news-field input,
.news-field select,
.news-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  font: inherit;
}
.news-field textarea { min-height: 160px; resize: vertical; }
.news-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.news-form-actions .primary-mini {
  height: 40px;
  padding: 0 22px;
  font-size: 14px;
}

.news-detail-cover {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 420px;
}
.news-detail-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.news-cover-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.news-cover-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.news-cover-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.news-cover-preview {
  margin-top: 4px;
  max-width: 375px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.news-cover-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 15 / 8;
  object-fit: cover;
  background: #eef1f6;
}
.news-cover-preview-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: #fafbfd;
}
.news-cover-preview.is-readonly .news-cover-preview-actions {
  display: none;
}
.news-submit-done .news-submit-ok {
  margin: 0 0 8px;
  color: #067647;
  font-size: 15px;
  font-weight: 600;
}
.news-submit-done .news-submit-title {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text);
}
.news-detail-notice {
  margin: 0 0 14px;
}
.news-detail-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.news-reject-banner {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff7f5;
  border: 1px solid #f3c7c0;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.6;
}
.news-reject-banner strong { display: block; margin-bottom: 4px; }
.news-reject-banner p { margin: 0; }
.news-editor .news-reject-banner { margin: 0 0 16px; }
.news-editor textarea.kt-form-control { min-height: 220px; resize: vertical; }
.news-editor .kt-upload { margin-bottom: 18px; }
.kt-news-detail { padding-bottom: 12px; }
.kt-news-cover {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f4f7fb;
  max-width: 480px;
  cursor: zoom-in;
}
.kt-news-cover img { display: block; width: 100%; height: auto; }
#page-desc:empty { display: none; }
.news-detail-text {
  margin: 0;
  padding: 14px 16px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
}
.panel .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
}

.review-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.review-btn-pass-sm {
  border-color: rgba(26, 127, 82, 0.35);
  color: #1a7f52;
  background: #ecfdf3;
}
.review-btn-reject-sm {
  border-color: rgba(201, 55, 44, 0.35);
  color: #c9372c;
  background: #fff5f4;
}

.kt-goods-form-page.kt-goods-detail-shell {
  width: 100%;
  max-width: none;
}
.kt-goods-detail-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: none;
  min-width: 0;
}
.kt-goods-detail-page .panel {
  width: 100%;
  margin-top: 0;
  box-sizing: border-box;
}
.kt-goods-detail-page .panel > div:not(.panel-head) {
  padding: 18px 22px 22px;
}
.kt-goods-detail-page .panel .grid {
  width: 100%;
  min-width: 0;
}
.kt-goods-detail-profile {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 12px 32px -24px rgba(1, 27, 102, 0.35);
}
.kt-goods-detail-profile__main {
  flex: 1;
  min-width: 0;
}
.kt-goods-detail-profile__intro .profile-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.kt-goods-detail-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
/* 详情页商品图片：与发布页主图 160×5:4、轮播 240×4:3 一致 */
.kt-goods-detail-media--publish {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}
.kt-goods-detail-media__label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.kt-goods-detail-media__main {
  max-width: 160px;
}
.kt-goods-detail-media__frame {
  border-radius: 12px;
  border: 1px solid rgba(2, 42, 153, 0.12);
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px -10px rgba(15, 35, 80, 0.25);
}
.kt-goods-detail-media__frame--cover {
  width: 160px;
  max-width: 100%;
  aspect-ratio: 5 / 4;
}
.kt-goods-detail-media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kt-goods-detail-media__list {
  width: 100%;
  min-width: 0;
}
.kt-goods-detail-media__carousel.goods-media-list-grid {
  width: 100%;
}
.kt-goods-detail-media__empty {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
  text-align: left;
}
.kt-goods-detail-facts {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 0;
}
.kt-goods-detail-fact {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 18px -16px rgba(1, 27, 102, 0.25);
}
.kt-goods-detail-fact__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.kt-goods-detail-fact__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  word-break: break-word;
}
.kt-goods-detail-rich {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fafbfd;
  min-height: 80px;
}
.kt-goods-detail-rich.kt-rich-html img {
  max-width: 100%;
  height: auto;
}

.kt-goods-detail-sheet .kt-form-sheet__grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.kt-goods-detail-sheet .kt-form-section {
  padding: 24px 26px 8px;
}
.kt-goods-detail-sheet .kt-form-section + .kt-form-section {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding-top: 22px;
}
.kt-goods-detail-field__value {
  min-height: 44px;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  box-sizing: border-box;
  word-break: break-word;
}
.kt-goods-detail-field .kt-goods-detail-rich {
  width: 100%;
  min-height: 120px;
  border: 0;
  padding: 0;
  background: transparent;
}
.kt-goods-detail-field .kt-goods-detail-media {
  margin-top: 4px;
}
.kt-goods-detail-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}
.kt-goods-detail-addons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kt-goods-detail-addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.kt-goods-detail-addon__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.kt-goods-detail-addon__price {
  font-size: 14px;
  font-weight: 700;
  color: #e8542f;
  font-family: "DM Sans", sans-serif;
}
.kt-goods-detail-spec-schema {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 720px) {
  .kt-goods-detail-price-row {
    grid-template-columns: 1fr;
  }
}

.kt-goods-detail-with-dock {
  padding-bottom: 96px;
}
.kt-modal--review-pass .console-modal-head,
.kt-modal--review-pass .kt-modal__head {
  padding: 14px 18px;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}
.kt-modal--review-reject .console-modal-head,
.kt-modal--review-reject .kt-modal__head {
  padding: 14px 18px;
  background: linear-gradient(180deg, #fff5f4 0%, #fff 100%);
}
.kt-modal--review-confirm .console-modal-head h3,
.kt-modal--review-confirm .kt-modal__head h3 {
  font-size: 15px;
}
.kt-modal--review-confirm .console-modal-body,
.kt-modal--review-confirm .kt-modal__body {
  padding: 0;
}
.kt-review-confirm-modal,
.kt-review-reject-modal {
  padding: 16px 18px 18px;
}
.kt-review-confirm-modal__hint {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.kt-review-reject-modal__hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.kt-review-reject-modal__field {
  margin-bottom: 0;
}
.kt-review-reject-modal__input {
  min-height: 108px;
  max-height: 200px;
  resize: vertical;
}
.kt-review-reject-modal__error {
  margin: 8px 0 0;
  font-size: 12px;
  color: #c9372c;
}
.kt-review-reject-modal__error[hidden] {
  display: none;
}
.kt-review-modal__foot {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}
.kt-review-modal__foot .kt-btn {
  min-width: 96px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
}

.kt-goods-review-dock {
  position: fixed;
  left: var(--side);
  right: 0;
  bottom: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(15, 35, 80, 0.08);
  backdrop-filter: blur(10px);
}
.kt-goods-review-dock__main {
  min-width: 0;
  flex: 1;
}
.kt-goods-review-dock__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.kt-goods-review-dock__hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 720px;
}
.kt-goods-review-dock__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
@media (max-width: 860px) {
  .kt-goods-review-dock {
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
  }
  .kt-goods-review-dock__actions {
    justify-content: stretch;
  }
  .kt-goods-review-dock__actions .review-btn {
    flex: 1;
    min-width: 0;
  }
}

/* 平台 · 租赁商品管理 */
.kt-rental-goods-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  vertical-align: 1px;
  color: #b45309;
  background: #fef3c7;
}
.grid.data-table.kt-rental-goods-table {
  table-layout: auto;
  min-width: 1320px;
}
.kt-rental-goods-table td {
  white-space: nowrap;
}
.kt-rental-goods-table .row-actions {
  flex-wrap: nowrap;
}
.kt-rental-goods-title {
  min-width: 220px;
  max-width: 300px;
  white-space: normal;
}
.kt-rental-goods-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.kt-rental-goods-stack__main {
  color: var(--text);
  white-space: nowrap;
}
.kt-rental-goods-stack__sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.kt-rental-goods-reason {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #b42318;
}
.kt-rental-goods-count {
  display: inline-block;
  min-width: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  color: var(--muted);
  background: #eef2f7;
}
.kt-rental-goods-count.is-alert {
  color: #fff;
  background: #ef4444;
}
.kt-rental-goods-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.kt-rental-goods-status__note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.kt-rental-goods-subhead {
  margin: 16px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.kt-rental-goods-subhead:first-child {
  margin-top: 0;
}
.kt-rental-goods-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.kt-rental-goods-gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3f5f9;
  cursor: zoom-in;
}
.kt-rental-goods-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.kt-rental-goods-gallery__item:hover img {
  transform: scale(1.04);
}
.kt-rental-goods-gallery__badge {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: #fff;
  background: rgba(2, 42, 153, 0.85);
}
.kt-rental-goods-preview-modal {
  width: min(880px, 92vw);
}
.kt-rental-goods-preview {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  margin: 0 auto;
  border-radius: 8px;
}
.kt-rental-goods-detail {
  padding-bottom: 8px;
}
.kt-rental-review-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 28px rgba(15, 35, 80, 0.08);
  backdrop-filter: blur(10px);
}
.kt-rental-review-bar__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.kt-rental-review-bar__hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.kt-rental-review-bar__actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}
@media (max-width: 860px) {
  .kt-rental-review-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .kt-rental-review-bar__actions .review-btn {
    flex: 1;
  }
}

/* 平台 · 实名审核 */
.grid.data-table.kt-realname-table {
  table-layout: auto;
  min-width: 980px;
}
.kt-realname-table td {
  white-space: nowrap;
}
.kt-realname-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.kt-realname-thumbs {
  display: flex;
  gap: 8px;
}
.kt-realname-thumb {
  position: relative;
  width: 84px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  cursor: zoom-in;
}
.kt-realname-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kt-realname-thumb__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1px 0;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
}
.kt-realname-thumb__empty,
.kt-realname-card__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  color: var(--muted);
}
.kt-realname-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.kt-realname-card {
  position: relative;
  width: min(360px, 100%);
  height: 220px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  cursor: zoom-in;
}
.kt-realname-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0f172a;
}
.kt-realname-card__label {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgba(2, 42, 153, 0.82);
}
.kt-realname-preview-modal {
  width: min(920px, 94vw);
}
.kt-realname-preview {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  margin: 0 auto;
  border-radius: 8px;
}

/* 平台 · 拍卖商品 / 订单 / 拍卖师 */
.grid.data-table.kt-auction-table {
  table-layout: auto;
  min-width: 1480px;
}
.grid.data-table.kt-auction-order-table {
  min-width: 1360px;
}
.kt-auction-table td,
.kt-auction-order-table td {
  white-space: nowrap;
}
.kt-auction-table .row-actions,
.kt-auction-order-table .row-actions {
  flex-wrap: nowrap;
}
/* 操作列钉在滚动区域右侧，横滑看其他字段时按钮仍可点击 */
.table-scroll .grid.data-table.kt-auction-table th:last-child,
.table-scroll .grid.data-table.kt-auction-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 168px;
  background: #fff;
  box-shadow: -10px 0 12px -12px rgba(15, 23, 42, 0.45);
  overflow: visible;
}
.table-scroll .grid.data-table.kt-auction-table thead th:last-child {
  top: 0;
  z-index: 4;
  background: #f8fafc;
}
.table-scroll .grid.data-table.kt-auction-table tbody tr:nth-child(even) td:last-child {
  background: #f8fafc;
}
.table-scroll .grid.data-table.kt-auction-table tbody tr:hover td:last-child,
.table-scroll .grid.data-table.kt-auction-table tbody tr:nth-child(even):hover td:last-child {
  background: #f3f6fb;
}
.kt-auction-title {
  min-width: 220px;
  max-width: 320px;
  white-space: normal;
}
.kt-auction-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.kt-auction-stack__main {
  color: var(--text);
  white-space: nowrap;
}
.kt-auction-stack__sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.kt-auction-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.kt-auction-stats__item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.kt-auction-stats__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.kt-auction-stats__value {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.kt-auction-video {
  display: block;
  width: min(480px, 100%);
  max-height: 280px;
  border-radius: 12px;
  background: #0f172a;
}
.kt-auction-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kt-auction-media__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.kt-auction-media__item,
.kt-auction-media__add {
  position: relative;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.kt-auction-media__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kt-auction-media__item.is-new {
  border-style: solid;
  border-color: #93c5fd;
}
.kt-auction-media__add {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  background: transparent;
}
.kt-auction-media__badge {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: #fff;
  background: rgba(2, 42, 153, 0.85);
}
.kt-auction-media__del {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}
.kt-auction-media__note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.kt-auction-media__bar {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.kt-auction-video-box {
  min-height: 80px;
}
.kt-auction-lock-tip {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  line-height: 1.6;
}
.kt-auction-edit__form .kt-auction-edit__section {
  margin: 0;
  padding: 22px 28px 0;
  border-top: 1px solid var(--line, #e6ebf3);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.kt-auction-edit__form .kt-auction-edit__section:first-child {
  border-top: 0;
  padding-top: 24px;
}
.kt-auction-edit__form .kt-form-sheet__grid,
.kt-auctioneer-form .kt-form-sheet__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 28px;
  align-items: start;
  padding: 16px 28px 8px;
  box-sizing: border-box;
}
.kt-auction-edit__form .kt-form-field,
.kt-auctioneer-form .kt-form-field {
  min-width: 0;
  margin-bottom: 16px;
}
.kt-auction-edit__form .kt-form-field--span,
.kt-auctioneer-form .kt-form-field--span {
  grid-column: 1 / -1;
}
.kt-auction-edit__form .kt-form-control,
.kt-auction-edit__form .kt-textarea,
.kt-auctioneer-form .kt-form-control,
.kt-auctioneer-form .kt-textarea {
  max-width: 100%;
}
.kt-auction-edit__form .kt-form-footer {
  padding: 16px 28px 20px;
}
@media (max-width: 900px) {
  .kt-auction-edit__form .kt-form-sheet__grid,
  .kt-auctioneer-form .kt-form-sheet__grid {
    grid-template-columns: 1fr;
    padding: 16px 18px 8px;
  }
  .kt-auction-edit__form .kt-auction-edit__section {
    padding-left: 18px;
    padding-right: 18px;
  }
  .kt-auction-edit__form .kt-form-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}
.kt-auction-audit-reason {
  max-width: 360px;
  white-space: normal;
  word-break: break-word;
}
.kt-auction-overdue {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #ef4444;
}
.kt-auction-order-lot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.kt-auction-order-lot--lg {
  margin-bottom: 12px;
}
.kt-auction-voucher {
  width: 180px;
  height: 180px;
}
.kt-auction-steps {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.kt-auction-steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 12px;
}
.kt-auction-steps__item.is-done,
.kt-auction-steps__item.is-current {
  background: #e0e7ff;
  color: #1e3a8a;
}
.kt-auction-steps__item.is-failed {
  background: #fee2e2;
  color: #b91c1c;
}
.kt-auction-steps__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #cbd5e1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.kt-auction-steps__item.is-done .kt-auction-steps__dot,
.kt-auction-steps__item.is-current .kt-auction-steps__dot {
  background: #1d4ed8;
}
.kt-auction-steps__item.is-failed .kt-auction-steps__dot {
  background: #dc2626;
}
.kt-auction-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kt-auction-timeline__item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.kt-auction-timeline__time {
  flex: 0 0 140px;
  font-size: 12px;
  color: var(--muted);
}
.kt-auction-timeline__body strong {
  display: block;
  font-size: 13px;
}
.kt-auction-timeline__body p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.kt-auctioneer-toolbar {
  margin-bottom: 12px;
}
.kt-auctioneer-default {
  margin-left: 6px;
}
.kt-auctioneer-cert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.kt-auctioneer-cert img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.kt-auctioneer-cert__empty {
  font-size: 13px;
  color: var(--muted);
}
.kt-modal.kt-auctioneer-modal,
.kt-auctioneer-modal {
  width: min(720px, 94vw);
}

.review-bar {
  margin-top: 20px;
  padding: 22px 26px 24px;
  border-radius: 16px;
  border: 1px solid rgba(2, 42, 153, 0.12);
  background: linear-gradient(165deg, #f8fafc 0%, #eef3fb 48%, #f5f8ff 100%);
  box-shadow: 0 8px 28px rgba(15, 35, 80, 0.06);
}
.review-bar-head {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.review-bar-hint {
  margin: 8px 0 0;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.review-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(2, 42, 153, 0.08);
}
.review-btn {
  min-width: 140px;
  height: 46px;
  padding: 0 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.review-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.review-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.review-btn-pass {
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #22a06b 0%, #178055 100%);
  box-shadow: 0 6px 18px rgba(23, 128, 85, 0.32);
}
.review-btn-pass:hover:not(:disabled) {
  box-shadow: 0 8px 22px rgba(23, 128, 85, 0.38);
}
.review-btn-reject {
  border: 1px solid rgba(201, 55, 44, 0.45);
  color: #b42318;
  background: #fff;
  box-shadow: 0 2px 8px rgba(201, 55, 44, 0.08);
}
.review-btn-reject:hover:not(:disabled) {
  background: #fff8f7;
  border-color: rgba(201, 55, 44, 0.65);
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.console-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}
.console-modal-dialog {
  width: min(920px, 100%);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}
.console-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.console-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.console-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.console-modal-close:hover {
  background: #f1f5f9;
  color: var(--text);
}
.console-modal-body {
  overflow: auto;
  padding: 8px 0 4px;
}
.console-modal-dialog.kt-modal--review-confirm,
.kt-modal__dialog.kt-modal--review-confirm {
  width: min(400px, calc(100vw - 48px));
  max-width: 400px;
}

.ad-slot-catalog-root {
  padding: 4px 8px 12px;
}
.ad-slot-group + .ad-slot-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.ad-slot-group-title {
  margin: 0 0 10px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}
.ad-slot-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 0 8px 4px;
}
.ad-slot-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfd;
  font-size: 13px;
  line-height: 1.5;
}
.ad-slot-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.ad-slot-item .muted {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.ad-slot-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.ad-thumb {
  display: block;
  width: 100px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef1f6;
}
.ad-detail-cover {
  max-width: 560px;
}
.ad-detail-cover img {
  aspect-ratio: 5 / 2;
  object-fit: cover;
}


/* —— 商家订单管理 —— */
.kt-order-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.kt-order-cell__no,
.kt-order-cell__title {
  font-weight: 600;
  color: #0f172a;
  word-break: break-all;
}
.kt-order-cell__sub {
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
}
.kt-order-goods {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.kt-order-goods__cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  flex: 0 0 auto;
}
.kt-order-goods__meta {
  min-width: 0;
}
.kt-order-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kt-order-detail-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kt-order-detail-page .panel {
  margin: 0;
}
.kt-order-detail-page .panel > div:not(.panel-head) {
  padding: 18px 22px 22px;
  box-sizing: border-box;
}
.kt-order-detail-page .panel .grid {
  width: 100%;
  min-width: 0;
}
.kt-order-detail-page .panel .grid th,
.kt-order-detail-page .panel .grid td {
  padding: 12px 14px;
}
.kt-order-detail-page .panel .panel-desc {
  padding: 12px 0 0;
  margin: 0;
}
.kt-order-aftersale-tip {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 13px;
  line-height: 1.65;
}
/* 商家订单列表：状态 Tab 贴合内容宽度，左右内边距对称 */
.kt-order-list-tabs.kt-page-tabs,
.kt-admin-list > .kt-order-list-tabs.kt-page-tabs {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.kt-order-list-tabs .section-tabs--line,
.kt-admin-list > .kt-order-list-tabs .section-tabs--line {
  width: auto;
  max-width: none;
  min-width: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  box-sizing: border-box;
  grid-template-columns: none;
}
.kt-order-list-tabs .section-tabs--line .section-tabs__item {
  flex: 0 0 auto;
  width: auto;
  min-width: 92px;
  padding: 0 16px;
  height: 40px;
}
/* 订单筛选：字段较多时允许换行，避免挤成一条 */
.kt-order-filter-toolbar.kt-filter-toolbar,
.filter-toolbar.kt-order-filter-toolbar {
  flex-wrap: wrap !important;
}
.kt-order-filter-toolbar .kt-filter-field,
.kt-order-filter-toolbar .filter-field {
  width: 148px;
}
.kt-order-filter-toolbar .kt-filter-field.filter-field-wide,
.kt-order-filter-toolbar .filter-field.filter-field-wide {
  width: min(220px, 36vw);
  min-width: 160px;
}
.kt-order-filter-toolbar .kt-filter-field--status,
.kt-order-filter-toolbar .filter-field.kt-filter-field--status {
  width: 132px;
}
.kt-order-ship-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: min(420px, 100%);
}
.kt-order-ship-form .kt-field-label {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}
.kt-order-ship-form .kt-input,
.kt-order-ship-form textarea.kt-input {
  width: 100%;
}
.kt-order-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.kt-order-timeline {
  list-style: none;
  margin: 0;
  padding: 2px 2px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kt-order-timeline__item {
  position: relative;
  padding-left: 24px;
}
.kt-order-timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.kt-order-timeline__item.is-done::before {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
.kt-order-timeline__label {
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
}
.kt-order-timeline__time {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

/* 热门活动 · 参与商品选择 */
.mall-hot-goods-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 10px;
}
.mall-hot-goods-count {
  font-size: 13px;
  color: var(--muted, #64748b);
  font-weight: 600;
}
.mall-hot-goods-selected {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  background: #f8fafc;
  max-height: 280px;
  overflow: auto;
}
.mall-hot-goods-empty {
  padding: 14px 8px;
  text-align: center;
  font-size: 13px;
  color: var(--muted, #64748b);
  line-height: 1.55;
}
.mall-hot-goods-row,
.mall-hot-goods-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8eef6;
}
.mall-hot-goods-pick-item {
  cursor: pointer;
  margin: 0;
}
.mall-hot-goods-pick-item input {
  flex: none;
  margin: 0;
}
.mall-hot-goods-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eef3f9;
  color: #94a3b8;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mall-hot-goods-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mall-hot-goods-info {
  flex: 1 1 auto;
  min-width: 0;
}
.mall-hot-goods-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mall-hot-goods-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}
.mall-hot-goods-tools {
  flex: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mall-hot-goods-modal .kt-modal__dialog,
.mall-hot-goods-modal.console-modal-dialog {
  width: min(720px, 94vw);
  max-width: 720px;
}
/* Global modal body defaults to horizontal padding 0; add inner padding here */
.mall-hot-goods-modal .kt-modal__body,
.mall-hot-goods-modal .console-modal-body {
  padding: 16px 16px 14px;
}
.mall-hot-goods-picker {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.mall-hot-goods-picker__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.mall-hot-goods-picker__toolbar .kt-form-control,
.mall-hot-goods-picker__toolbar .kt-input {
  min-width: 180px;
}
.mall-hot-goods-picker__hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.mall-hot-goods-picker__results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 8px 4px 10px;
}
.mall-hot-goods-picker__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #e2e8f0);
}
.mall-hot-goods-picker__status {
  font-size: 12px;
  color: #64748b;
}
.mall-hot-goods-picker__actions {
  display: flex;
  gap: 8px;
}

.coupon-form-page {
  max-width: 920px;
  padding: 4px 4px 24px;
}
.coupon-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.coupon-form-head h3 { margin: 0; font-size: 18px; }
.coupon-form-page .panel-desc {
  padding: 0 4px 16px;
}
.coupon-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 8px;
  border: 1px solid rgba(2, 42, 153, 0.08);
  border-radius: 16px;
  background: #fff;
}
.coupon-field {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
}
.coupon-label {
  padding-top: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
}
.coupon-field__body { min-width: 0; }
.coupon-input {
  width: min(420px, 100%);
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}
.coupon-input--short { width: 140px; }
.coupon-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.coupon-radios, .coupon-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.coupon-radios { flex-wrap: wrap; gap: 14px 18px; min-height: 38px; }
.coupon-radio { font-size: 14px; color: #1e293b; cursor: pointer; }
.coupon-suffix, .coupon-hint { font-size: 12px; color: #64748b; }
.coupon-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.coupon-picker__search {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font: inherit;
}
.coupon-picker__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
  padding: 4px 2px;
}
.coupon-picker__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}
.coupon-form .kt-form-footer { padding: 4px 0 12px 144px; }
/* ===== 平台 · 购销详情 ===== */
.kt-trade-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
.kt-trade-detail__main,
.kt-trade-detail__side {
  min-width: 0;
}
@media (max-width: 1200px) {
  .kt-trade-detail__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.kt-trade-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.kt-trade-fact {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.kt-trade-fact.is-wide {
  grid-column: 1 / -1;
}
.kt-trade-fact__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}
.kt-trade-fact__value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  white-space: normal;
  word-break: break-word;
}
.kt-trade-fact.is-money .kt-trade-fact__value {
  font-size: 18px;
  color: #c2410c;
}
.kt-trade-fact.is-bad {
  border-color: rgba(255, 107, 91, 0.35);
  background: #fff7f5;
}
.kt-trade-fact.is-bad .kt-trade-fact__value {
  color: #c24134;
  font-weight: 500;
}
.kt-trade-fact__note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.kt-trade-pills,
.kt-trade-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.kt-trade-pills .pill {
  display: inline-flex;
  width: auto;
}
.kt-trade-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 42, 153, 0.16);
  background: rgba(2, 42, 153, 0.05);
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.kt-trade-chips__empty {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.kt-trade-detail-text {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fafbfd;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.kt-trade-attach-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kt-trade-attach__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}
.kt-trade-attach__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kt-trade-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 160px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: repeating-conic-gradient(#f4f6fa 0% 25%, #fff 0% 50%) 50% / 20px 20px;
  cursor: zoom-in;
  box-sizing: border-box;
}
.kt-trade-image img {
  display: block;
  max-width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 24px -18px rgba(1, 27, 102, 0.45);
}
.kt-trade-image.is-broken {
  cursor: default;
  background: #fafbfd;
}
.kt-trade-image__hint {
  font-size: 13px;
  color: var(--muted);
}
.kt-trade-pdf {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.kt-trade-pdf__badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 52px;
  border-radius: 8px;
  background: #fff1ef;
  color: #c24134;
  font-size: 12px;
  font-weight: 700;
}
.kt-trade-pdf__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kt-trade-pdf__name {
  font-size: 14px;
  color: var(--ink);
  word-break: break-all;
}
.kt-trade-pdf__desc {
  font-size: 12px;
  color: var(--muted);
}
.kt-trade-pdf__viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fafbfd;
  font-size: 13px;
  color: var(--muted);
}
.kt-trade-pdf__viewer iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
  background: #fff;
}
.kt-trade-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.kt-trade-user__avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(2, 42, 153, 0.1);
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
}
.kt-trade-user__who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.kt-trade-user__who strong {
  font-size: 15px;
  color: var(--ink);
  word-break: break-all;
}
.kt-trade-user__who span {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.kt-trade-kv {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0 0 14px;
  font-size: 13px;
}
.kt-trade-kv dt {
  color: var(--muted);
}
.kt-trade-kv dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}
.kt-trade-kv dd.is-ok { color: var(--brand); }
.kt-trade-kv dd.is-bad { color: #c24134; }
.kt-trade-kv dd.is-wait { color: #9a6408; }
.kt-trade-kv dd.is-muted { color: var(--muted); }
.kt-trade-side-btn {
  width: 100%;
  justify-content: center;
}
.kt-trade-side-empty {
  font-size: 13px;
  color: var(--muted);
}
.kt-trade-side-title {
  margin: 14px 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.kt-trade-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.kt-trade-stat {
  padding: 12px;
  border-radius: 12px;
  background: #f6f8fc;
  text-align: center;
}
.kt-trade-stat strong {
  display: block;
  font-size: 22px;
  color: var(--ink);
}
.kt-trade-stat span {
  font-size: 12px;
  color: var(--muted);
}
.kt-trade-viewers {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.kt-trade-viewers li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
}
.kt-trade-viewers__name {
  min-width: 0;
  color: var(--ink);
  word-break: break-all;
}
.kt-trade-viewers__time {
  flex: none;
  color: var(--muted);
}
.kt-trade-timeline {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
  border-left: 2px solid var(--line);
}
.kt-trade-timeline li {
  position: relative;
  padding: 0 0 14px 4px;
}
.kt-trade-timeline li:last-child {
  padding-bottom: 0;
}
.kt-trade-timeline li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #f5a524;
}
.kt-trade-timeline li.is-approved::before { border-color: var(--brand); }
.kt-trade-timeline li.is-rejected::before { border-color: #ff6b5b; }
.kt-trade-timeline__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.kt-trade-timeline__time,
.kt-trade-timeline__meta {
  font-size: 12px;
  color: var(--muted);
}
.kt-trade-timeline__meta {
  margin-top: 4px;
}
.kt-trade-timeline__reason {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7f5;
  color: #c24134;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}
.kt-trade-detail .kt-form-page__intro {
  flex: 1;
  min-width: 0;
}
.kt-trade-detail .kt-form-page__title {
  word-break: break-word;
}

/* ===== 平台 · 会员（列表 / 详情 / 套餐与权益） ===== */
.kt-mem-page { display: flex; flex-direction: column; gap: 14px; }
.kt-mem-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.kt-mem-stat {
  --lv: var(--brand);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  text-align: left; cursor: pointer; font: inherit; box-shadow: inset 3px 0 0 var(--lv);
}
.kt-mem-stat strong { font-size: 22px; color: var(--ink); line-height: 1.1; }
.kt-mem-stat span { font-size: 12px; color: var(--muted); }
.kt-mem-stat:hover { border-color: rgba(2, 42, 153, 0.25); }
.kt-mem-stat.is-on { border-color: var(--lv); background: #f7f9ff; }
.kt-mem-stat.is-static { cursor: default; box-shadow: none; }
.kt-mem-level {
  --lv: #6b7488;
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--lv); white-space: nowrap;
}
.kt-mem-level.is-normal { color: #4b5568; background: #eef1f6; }
.kt-mem-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kt-mem-who__text { display: flex; flex-direction: column; min-width: 0; }
.kt-mem-who__text strong { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.kt-mem-who__text span { font-size: 12px; color: var(--muted); }
.kt-mem-avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(2, 42, 153, 0.1); color: var(--brand); font-weight: 700;
}
.kt-mem-avatar.is-lg { width: 48px; height: 48px; font-size: 20px; }
.kt-mem-term { display: flex; flex-direction: column; font-size: 13px; }
.kt-mem-term strong { font-weight: 600; color: var(--ink); }
.kt-mem-term span { font-size: 12px; color: var(--muted); }
.kt-mem-term .is-warn, .kt-mem-current .is-warn { color: #c24134; font-weight: 600; }
.kt-mem-muted { color: var(--muted); font-size: 13px; }
.kt-mem-mono { font-family: Consolas, monospace; font-size: 12px; color: var(--ink); }
.kt-mem-note { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* 详情 */
.kt-mem-detail__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.kt-mem-detail__main, .kt-mem-detail__side { min-width: 0; }
@media (max-width: 1200px) { .kt-mem-detail__layout { grid-template-columns: minmax(0, 1fr); } }
.kt-mem-quota { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.kt-mem-quota__item {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.kt-mem-quota__name { font-size: 12px; color: var(--muted); }
.kt-mem-quota__item strong { font-size: 18px; color: var(--ink); }
.kt-mem-quota__sub { font-size: 12px; color: var(--muted); }
.kt-mem-quota__item.is-off { background: #fafbfd; }
.kt-mem-quota__item.is-off strong { color: #a0a8b8; font-size: 15px; }
.kt-mem-bar { display: block; height: 6px; border-radius: 999px; background: #edf0f6; overflow: hidden; }
.kt-mem-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.kt-mem-bar.is-full i { background: #ff6b5b; }
.kt-mem-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kt-mem-profile__who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kt-mem-profile__who strong { font-size: 15px; color: var(--ink); word-break: break-all; }
.kt-mem-profile__who span { font-size: 12px; color: var(--muted); }
.kt-mem-kv { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px 12px; margin: 0; font-size: 13px; }
.kt-mem-kv dt { color: var(--muted); }
.kt-mem-kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.kt-mem-current { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.kt-mem-side-title { margin: 14px 0 8px; font-size: 12px; color: var(--muted); }
.kt-mem-timeline { margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--line); }
.kt-mem-timeline li { position: relative; padding: 0 0 12px 6px; }
.kt-mem-timeline li:last-child { padding-bottom: 0; }
.kt-mem-timeline li::before {
  content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid #c2c9d6;
}
.kt-mem-timeline li.is-current::before { border-color: var(--brand); }
.kt-mem-timeline li.is-upcoming::before { border-color: #f5a524; }
.kt-mem-timeline__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.kt-mem-timeline__time { font-size: 12px; color: var(--muted); }
.kt-mem-realnames { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.kt-mem-realnames li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.kt-mem-realnames li:last-child { border-bottom: 0; padding-bottom: 0; }
.kt-mem-realnames li > div:first-child { display: flex; align-items: center; gap: 8px; }
.kt-mem-photo-ops { display: flex; gap: 6px; margin-top: 2px; }

/* 套餐与权益 */
.kt-mem-plans { display: flex; flex-direction: column; gap: 16px; }
.kt-mem-plans .panel { margin: 0; }
.kt-mem-plans .panel > div:not(.panel-head) { padding: 18px 22px 22px; box-sizing: border-box; }
.kt-mem-wrap { word-break: break-all; }
.kt-mem-rules { padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(2, 42, 153, 0.12); background: #f6f8fe; font-size: 13px; color: var(--ink); }
.kt-mem-rules strong { display: block; margin-bottom: 6px; color: var(--brand); }
.kt-mem-rules ul { margin: 0; padding-left: 18px; line-height: 1.9; color: #42506b; }
.kt-mem-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
/* 普通会员不卖，做成整行的窄条放在最上面 */
.kt-mem-price-card.is-normal { grid-column: 1 / -1; display: flex; align-items: center; }
.kt-mem-price-card.is-normal .kt-mem-price-card__head { flex: none; width: 200px; align-self: stretch; }
.kt-mem-price-card {
  --lv: var(--brand);
  border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden;
}
.kt-mem-price-card__head {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  background: var(--lv); color: #fff;
}
.kt-mem-price-card__head strong { font-size: 15px; }
.kt-mem-price-card__head span { font-size: 12px; opacity: 0.9; }
.kt-mem-price-card.is-normal .kt-mem-price-card__head { background: #eef1f6; color: #42506b; }
.kt-mem-price-card__free { margin: 0; padding: 12px 16px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.kt-mem-price-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.kt-mem-price-card__head + .kt-mem-price-row { border-top: 0; }
.kt-mem-price-row.is-dirty { background: #fffbeb; }
.kt-mem-price-row__name { font-weight: 700; color: var(--ink); font-size: 14px; }
.kt-mem-price-row__hint { grid-column: 2 / -1; font-size: 12px; color: #0e8a5f; min-height: 16px; }
.kt-mem-price-row__hint.is-bad { color: #c24134; }
.kt-mem-money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.kt-mem-money span { flex: none; padding: 0 8px; font-size: 12px; color: var(--muted); background: #f6f8fc; align-self: stretch; display: flex; align-items: center; }
.kt-mem-money input { flex: 1; min-width: 0; height: 34px; padding: 0 8px; border: 0; outline: none; font: inherit; font-size: 14px; color: var(--ink); }
.kt-mem-money:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.08); }
.kt-mem-savebar {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.kt-mem-savebar.is-sticky { position: sticky; bottom: 0; z-index: 5; margin: 14px -22px -22px; padding: 12px 22px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 -8px 20px -16px rgba(1, 27, 102, 0.3); }
.kt-mem-dirty { margin-right: auto; font-size: 13px; color: var(--muted); }
.kt-mem-matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.kt-mem-matrix { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.kt-mem-matrix th, .kt-mem-matrix td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.kt-mem-matrix thead th { position: sticky; top: 0; z-index: 2; background: #f8fafd; }
.kt-mem-matrix thead th:first-child, .kt-mem-matrix td.kt-mem-matrix__name { text-align: left; }
.kt-mem-matrix tbody tr:last-child td { border-bottom: 0; }
.kt-mem-matrix__group td { padding: 8px 12px; text-align: left; font-size: 12px; font-weight: 700; color: var(--brand); background: #f3f6fd; }
.kt-mem-matrix__name strong { display: block; color: var(--ink); font-size: 13px; }
.kt-mem-matrix__name span { font-size: 12px; color: var(--muted); }
.kt-mem-matrix__cell.is-dirty { background: #fffbeb; }
.kt-mem-matrix__cell.is-bad { background: #fff3f1; }
.kt-mem-matrix__cell.is-locked { background: #fafbfd; }
.kt-mem-matrix__tip { display: block; min-height: 14px; margin-top: 2px; font-size: 11px; color: var(--muted); }
.kt-mem-matrix__cell.is-bad .kt-mem-matrix__tip { color: #c24134; }
.kt-mem-num { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.kt-mem-num input { width: 76px; height: 32px; padding: 0 6px; border: 0; outline: none; text-align: right; font: inherit; color: var(--ink); }
.kt-mem-num span { padding: 0 8px; font-size: 12px; color: var(--muted); background: #f6f8fc; align-self: stretch; display: flex; align-items: center; }
.kt-mem-num:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.08); }
.kt-mem-switch { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--muted); }
.kt-mem-switch input { position: absolute; opacity: 0; pointer-events: none; }
.kt-mem-switch i { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #d5dbe6; transition: background 0.15s; }
.kt-mem-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.kt-mem-switch input:checked + i { background: var(--brand); }
.kt-mem-switch input:checked + i::after { transform: translateX(16px); }
.kt-mem-switch input:checked ~ span { color: var(--brand); font-weight: 600; }

/* ==========================================================================
   商城首页管理（2026-11-13 重做）：左手机预览 + 右标签页
   ========================================================================== */
.mh-page {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.mh-side { position: sticky; top: 16px; }
@media (max-width: 1180px) {
  .mh-page { grid-template-columns: 1fr; }
  .mh-side { position: static; display: flex; flex-direction: column; align-items: center; }
}
.mh-work {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px -24px rgba(1, 18, 74, 0.35);
  overflow: hidden;
}

/* ---- 标签页 ---- */
.mh-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--line);
  background: #f8fafd;
}
.mh-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px 12px 0 0;
}
.mh-tab:hover { color: var(--ink); }
.mh-tab.is-on {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 -1px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line);
  margin-bottom: -1px;
}
.mh-tab__badge {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--muted);
}
.mh-tab.is-on .mh-tab__badge { background: #e8eefc; color: var(--brand); }
.mh-tab__dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}
.mh-tab.is-dirty .mh-tab__dot { display: inline-block; }
.mh-pane { padding: 22px 24px 26px; }
.mh-pane[hidden] { display: none; }

/* ---- 区块标题 + 保存 ---- */
.mh-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.mh-sec-head__text { flex: 1 1 360px; min-width: 0; }
.mh-sec-title { margin: 0 0 4px; font-size: 17px; color: var(--ink); }
.mh-sec-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.mh-sec-head__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mh-dirty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #c2410c;
  background: #fff4ec;
  border: 1px solid #ffd9c2;
  padding: 5px 10px;
  border-radius: 999px;
}
.mh-dirty::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f97316; }
.mh-dirty[hidden] { display: none; }

/* ---- 图标（后台通用） ---- */
.mh-ico {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 18px -10px rgba(1, 18, 74, 0.45);
}
.mh-ico b { font-size: 18px; font-weight: 700; }
.mh-ico svg { width: 22px; height: 22px; }
.mh-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-ico.has-img { background: #f2f5fa; }
.mh-ico.t-blue { background: linear-gradient(145deg, #3e86e6, #1f5ad6); }
.mh-ico.t-teal { background: linear-gradient(145deg, #37b7c4, #1f8fb0); }
.mh-ico.t-purple { background: linear-gradient(145deg, #a87be6, #7e56c8); }
.mh-ico.t-coral { background: linear-gradient(145deg, #ff8a7a, #ff6b5b); }
.mh-ico.t-gold { background: linear-gradient(145deg, #f7bd43, #f5a524); }
.mh-ico.t-green { background: linear-gradient(145deg, #3fc79a, #1fa97b); }
.mh-ico--sm { width: 40px; height: 40px; }
.mh-ico--sm b { font-size: 15px; }
.mh-ico--empty {
  background: #fff;
  color: #9aa6bd;
  border: 2px dashed #cfd8e8;
  box-shadow: none;
  font-size: 22px;
}
.mh-ico.is-uploading::after {
  content: "上传中";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(1, 18, 74, 0.55);
  color: #fff;
}

.mh-line {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef2f8;
  color: #4a5a75;
  line-height: 1.6;
}
.mh-line--normal { background: #e8f0fe; color: #1f5ad6; }
.mh-line--used { background: #fff1ec; color: #d2553f; }
.mh-line--service { background: #e7f7f1; color: #17946a; }
.mh-off { font-style: normal; font-size: 11px; color: #c0392b; }

/* ---- 7 个位置 ---- */
.mh-slots {
  display: grid;
  /* 和小程序一样 4 列 × 2 行（7 个 + 更多分类） */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6f8fc, #f1f4fa);
  border: 1px solid var(--line);
}
.mh-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  min-height: 150px;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.mh-slot--filled { cursor: grab; }
.mh-slot--filled:hover { border-color: #b9c8ea; box-shadow: 0 10px 24px -16px rgba(2, 42, 153, 0.5); }
.mh-slot.is-focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.12); }
.mh-slot.is-drag { opacity: 0.45; }
.mh-slot.is-over { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.25); transform: translateY(-2px); }
.mh-slot.is-off .mh-ico { filter: grayscale(1); opacity: 0.6; }
.mh-slot--empty {
  background: transparent;
  border: 1.5px dashed #cfd8e8;
  cursor: pointer;
  color: #9aa6bd;
}
.mh-slot--empty:hover { border-color: var(--brand); color: var(--brand); }
.mh-slot--more { background: #f8fafd; border-style: dashed; opacity: 0.85; }
.mh-slot__no {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
}
.mh-slot--filled .mh-slot__no { background: var(--brand); color: #fff; }
.mh-slot__x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #fde8e6;
  color: #c0392b;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.mh-slot:hover .mh-slot__x,
.mh-slot.is-focus .mh-slot__x { opacity: 1; }
.mh-slot__ico { position: relative; display: inline-flex; }
.mh-slot__img {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  background: rgba(1, 18, 74, 0.78);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
}
.mh-slot:hover .mh-slot__img,
.mh-slot.is-focus .mh-slot__img { opacity: 1; }
.mh-slot__name {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mh-slot--empty .mh-slot__name { color: inherit; font-weight: 500; }
.mh-slot__sub { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; color: #9aa6bd; }
.mh-slot__nav { display: inline-flex; gap: 6px; margin-top: 2px; }
.mh-slot__nav button {
  width: 26px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  line-height: 18px;
}
.mh-slot__nav button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.mh-slot__nav button:disabled { opacity: 0.35; cursor: default; }

/* ---- 分类库 ---- */
.mh-lib { margin-top: 22px; scroll-margin-top: 16px; }
.mh-lib__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.mh-lib__title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mh-lib__title strong { font-size: 15px; color: var(--ink); }
.mh-lib__title span { font-size: 13px; color: var(--muted); }
.mh-lib__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mh-search {
  flex: 0 1 240px;
  min-width: 160px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}
.mh-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.1); }
.mh-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.mh-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}
.mh-chip em { font-style: normal; font-size: 12px; color: var(--muted); }
.mh-chip:hover { border-color: #b9c8ea; }
.mh-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.mh-chip.is-on em { color: rgba(255, 255, 255, 0.8); }
.mh-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.mh-lib__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.mh-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.mh-item:hover { border-color: #b9c8ea; box-shadow: 0 8px 20px -16px rgba(2, 42, 153, 0.5); }
.mh-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mh-item.is-on { border-color: var(--brand); background: #f3f6fe; }
.mh-item.is-full { opacity: 0.55; }
.mh-item.is-off { opacity: 0.6; }
.mh-item.is-off .mh-ico { filter: grayscale(1); }
.mh-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mh-item__name { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-item__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9aa6bd; white-space: nowrap; overflow: hidden; }
.mh-item .mh-line, .mh-slot .mh-line { white-space: nowrap; flex-shrink: 0; }
.mh-item__state { flex-shrink: 0; }
.mh-item__img {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.mh-item:hover .mh-item__img { opacity: 1; }
.mh-item__img:hover { color: var(--brand); border-color: var(--brand); }
.mh-item__state { font-size: 12px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.mh-item.is-on .mh-item__state { color: #fff; background: var(--brand); padding: 3px 8px; border-radius: 999px; }
.mh-item.is-full .mh-item__state { color: var(--muted); }
.mh-empty { grid-column: 1 / -1; color: var(--muted); font-size: 13px; padding: 24px 0; text-align: center; }

/* ---- 热门活动：位置切换卡 ---- */
.mh-acts .mall-home-act-grid { margin-top: 16px; }
.mh-acts .mall-home-act-card[hidden] { display: none; }
.mh-acts .mall-home-act-card__title { display: none; }
.mh-acts .mall-home-act-card--hot { border-radius: 16px; padding: 20px; }
.mh-slot-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px) {
  .mh-slot-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mh-slot-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mh-slot-tab:hover { border-color: #b9c8ea; }
.mh-slot-tab.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.12); }
.mh-slot-tab.is-hidden .mh-slot-tab__thumb { filter: grayscale(1); opacity: 0.6; }
.mh-slot-tab__thumb {
  width: 56px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.mh-slot-tab__thumb.act-a { background-color: #1f5ad6; background-image: linear-gradient(135deg, #1f5ad6, #3e86e6); }
.mh-slot-tab__thumb.act-b { background-color: #1fa97b; background-image: linear-gradient(135deg, #1fa97b, #3fc79a); }
.mh-slot-tab__thumb.act-c { background-color: #7e56c8; background-image: linear-gradient(135deg, #7e56c8, #a87be6); }
.mh-slot-tab__thumb.act-d { background-color: #f5a524; background-image: linear-gradient(135deg, #f5a524, #f7bd43); }
.mh-slot-tab__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mh-slot-tab__text strong { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-slot-tab__text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 手机预览 ---- */
.mh-phone__label { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px 4px; }
.mh-phone__label strong { font-size: 14px; color: var(--ink); }
.mh-phone__label span { font-size: 12px; color: var(--muted); }
.mh-phone__frame {
  position: relative;
  width: 320px;
  height: 640px;
  border-radius: 40px;
  padding: 12px;
  background: #0b1530;
  box-shadow: 0 30px 60px -30px rgba(1, 18, 74, 0.55), inset 0 0 0 2px #26324f;
  display: flex;
  flex-direction: column;
}
.mh-phone__screen {
  flex: 1;
  border-radius: 30px 30px 0 0;
  background: #f4f6fa;
  overflow-y: auto;
  scrollbar-width: none;
}
.mh-phone__screen::-webkit-scrollbar { display: none; }
.mh-p-sky {
  background: linear-gradient(160deg, #011b66 0%, #022a99 100%);
  color: #fff;
  padding: 8px 14px 14px;
}
.mh-p-status { font-size: 11px; font-weight: 600; opacity: 0.85; }
.mh-p-title { font-size: 15px; font-weight: 700; text-align: center; margin: 4px 0 10px; }
.mh-p-search {
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #9aa6bd;
  font-size: 11px;
  line-height: 30px;
  padding: 0 12px;
}
.mh-p-banner {
  margin: 10px 12px 0;
  height: 96px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dfe7f7, #eef2fa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6bd;
  font-size: 12px;
}
.mh-p-cats {
  margin: 10px 12px 0;
  padding: 12px 4px 4px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 0;
}
.mh-p-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  min-width: 0;
}
.mh-p-cat:hover { background: #f3f6fe; }
.mh-p-cat.is-focus { background: #e8eefc; box-shadow: inset 0 0 0 1.5px var(--brand); }
.mh-p-cat.is-more { cursor: default; opacity: 0.8; }
.mh-p-cat.is-more:hover { background: transparent; }
.mh-ico--p { width: 40px; height: 40px; }
.mh-ico--p b { font-size: 15px; }
.mh-ico--p svg { width: 18px; height: 18px; }
.mh-p-cat__name {
  font-size: 11px;
  color: #1a2842;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mh-p-sec { margin: 14px 14px 8px; font-size: 13px; font-weight: 700; color: #1a2842; }
.mh-p-acts {
  margin: 0 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mh-p-act {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  text-align: left;
  padding: 0;
  background-size: cover;
  background-position: center;
}
.mh-p-act.act-a { background-color: #1f5ad6; background-image: linear-gradient(135deg, #1f5ad6, #3e86e6); }
.mh-p-act.act-b { background-color: #1fa97b; background-image: linear-gradient(135deg, #1fa97b, #3fc79a); }
.mh-p-act.act-c { background-color: #7e56c8; background-image: linear-gradient(135deg, #7e56c8, #a87be6); }
.mh-p-act.act-d { background-color: #f5a524; background-image: linear-gradient(135deg, #f5a524, #f7bd43); }
.mh-p-act.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 18, 74, 0.7), transparent 65%);
}
.mh-p-act.is-focus { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--brand); }
.mh-p-act.is-hidden { filter: grayscale(1); opacity: 0.5; }
.mh-p-act__tag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
}
.mh-p-act__tag.hot { background: #e85d4c; color: #fff; }
.mh-p-act__tag.brand { background: #f5c842; color: #01124a; }
.mh-p-act__words { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 2; }
.mh-p-act__words strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-p-act__words small { display: block; font-size: 10px; opacity: 0.9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-p-act__off {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
}
.mh-p-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 10px 0 8px;
  background: #fff;
  border-radius: 0 0 30px 30px;
  border-top: 1px solid #eef2f8;
  font-size: 11px;
  color: #9aa6bd;
}
.mh-p-tabbar .is-on { color: var(--brand); font-weight: 700; }

/* 商城小程序管理：活动块单独一张卡片（复用商城首页管理的 mh 样式） */
.mh-work--solo { max-width: 1280px; }
.mh-solo-tip { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.mh-acts.mall-home-activities { margin-top: 0; }
.mh-acts .mall-home-act-grid { grid-template-columns: 1fr; }

/* ==========================================================================
   店铺管理完善（2026-11-15）：店主搜索、停用弹窗、账号弹窗、列表单元格、详情经营概况
   ========================================================================== */
.kt-shop-form-sec {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 22px 26px 0;
  border-top: 1px solid var(--line);
}
.kt-shop-form-sec:first-child { border-top: 0; }
.kt-shop-form-sec + .kt-form-sheet__grid--flat { padding-top: 14px; }
/* 多行文本框不要输入框统一样式里的下拉箭头 */
.filter-control-shell:has(textarea)::after { display: none; }
.filter-control-shell > textarea.filter-control { height: auto; }
.kt-form-sheet textarea.kt-form-control,
.kt-modal textarea.kt-form-control {
  background-image: none !important;
  height: auto;
  min-height: 84px;
  padding: 10px 14px;
  line-height: 1.6;
}
.kt-shop-form-sec strong { font-size: 16px; color: var(--ink); }
.kt-shop-form-sec span { font-size: 13px; color: var(--muted); }
.kt-form-sheet textarea[name="intro"],
.kt-shop-status-reason {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
  background: #fff;
}
.kt-form-sheet textarea[name="intro"]:focus,
.kt-shop-status-reason:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.1); }

/* 店主搜索选择 */
.kt-owner-picker { width: 100%; }
.kt-owner-chosen {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #c9d6f2;
  background: #f5f8ff;
  border-radius: 14px;
}
.kt-owner-chosen[hidden], .kt-owner-search[hidden] { display: none; }
.kt-owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3e86e6, #1f5ad6);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kt-owner-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.kt-owner-info strong { font-size: 15px; color: var(--ink); }
.kt-owner-info span { font-size: 13px; color: var(--muted); }
.kt-owner-search { position: relative; }
.kt-owner-results { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.kt-owner-results:empty { display: none; }
.kt-owner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.kt-owner-item:hover:not(:disabled) { border-color: var(--brand); background: #f5f8ff; }
.kt-owner-item.is-blocked { cursor: not-allowed; opacity: 0.6; background: #f8f9fb; }
.kt-owner-item__main { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.kt-owner-item__main strong { font-size: 14px; color: var(--ink); }
.kt-owner-item__main span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-owner-item__tags { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.kt-owner-item__why { font-style: normal; font-size: 12px; color: #c0392b; }
.kt-owner-empty { padding: 10px 14px; font-size: 13px; color: var(--muted); }

/* 经营类目：一级勾上后的提示 */
.shop-goods-cat-row__hint { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; }

/* 停用 / 启用、账号弹窗 */
.kt-shop-status-modal, .kt-shop-cred-modal { width: min(520px, calc(100vw - 32px)); }
.kt-shop-status-modal .kt-modal__body, .kt-shop-cred-modal .kt-modal__body { padding: 18px 22px 20px; }
.kt-shop-status-tip {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f3f7ff;
  border: 1px solid #d6e2fb;
  margin-bottom: 14px;
}
.kt-shop-status-tip.is-danger { background: #fff6f4; border-color: #f5d0c9; }
.kt-shop-status-tip strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.kt-shop-status-tip p { margin: 0; font-size: 13px; line-height: 1.7; color: #4a5a75; }
.kt-shop-status-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.kt-shop-status-foot .kt-form-footer__msg { flex: 1; margin: 0; }
.kt-shop-cred-lead { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: #4a5a75; }
.kt-shop-cred-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kt-shop-cred-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.kt-shop-cred-row + .kt-shop-cred-row { border-top: 1px solid var(--line); }
.kt-shop-cred-row span { color: var(--muted); font-size: 13px; }
.kt-shop-cred-row strong { font-size: 17px; color: var(--ink); letter-spacing: 0.04em; }

/* 店铺列表单元格 */
.shop-name-cell { display: inline-flex; align-items: center; gap: 10px; min-width: 180px; }
.shop-name-cell__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #3e86e6, #1f5ad6);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.shop-name-cell__logo img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.shop-name-cell__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-name-cell__text strong { font-size: 14px; color: var(--ink); }
.shop-name-cell__text small { font-size: 12px; color: var(--muted); }
.shop-owner-cell { display: flex; flex-direction: column; gap: 2px; }
.shop-owner-cell small { font-size: 12px; color: var(--muted); }

/* 店铺详情 */
.avatar.avatar--img { overflow: hidden; background: #fff; border: 1px solid var(--line); }
.avatar.avatar--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-disabled-banner {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff4f2;
  border: 1px solid #f5d0c9;
  color: #b4382a;
  font-size: 14px;
  line-height: 1.6;
}
.shop-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.shop-overview__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -24px rgba(1, 18, 74, 0.4);
}
.shop-overview__card span { font-size: 13px; color: var(--muted); }
.shop-overview__card strong { font-size: 22px; color: var(--ink); font-weight: 700; }
.shop-overview__card small { font-size: 12px; color: #8a94a8; }

/* 商家端店铺资料：logo、停用提示 */
.merchant-shop-logo { display: flex; align-items: center; gap: 16px; }
.merchant-shop-logo__img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f4f6fa;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
}
.merchant-shop-logo__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.merchant-shop-logo__tools { display: flex; flex-direction: column; gap: 8px; }
.merchant-shop-logo__tools p { margin: 0; font-size: 12px; color: var(--muted); }
.merchant-shop-logo__btns { display: flex; gap: 8px; }

/* ==========================================================================
   平台 · 店铺管理总控页（2026-11-15）：概况卡片 + 申请入驻页预览 + 设置分区
   ========================================================================== */
.sp-page { display: flex; flex-direction: column; gap: 18px; }
.sp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 26px -24px rgba(1, 18, 74, 0.4);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.sp-stat:hover { border-color: #b9c8ea; box-shadow: 0 14px 30px -22px rgba(2, 42, 153, 0.45); transform: translateY(-1px); }
.sp-stat__label { font-size: 13px; color: var(--muted); }
.sp-stat__value { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.sp-stat__hint { font-size: 12px; color: var(--brand); }
.sp-stat--warn { border-color: #f7d7a8; background: linear-gradient(160deg, #fff8ec, #fff 60%); }
.sp-stat--warn .sp-stat__value { color: #c2700c; }
.sp-stat--muted .sp-stat__value { color: #8a94a8; }

.sp-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.sp-side { position: sticky; top: 16px; }
@media (max-width: 1180px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-side { position: static; display: flex; flex-direction: column; align-items: center; }
}
.sp-work {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px -24px rgba(1, 18, 74, 0.35);
}
.sp-sec { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.sp-sec__head { margin-bottom: 14px; }
.sp-sec__head h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.sp-sec__head p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.sp-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.sp-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; }
.sp-label-row .sp-label { margin: 0; }
.sp-count { font-size: 12px; color: #9aa6bd; margin-left: auto; }
.sp-textarea, .sp-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.sp-textarea { padding: 12px 14px; line-height: 1.7; resize: vertical; }
.sp-input { height: 40px; padding: 0 14px; }
.sp-textarea:focus, .sp-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.1); }
.sp-banner-field { max-width: 520px; }
.sp-url-row { display: flex; gap: 10px; align-items: center; }
.sp-url-row .sp-input { flex: 1; }
.sp-warn { margin: 10px 0 0; font-size: 13px; color: #c2410c; }
.sp-warn[hidden] { display: none; }
.sp-muted { margin: 0; font-size: 13px; color: var(--muted); }
.sp-deposit { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sp-deposit__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5f8ff;
  border: 1px solid #dbe5fb;
  font-size: 13px;
  color: var(--ink);
}
.sp-deposit__chip em { font-style: normal; font-size: 11px; color: var(--muted); }
.sp-deposit__chip strong { color: #c2700c; }
.sp-savebar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-radius: 0 0 18px 18px;
  z-index: 3;
}
.sp-savebar__msg { margin-right: auto; font-size: 13px; color: var(--muted); }

/* 手机预览里的申请入驻页 */
.sp-screen { background: #f4f6fa; padding-bottom: 12px; }
.sp-pv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  background: linear-gradient(160deg, #011b66, #022a99);
  color: #fff;
  font-size: 14px;
}
.sp-pv-nav span { width: 16px; font-size: 18px; }
.sp-pv-banner {
  height: 150px;
  background: linear-gradient(140deg, #1f5ad6, #3e86e6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
  gap: 6px;
}
.sp-pv-banner strong { font-size: 20px; }
.sp-pv-banner span { font-size: 11px; opacity: 0.8; }
.sp-pv-banner.has-img { padding: 0; }
.sp-pv-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-pv-intro {
  margin: 10px 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  line-height: 1.7;
  color: #4a5a75;
  white-space: pre-wrap;
}
.sp-pv-intro.is-empty { color: #b4bccb; font-style: italic; }
.sp-pv-form { margin: 10px 12px 0; padding: 4px 14px; border-radius: 12px; background: #fff; }
.sp-pv-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 12px; color: #1a2842; }
.sp-pv-row + .sp-pv-row { border-top: 1px solid #f0f2f7; }
.sp-pv-row i { width: 90px; height: 8px; border-radius: 4px; background: #eef1f6; }
.sp-pv-submit {
  margin: 8px 6px 4px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #011b66, #022a99);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.sp-pv-modal {
  position: absolute;
  inset: 12px;
  border-radius: 30px;
  background: rgba(1, 18, 74, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  cursor: pointer;
  z-index: 4;
}
.sp-pv-modal[hidden] { display: none; }
.sp-pv-modal__card {
  width: 100%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}
.sp-pv-modal__card strong { text-align: center; font-size: 15px; color: #1a2842; }
.sp-pv-modal__text { overflow-y: auto; font-size: 12px; line-height: 1.75; color: #4a5a75; white-space: pre-wrap; }
.sp-pv-modal__btn {
  text-align: center;
  padding: 9px 0;
  border-radius: 999px;
  background: #022a99;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   优惠券后台（2026-11-15）：列表单元格、发布表单（分区 + 右侧预览）、卡片式单选
   ========================================================================== */
.cp-name-cell, .cp-face-cell, .cp-status-cell { display: flex; flex-direction: column; gap: 3px; }
.cp-name-cell strong { font-size: 14px; color: var(--ink); }
.cp-name-cell small, .cp-face-cell small { font-size: 12px; color: var(--muted); }
.cp-face-cell strong { font-size: 15px; color: #e8542f; }
.cp-reject { font-size: 12px; color: #c0392b; max-width: 220px; }
.cp-claim-cell { display: flex; flex-direction: column; gap: 5px; min-width: 90px; }
.cp-claim-bar { display: block; height: 5px; border-radius: 3px; background: #eef1f6; overflow: hidden; }
.cp-claim-bar b { display: block; height: 100%; background: linear-gradient(90deg, #3e86e6, #022a99); border-radius: 3px; }

.cp-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .cp-form-layout { grid-template-columns: 1fr; } }
.cp-form-aside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.cp-prev-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.cp-prev-ticket {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f3d6c8;
  box-shadow: 0 16px 34px -26px rgba(232, 84, 47, 0.6);
}
.cp-prev-ticket__left {
  flex: 0 0 110px;
  background: linear-gradient(135deg, #ff8a5b, #e8542f);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 8px;
  position: relative;
}
.cp-prev-ticket__left::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 0;
  bottom: 0;
  width: 12px;
  background: radial-gradient(circle at 6px 8px, #fff 4px, transparent 5px) 0 0 / 12px 16px repeat-y;
}
.cp-prev-ticket__left strong { font-size: 24px; font-weight: 800; }
.cp-prev-ticket__left small { font-size: 12px; opacity: 0.9; }
.cp-prev-ticket__mid { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.cp-prev-ticket__mid strong { font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-prev-ticket__mid small { font-size: 12px; color: var(--muted); }
.cp-prev-src { align-self: flex-start; font-size: 11px; padding: 1px 8px; border-radius: 6px; background: rgba(2, 42, 153, 0.08); color: var(--brand); }
.cp-prev-summary {
  margin: 0;
  padding: 14px 16px 14px 32px;
  border-radius: 14px;
  background: #f7f9fd;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #4a5a75;
}

.cp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.cp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cp-chip strong { font-size: 14px; color: var(--ink); }
.cp-chip small { font-size: 12px; color: var(--muted); }
.cp-chip:hover { border-color: #b9c8ea; }
.cp-chip.is-on { border-color: var(--brand); background: #f3f6fe; box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.08); }
.cp-chip.is-on strong { color: var(--brand); }

.cp-form .coupon-picker { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfcfe; }
.coupon-picker__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.coupon-picker__bar .coupon-picker__search { flex: 1; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; }
.coupon-picker__count { font-size: 13px; color: var(--brand); white-space: nowrap; }
.cp-form .coupon-picker__list { max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.cp-form .coupon-picker__item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; cursor: pointer; }
.cp-form .coupon-picker__item:hover { background: #fff; border-color: var(--line); }
.cp-form .coupon-picker__item.is-on { background: #f3f6fe; border-color: #c9d6f2; color: var(--brand); }
/* 表单字段的 hidden 属性要真正隐藏（kt-form-field 自带 display 会盖掉它） */
.kt-form-field[hidden] { display: none !important; }

/* ==========================================================================
   评价管理（平台 / 商家共用，2026-11-16）
   ========================================================================== */
.rv-page { display: flex; flex-direction: column; gap: 16px; }
.rv-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .rv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rv-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -24px rgba(1, 18, 74, 0.4);
}
.rv-stat__label { font-size: 13px; color: var(--muted); }
.rv-stat__value { font-size: 24px; font-weight: 700; color: var(--ink); }
.rv-stat__hint { font-size: 12px; color: #8a94a8; }
.rv-stat--ok .rv-stat__value { color: #17946a; }
.rv-stat--bad .rv-stat__value { color: #d2553f; }
.rv-stat--warn { border-color: #f7d7a8; background: linear-gradient(160deg, #fff8ec, #fff 60%); }
.rv-stat--warn .rv-stat__value { color: #c2700c; }

.rv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.rv-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f1f4fa; }
.rv-tab { border: 0; background: transparent; padding: 7px 16px; border-radius: 9px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.rv-tab.is-on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 2px 8px -4px rgba(1, 18, 74, 0.3); }
.rv-bar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-bar__right .filter-control-shell { min-width: 150px; }
.rv-bar__right input[type="search"] { min-width: 240px; }

.rv-list { display: flex; flex-direction: column; gap: 12px; }
.rv-empty { margin: 0; padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; background: #fff; border-radius: 14px; border: 1px dashed var(--line); }
.rv-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 130px;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
@media (max-width: 1000px) { .rv-card { grid-template-columns: 1fr; } }
.rv-card.is-bad { border-left: 4px solid #e8542f; }
.rv-card.is-hidden { opacity: 0.72; background: #fafbfd; }
.rv-goods { display: flex; gap: 12px; min-width: 0; }
.rv-goods__pic {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #f1f4fa;
  flex-shrink: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9aa6bd;
}
.rv-goods__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-goods__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rv-goods__info strong { font-size: 14px; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rv-goods__info small { font-size: 12px; color: var(--muted); }
.rv-shop { color: var(--brand) !important; }
.rv-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-body__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.rv-stars i { font-style: normal; color: #dde2ec; font-size: 15px; letter-spacing: 1px; }
.rv-stars i.is-on { color: #f5a524; }
.rv-score-text { color: #b4570f; font-weight: 600; }
.rv-user { color: var(--ink); }
.rv-time { color: #9aa6bd; margin-left: auto; }
.rv-content { margin: 0; font-size: 14px; line-height: 1.7; color: #1a2842; white-space: pre-wrap; word-break: break-word; }
.rv-reply { padding: 10px 14px; border-radius: 10px; background: #f5f8ff; border-left: 3px solid var(--brand); }
.rv-reply strong { font-size: 12px; color: var(--brand); }
.rv-reply p { margin: 4px 0; font-size: 13px; line-height: 1.6; color: #34405a; white-space: pre-wrap; }
.rv-reply small { font-size: 12px; color: #9aa6bd; }
.rv-hidden-tip { padding: 8px 12px; border-radius: 8px; background: #fff4f2; color: #b4382a; font-size: 12px; }
.rv-ops { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rv-ops__hint { font-size: 12px; color: #9aa6bd; }
.rv-pager { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; color: var(--muted); }
.rv-tpls { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.rv-tpl {
  text-align: left;
  border: 1px dashed #c9d6f2;
  background: #f8faff;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  color: #34405a;
  cursor: pointer;
}
.rv-tpl:hover { border-color: var(--brand); color: var(--brand); }

/* ===== 协议管理（2026-11-17）：左列表 + 右编辑 ===== */
.agr-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
.agr-loading { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--muted); font-size: 14px; }
.agr-side { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; position: sticky; top: 0; }
.agr-side-head { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 6px 12px; }
.agr-side-head strong { font-size: 15px; color: var(--ink); }
.agr-side-head span { font-size: 12px; color: var(--muted); }
.agr-list { display: flex; flex-direction: column; gap: 6px; }
.agr-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: background .15s, border-color .15s; }
.agr-item:hover { background: #f5f7fc; }
.agr-item.is-active { background: #eef2fd; border-color: #c9d5f6; }
.agr-item-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #e9eefb; color: var(--brand); font-weight: 700; font-size: 15px; }
.agr-item.is-active .agr-item-ico { background: var(--brand); color: #fff; }
.agr-item-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.agr-item-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.agr-item-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.agr-item-meta { font-size: 12px; color: #9aa3b5; }
.agr-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.agr-main { background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; min-height: 560px; }
.agr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
#extra .agr-head-title, .agr-head-title { display: flex; align-items: center; gap: 10px; width: auto; margin: 0; font-size: 18px; color: var(--ink); }
.agr-code { font-size: 12px; font-weight: 500; color: var(--brand); background: #eef2fd; border-radius: 6px; padding: 2px 8px; font-family: Consolas, monospace; }
.agr-head-sub { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.agr-tabs { flex: none; display: flex; padding: 3px; background: #f1f4f9; border-radius: 10px; }
.agr-tab { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.agr-tab.is-on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 32, 80, .12); }

.agr-pane { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 20px 24px; }
.agr-pane[hidden] { display: none; }
.agr-field { display: flex; flex-direction: column; gap: 8px; }
.agr-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--ink); }
.agr-count { font-style: normal; font-weight: 400; font-size: 12px; color: #9aa3b5; }
.agr-count.is-warn { color: var(--coral); }
.agr-input, .agr-textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; font: inherit; font-size: 14px; color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s; }
.agr-input { height: 40px; padding: 0 12px; max-width: 420px; }
.agr-textarea { min-height: 380px; padding: 12px 14px; line-height: 1.8; resize: vertical; }
.agr-input:focus, .agr-textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(2, 42, 153, .1); }
.agr-hint { font-size: 12px; color: var(--muted); }

.agr-preview-wrap { align-items: center; background: #f4f6fa; }
.agr-phone { width: 360px; max-width: 100%; height: 560px; background: #fff; border-radius: 28px; border: 8px solid #1a2842; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 16px 40px -20px rgba(16, 32, 80, .45); }
.agr-phone-bar { flex: none; padding: 14px 16px; text-align: center; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line); }
.agr-phone-body { flex: 1; overflow-y: auto; padding: 16px 18px; font-size: 14px; line-height: 1.8; color: #3a4459; }
.agr-phone-body p { margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; }
.agr-phone-empty { color: #9aa3b5; text-align: center; padding-top: 40px; }

.agr-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 16px 16px; }
.agr-status { font-size: 13px; color: var(--muted); }
.agr-status.is-dirty { color: #b7791f; font-weight: 600; }
.agr-actions { display: flex; gap: 10px; }
.agr-btn { height: 36px; padding: 0 18px; border-radius: 10px; font: inherit; font-size: 14px; cursor: pointer; border: 1px solid transparent; }
.agr-btn:disabled { opacity: .45; cursor: not-allowed; }
.agr-btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.agr-btn-ghost:not(:disabled):hover { border-color: #c9d5f6; color: var(--brand); }
.agr-btn-primary { background: var(--brand); color: #fff; min-width: 96px; }
.agr-btn-primary:not(:disabled):hover { background: var(--navy); }

@media (max-width: 960px) {
  .agr-shell { grid-template-columns: 1fr; }
  .agr-side { position: static; }
}

/* ===== 运营维护（联系我们）+ 意见反馈（2026-11-17） ===== */
.ops-wrap { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.ops-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 12px; background: #fff8eb; border: 1px solid #f6dfb0; }
.ops-notice[hidden] { display: none; }
.ops-notice-text { font-size: 14px; color: #8a5a00; font-weight: 600; }
.ops-notice-btn { border: 0; background: transparent; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ops-grid { display: grid; grid-template-columns: minmax(0, 960px); gap: 20px; align-items: start; }
.ops-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; }
.ops-card-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
#extra .ops-card-title, .ops-card-title { width: auto; margin: 0; font-size: 18px; color: var(--ink); }
.ops-card-sub { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ops-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 20px 24px; }
.ops-card-body .agr-field { grid-column: 1 / -1; }
.ops-card-body .ops-field-half { grid-column: auto; }
.ops-card-body .ops-field-half:nth-child(3) { grid-column: 1 / -1; }
.ops-input { max-width: none; }
.ops-about { min-height: 120px; }
.ops-req { font-style: normal; color: var(--coral); margin-left: 4px; }
.ops-preview { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ops-preview-label { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--muted); }
.ops-phone { width: 100%; height: 600px; }
.ops-phone-body { background: #f4f6fa; padding: 14px; }
.ops-pv-hero { background: linear-gradient(135deg, #011b66, #022a99); color: #fff; border-radius: 14px; padding: 18px 16px; margin-bottom: 12px; }
.ops-pv-hero strong { font-size: 16px; }
.ops-pv-hero p { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .85); white-space: pre-wrap; }
.ops-pv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ops-pv-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ops-pv-k { font-size: 12px; color: var(--muted); }
.ops-pv-v { font-size: 14px; color: var(--ink); word-break: break-all; }
.ops-pv-act { flex: none; font-size: 12px; color: var(--brand); background: #eef2fd; border-radius: 999px; padding: 4px 12px; }

.fb-wrap { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.fb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fb-tabs .agr-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; }
.fb-tab-n { font-style: normal; font-size: 12px; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #e3e8f2; color: var(--muted); text-align: center; }
.fb-tab-n:empty { display: none; }
.agr-tab.is-on .fb-tab-n { background: var(--brand); color: #fff; }
.fb-search { width: 280px; max-width: 100%; }
.fb-list { display: flex; flex-direction: column; gap: 12px; }
.fb-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.fb-card.is-pending { border-left: 3px solid var(--gold); }
.fb-head { display: flex; align-items: center; gap: 12px; }
.fb-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #e9eefb; color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fb-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fb-who strong { font-size: 14px; color: var(--ink); }
.fb-who span { font-size: 12px; color: var(--muted); }
.fb-pill { flex: none; width: fit-content; font-size: 12px; border-radius: 999px; padding: 3px 10px; }
.fb-pill.is-pending { background: #fff4de; color: #9a6400; }
.fb-pill.is-done { background: #e6f6ee; color: #18794e; }
.fb-content { margin: 12px 0 0 50px; font-size: 14px; line-height: 1.75; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.fb-reply { margin: 12px 0 0 50px; padding: 12px 14px; border-radius: 10px; background: #f5f7fc; }
.fb-reply-k { font-size: 12px; color: var(--brand); font-weight: 600; }
.fb-reply p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: #3a4459; white-space: pre-wrap; }
.fb-reply-box { margin: 14px 0 0 50px; display: flex; flex-direction: column; gap: 8px; }
.fb-reply-input { min-height: 72px; }
.fb-reply-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.fb-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 0; background: #fff; border: 1px dashed var(--line); border-radius: 14px; }
.fb-empty strong { font-size: 15px; color: var(--ink); }
.fb-empty span { font-size: 13px; color: var(--muted); }

@media (max-width: 1100px) {
  .ops-grid { grid-template-columns: 1fr; }
  .ops-preview { position: static; }
  .ops-card-body { grid-template-columns: 1fr; }
}

/* ===== 权限管理（2026-11-17）：管理员 / 角色 / 日志 / 商家账号 ===== */
.nav .item[hidden], .nav .group[hidden] { display: none !important; }
.pa-denied { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 80px 20px; background: #fff; border: 1px dashed var(--line); border-radius: 16px; margin-top: 8px; }
.pa-denied strong { font-size: 17px; color: var(--ink); }
.pa-denied span { font-size: 13px; color: var(--muted); }
.pa-page { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.pa-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.pa-tab { border: 0; background: transparent; padding: 10px 18px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pa-tab:hover { color: var(--ink); }
.pa-tab.is-on { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.pa-body { display: flex; flex-direction: column; gap: 14px; }
.pa-loading { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.pa-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pa-stats:empty { display: none; }
.pa-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.pa-stat strong { font-size: 22px; color: var(--ink); }
.pa-stat span { font-size: 12px; color: var(--muted); }
.pa-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pa-bar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pa-bar-note { margin: 0; font-size: 13px; color: var(--muted); }
.pa-input { height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; color: var(--ink); box-sizing: border-box; }
.pa-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, .1); }
.pa-input:disabled { background: #f4f6fa; color: var(--muted); }
.pa-search { width: 220px; }
.pa-select { min-width: 120px; }
.pa-range { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pa-date { width: 150px; }
.pa-btn { height: 36px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.pa-btn:hover { border-color: #c9d5f6; color: var(--brand); }
.pa-btn:disabled { opacity: .5; cursor: not-allowed; }
.pa-btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.pa-btn--primary:hover { background: var(--navy); color: #fff; }
.pa-btn--soft { background: #eef2fd; border-color: #eef2fd; color: var(--brand); }
.pa-btn--danger { border-color: #f6c9c4; color: #c0392b; background: #fff; }
.pa-btn--danger:hover { background: #fff1ef; color: #c0392b; border-color: #f0b0a8; }
.pa-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pa-scroll { overflow-x: auto; }
.pa-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pa-table th { text-align: left; font-weight: 600; color: var(--muted); background: #f8fafd; padding: 12px 16px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.pa-table td { padding: 14px 16px; border-bottom: 1px solid #eef1f6; color: var(--ink); vertical-align: middle; }
.pa-table tbody tr:last-child td { border-bottom: 0; }
.pa-table tbody tr:hover { background: #fafbfe; }
.pa-strong { font-weight: 600; }
.pa-muted { color: #9aa3b5; font-size: 12px; }
.pa-mono { font-family: Consolas, monospace; font-size: 12px; color: #4a5568; white-space: nowrap; }
.pa-two span, .pa-two em { display: block; }
.pa-two em { font-style: normal; font-size: 12px; color: #9aa3b5; margin-top: 3px; }
.pa-action { max-width: 520px; }
.pa-danger-text { color: #c0392b; }
.pa-pill { display: inline-block; width: fit-content; max-width: 100%; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 999px; margin: 2px 4px 2px 0; white-space: nowrap; }
.pa-pill--brand { background: #eef2fd; color: var(--brand); }
.pa-pill--gold { background: #fff4de; color: #9a6400; }
.pa-pill--ok { background: #e6f6ee; color: #18794e; }
.pa-pill--danger { background: #fdecea; color: #c0392b; }
.pa-pill--muted { background: #f1f4f9; color: #5b6478; }
td.pa-strong .pa-pill { margin-left: 6px; }
.pa-mods b { font-weight: 600; margin-right: 6px; }
.pa-ops { white-space: nowrap; }
.pa-link { border: 0; background: transparent; padding: 4px 6px; font: inherit; font-size: 13px; color: var(--brand); cursor: pointer; }
.pa-link:hover { text-decoration: underline; }
.pa-link--danger { color: #c0392b; }
.pa-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 20px; color: var(--muted); font-size: 14px; }
.pa-empty strong { color: var(--ink); font-size: 15px; }
.pa-empty span { font-size: 13px; }
.pa-list-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pa-card > .pager { padding: 12px 16px; border-top: 1px solid var(--line); }

.pa-modal { width: 560px; max-width: calc(100vw - 32px); }
.pa-modal--wide { width: 760px; }
.pa-form { display: flex; flex-direction: column; gap: 16px; }
.pa-field { display: flex; flex-direction: column; gap: 6px; }
.pa-field[hidden] { display: none; }
.pa-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.pa-req { font-style: normal; color: var(--coral); margin-left: 4px; }
.pa-hint { font-size: 12px; color: var(--muted); }
.pa-field .pa-input { height: 40px; width: 100%; background: #f7f9fc; }
.pa-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pa-check--super { background: #fffaf0; border-color: #f6dfb0; }
.pa-check input { margin-top: 3px; }
.pa-check span, .pa-role-opt span { display: flex; flex-direction: column; gap: 2px; }
.pa-check strong, .pa-role-opt strong { font-size: 14px; color: var(--ink); }
.pa-check em, .pa-role-opt em { font-style: normal; font-size: 12px; color: var(--muted); }
.pa-role-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pa-role-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pa-role-opt:has(input:checked) { border-color: var(--brand); background: #f5f8ff; }
.pa-role-opt.is-disabled { opacity: .5; cursor: not-allowed; }
.pa-role-opt input { margin-top: 3px; }
.pa-radios { display: flex; gap: 20px; }
.pa-radio { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.pa-mod-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pa-mod-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f8fafd; border-bottom: 1px solid var(--line); }
.pa-mod-count { flex: 1; font-size: 13px; color: var(--ink); font-weight: 600; }
.pa-mod-groups { max-height: 46vh; overflow-y: auto; padding: 6px 14px 12px; }
.pa-mod-group { padding: 10px 0; border-bottom: 1px dashed #eef1f6; }
.pa-mod-group:last-child { border-bottom: 0; }
.pa-mod-ghead { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; margin-bottom: 8px; }
.pa-mod-items { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 22px; }
.pa-mod-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: pointer; background: #fff; }
.pa-mod-item:has(input:checked) { border-color: var(--brand); background: #f5f8ff; color: var(--brand); }
.pa-mod-item.is-disabled { opacity: .45; cursor: not-allowed; }
.pa-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .pa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-role-pick { grid-template-columns: 1fr; }
}
.pa-tabs .pa-tab { height: auto; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 10px 18px; }
.pa-tabs .pa-tab:hover { border-color: transparent; color: var(--ink); }
.pa-tabs .pa-tab.is-on { border-bottom-color: var(--brand); color: var(--brand); }
.pa-modal .console-modal-body, .pa-modal .kt-modal__body { padding: 20px 24px 0; }
.pa-modal .pa-modal-foot { position: sticky; bottom: 0; z-index: 1; background: #fff; margin: 20px -24px 0; padding: 14px 24px; }
.pa-modal--wide .pa-mod-groups { max-height: 34vh; }

/* ===== 账单管理（商家端导入 + 账单列表，2026-11-17） ===== */
.mb-import { display: flex; flex-direction: column; gap: 18px; padding: 18px 24px 20px; }
.mb-type-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mb-type-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.mb-type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-type-chip { height: 34px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; transition: all .15s; }
.mb-type-chip:hover { border-color: #c9d5f6; color: var(--brand); }
.mb-type-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.mb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; align-items: start; }
.mb-grid .mb-field { min-width: 0; }
.mb-grid .mb-span-2 { grid-column: span 2; }
.mb-grid .mb-span-4 { grid-column: 1 / -1; }
.mb-hint { margin: 6px 0 0; font-size: 12px; color: #9aa3b5; line-height: 1.4; }
.mb-period-info { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 18px; margin-top: 26px; height: 42px; border-radius: 10px; background: #f5f8ff; border: 1px dashed #c9d5f6; }
.mb-period-info:empty { visibility: hidden; }
.mb-period-info strong { font-size: 15px; color: var(--brand); }
.mb-period-info span { font-size: 12px; color: var(--muted); }
.mb-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mb-footer__left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mb-note { margin: 0; font-size: 12px; color: var(--muted); }
.mb-msg { margin: 0; font-size: 13px; color: #c0392b; }
.mb-msg:empty { display: none; }

.mb-batch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px 12px; }
.mb-batch__left { display: flex; align-items: center; gap: 12px; }
.mb-batch__count { font-size: 13px; color: var(--muted); }
.mb-batch__count.is-on { color: var(--brand); font-weight: 600; }
.mb-batch__danger:not(:disabled) { color: #c0392b; }
.mb-batch button:disabled { opacity: .45; cursor: not-allowed; }
.mb-table { table-layout: fixed; min-width: 1520px; }
.mb-table td:nth-child(4) { white-space: nowrap; }
/* 操作列固定在右侧：表格横向滚动时按钮也一直看得到 */
.mb-table th:last-child, .mb-table td:last-child { position: sticky; right: 0; z-index: 1; background: #fff; box-shadow: -8px 0 12px -10px rgba(15, 23, 42, .25); }
.mb-table thead th:last-child { background: #f6f8fc; }
.mb-table th, .mb-table td { vertical-align: middle; }
.mb-table th:first-child, .mb-table td:first-child { text-align: center; padding-left: 8px; padding-right: 8px; }
.mb-check { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--brand); }
.mb-check:disabled { cursor: not-allowed; opacity: .4; }
.mb-ellipsis { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-mono { font-family: Consolas, monospace; font-size: 12px; color: #4a5568; }
.mb-title { font-weight: 600; color: var(--ink); }
.mb-addr { color: #4a5568; }
.mb-two { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.mb-two em { font-style: normal; font-size: 12px; color: #9aa3b5; }
.mb-amount { color: #e8542f; font-weight: 700; white-space: nowrap; }
.mb-muted { color: #9aa3b5; }
.mb-table td:last-child .kt-realname-actions { display: flex; flex-wrap: nowrap; gap: 6px; white-space: nowrap; }

@media (max-width: 1200px) {
  .mb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-grid .mb-span-2 { grid-column: 1 / -1; }
}

/* 优惠券规则说明弹窗（2026-11-17） */
.cp-rules-input { min-height: 180px; }
.cp-rules-preview { margin: 0; padding: 12px 16px 12px 34px; border-radius: 12px; background: #f7f9fc; border: 1px solid var(--line); font-size: 13px; line-height: 1.8; color: #4a5568; }
.cp-rules-preview:empty::before { content: "（还没有规则）"; color: #9aa3b5; margin-left: -18px; }

/* ===== 商城订单 / 售后（2026-11-17）：Tab 数量、超时、操作记录、平台判定弹窗 ===== */
.section-tabs__item .kt-tab-count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #e3e8f2; color: #5b6478; font-style: normal; font-size: 11px; line-height: 18px; font-weight: 600; text-align: center; }
.section-tabs__item .kt-tab-count.is-hot { background: #ff6b5b; color: #fff; }
.section-tabs__item.is-active .kt-tab-count:not(.is-hot) { background: var(--brand); color: #fff; }
.kt-order-overdue { display: block; margin-top: 4px; font-size: 12px; color: #c0392b; font-weight: 600; }
.kt-order-cell .pill + .kt-order-cell__sub { margin-top: 4px; }
.kt-btn--danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.kt-btn--danger:hover { background: #a93226; }
.kt-btn-danger-text { color: #c0392b !important; }
.kt-order-modal-lead { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: #4a5568; }
.kt-order-decide-info { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: #f7f9fc; border: 1px solid var(--line); font-size: 13px; color: var(--ink); line-height: 1.6; }
.kt-order-decide-radios { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.kt-order-decide-radio { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer; }
.kt-order-decide-radio:has(input:checked) { border-color: var(--brand); background: #f5f8ff; }
.kt-order-logs { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.kt-order-logs::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: #e6ebf3; }
.kt-order-logs__item { position: relative; padding: 0 0 16px 28px; }
.kt-order-logs__item::before { content: ""; position: absolute; left: 4px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #9aa3b5; box-sizing: border-box; }
.kt-order-logs__item.is-user::before { border-color: #3d63d6; }
.kt-order-logs__item.is-merchant::before { border-color: #f5a524; }
.kt-order-logs__item.is-platform::before { border-color: #c0392b; }
.kt-order-logs__item.is-system::before { border-color: #9aa3b5; }
.kt-order-logs__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.kt-order-logs__head strong { color: var(--ink); }
.kt-order-logs__head time { font-size: 12px; color: #9aa3b5; margin-left: auto; }
.kt-order-logs__actor { font-size: 12px; color: var(--muted); background: #f1f4f9; border-radius: 6px; padding: 1px 8px; }
.kt-order-logs__item.is-platform .kt-order-logs__actor { background: #fdeeec; color: #c0392b; }
.kt-order-logs__item.is-merchant .kt-order-logs__actor { background: #fff6e5; color: #9a6400; }
.kt-order-logs__item.is-user .kt-order-logs__actor { background: #eef2fd; color: var(--brand); }
.kt-order-logs__note { margin: 4px 0 0; font-size: 13px; color: #4a5568; line-height: 1.6; }

/* 订单列表「商品类型」标签：普通蓝 / 二手橙 / 技术服务绿 */
.kt-line-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.kt-line-tag--normal { background: #eef2fd; color: var(--brand); border-color: #d5def8; }
.kt-line-tag--used { background: #fff6e5; color: #9a6400; border-color: #f8e0b0; }
.kt-line-tag--service { background: #e8f7ef; color: #18794e; border-color: #c9ecd8; }

/* 订单列表「售后」列：状态胶囊 + 类型小字 + 超时红字，纵向排列 */
.kt-order-aftersale { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.kt-order-aftersale .kt-order-cell__sub { margin: 0; }
.kt-order-aftersale .kt-order-overdue { margin-top: 0; }

/* ===== 商城订单详情（2026-11-17 重新设计）：状态卡 + 进度 + 两栏 ===== */
.od-page { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.od-hero { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px 22px; position: relative; overflow: hidden; }
.od-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--brand); }
.od-hero.is-unpaid::before, .od-hero.is-pending_delivery::before, .od-hero.is-refunding::before { background: #f5a524; }
.od-hero.is-completed::before { background: #18a058; }
.od-hero.is-closed::before { background: #9aa3b5; }
.od-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.od-hero__main { min-width: 0; flex: 1; }
.od-back { border: 0; background: transparent; padding: 0; margin-bottom: 10px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.od-back:hover { color: var(--brand); }
.od-hero__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.od-hero__status { font-size: 24px; color: var(--ink); letter-spacing: .02em; }
.od-hero.is-closed .od-hero__status { color: #5b6478; }
.od-flag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #fdeeec; color: #c0392b; font-weight: 600; }
.od-hero__desc { margin: 8px 0 0; font-size: 14px; color: #4a5568; }
.od-hero__meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: #9aa3b5; }
.od-hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.od-hero__amount-k { font-size: 12px; color: var(--muted); }
.od-hero__amount { font-size: 26px; color: #e8542f; font-family: "DM Sans", Arial, sans-serif; }
.od-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }
.od-steps { display: flex; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.od-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.od-step + .od-step::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: #e6ebf3; z-index: 0; }
.od-step.is-done + .od-step.is-done::before { background: var(--brand); }
.od-step__dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #fff; border: 2px solid #d5dbe7; color: #9aa3b5; }
.od-step.is-done .od-step__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.od-step.is-current .od-step__dot { box-shadow: 0 0 0 5px rgba(2, 42, 153, .14); }
.od-step.is-closed .od-step__dot { background: #9aa3b5; border-color: #9aa3b5; }
.od-step__label { font-size: 13px; color: #9aa3b5; font-weight: 600; }
.od-step.is-done .od-step__label { color: var(--ink); }
.od-step__time { font-size: 12px; color: #9aa3b5; min-height: 16px; }
.od-alert { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #fff8eb; border: 1px solid #f6dfb0; }
.od-alert.is-danger { background: #fff1ef; border-color: #f7cfc8; }
.od-alert__text { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #6b4f00; line-height: 1.6; }
.od-alert.is-danger .od-alert__text { color: #9b2c1f; }
.od-alert__text strong { font-size: 14px; }
.od-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.od-main, .od-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.od-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.od-card__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #eef1f6; }
#extra .od-card__title, .od-card__title { width: auto; margin: 0; font-size: 15px; color: var(--ink); }
.od-card__extra { font-size: 12px; color: var(--muted); }
.od-card__body { padding: 14px 20px 18px; }
.od-goods__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 140px 110px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f4f9; }
.od-goods__row:last-child { border-bottom: 0; }
.od-goods__pic { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #eef2fa; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #9aa3b5; }
.od-goods__pic img { width: 100%; height: 100%; object-fit: cover; }
.od-goods__title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.od-goods__sku { margin-top: 4px; font-size: 12px; color: var(--muted); }
.od-goods__price { font-size: 13px; color: #4a5568; text-align: right; }
.od-goods__sum { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.od-fee { margin-top: 8px; margin-left: auto; width: min(360px, 100%); padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.od-fee__row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: #4a5568; }
.od-fee__row.is-off span:last-child { color: #18794e; }
.od-fee__row.is-total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink); }
.od-fee__row.is-total span:last-child { color: #e8542f; font-size: 18px; }
.od-kv { display: flex; gap: 12px; padding: 7px 0; font-size: 13px; line-height: 1.6; }
.od-kv__k { flex: none; width: 72px; color: var(--muted); }
.od-kv__v { flex: 1; min-width: 0; color: var(--ink); word-break: break-all; }
.od-kv__v.is-mono { font-family: Consolas, monospace; }
.od-kv__v.is-strong { font-weight: 600; }
.od-copy { margin-left: 8px; border: 0; background: #eef2fd; color: var(--brand); font: inherit; font-size: 11px; padding: 1px 8px; border-radius: 6px; cursor: pointer; vertical-align: 1px; }
.od-empty { margin: 0; padding: 6px 0; font-size: 13px; color: #9aa3b5; }
.od-refund { padding: 12px 14px; border: 1px solid #eef1f6; border-radius: 12px; background: #fafbfe; }
.od-refund + .od-refund { margin-top: 10px; }
.od-refund__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.od-refund__head strong { font-size: 14px; color: var(--ink); }
.od-refund__head time { margin-left: auto; font-size: 12px; color: #9aa3b5; }
.od-refund__kv .od-kv { padding: 4px 0; }
.od-stars { font-size: 18px; color: #d5dbe7; letter-spacing: 2px; }
.od-stars .is-on { color: #f5a524; }
.od-review { margin: 6px 0 4px; font-size: 13px; line-height: 1.7; color: #4a5568; }
.od-review__time { font-size: 12px; color: #9aa3b5; }
@media (max-width: 1280px) {
  .od-grid { grid-template-columns: 1fr; }
}

/* 二级页面统一返回按钮：固定在大标题左边（2026-11-17） */
.page-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.page-title-row #page-title { margin: 0; }
.page-back { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.page-back span { font-size: 22px; line-height: 1; margin-top: -2px; }
.page-back:hover { border-color: var(--brand); color: var(--brand); background: #f5f8ff; }
.page-back[hidden] { display: none; }

/* 订单详情：顶部售后状态标签 + 退款摘要；售后记录定位高亮 */
.od-refund-tag { border: 1px solid transparent; border-radius: 6px; padding: 2px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; background: #f1f4f9; color: #5b6478; }
.od-refund-tag.is-ok { background: #e8f7ef; border-color: #c9ecd8; color: #18794e; }
.od-refund-tag.is-wait { background: #fff6e5; border-color: #f8e0b0; color: #9a6400; }
.od-refund-tag.is-bad { background: #fdeeec; border-color: #f7d0ca; color: #c0392b; }
.od-refund-tag:hover { filter: brightness(.97); text-decoration: underline; }
.od-hero__refund { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: #f7f9fc; border: 1px solid #eef1f6; font-size: 13px; width: fit-content; max-width: 100%; }
.od-hero__refund-k { color: var(--muted); }
.od-hero__refund strong { color: #e8542f; font-size: 15px; }
.od-hero__refund-v { color: #4a5568; }
.od-link { border: 0; background: transparent; padding: 0; font: inherit; font-size: 13px; color: var(--brand); cursor: pointer; font-weight: 600; }
.od-link:hover { text-decoration: underline; }
.od-refund__head .od-link { margin-left: 12px; font-size: 12px; }
.od-refund { scroll-margin-top: 80px; transition: box-shadow .3s, border-color .3s; }
.od-refund.is-flash { animation: od-flash 1.6s ease; }
@keyframes od-flash { 0%, 60% { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(2, 42, 153, .14); } 100% { border-color: #eef1f6; box-shadow: none; } }

/* 订单 / 售后操作弹窗：内容留白、宽度收窄（2026-11-18） */
.kt-modal__dialog:has(.kt-order-ship-form) { width: min(600px, calc(100vw - 48px)); }
.kt-modal__body:has(> .kt-order-ship-form) { padding: 0; }
.kt-order-ship-form { padding: 20px 24px 22px; gap: 12px; min-width: 0; }
.kt-order-ship-form .kt-order-modal-lead { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff8eb; border: 1px solid #fde7c2; color: #8a5a12; }
.kt-order-ship-form .kt-order-decide-info { margin: 0; padding: 12px 14px; gap: 6px; }
.kt-order-ship-form .kt-order-decide-radios { margin: 0; }
.kt-order-ship-form .kt-field-label { margin-top: 4px; }
.kt-order-ship-form textarea.kt-input { min-height: 84px; padding: 10px 12px; resize: vertical; box-sizing: border-box; }
.kt-order-ship-form .form-note { margin: 0; min-height: 0; color: #c0392b; font-size: 13px; }
.kt-order-ship-form .form-note:empty { display: none; }
.kt-order-ship-form .kt-order-modal-foot { margin: 6px -24px -22px; padding: 14px 24px; border-top: 1px solid var(--line); background: #fafbfd; }
.kt-order-decide-radio input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }

/* 会员列表：信息更丰富的行（2026-11-18） */
.kt-mem-avatar--ring { position: relative; width: 40px; height: 40px; font-size: 16px; background-size: cover; background-position: center; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring, transparent); }
.kt-mem-avatar__wx { position: absolute; right: -4px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: #07c160; color: #fff; font-size: 9px; font-style: normal; font-weight: 700; line-height: 16px; text-align: center; border: 2px solid #fff; }
.kt-mem-who { gap: 12px; }
.kt-mem-who__name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.kt-mem-who__text { gap: 3px; }
.kt-mem-who__text > span { white-space: nowrap; }
.kt-mem-tag { flex: none; padding: 0 6px; height: 18px; line-height: 18px; border-radius: 5px; font-size: 11px; font-style: normal; font-weight: 600; }
.kt-mem-tag.is-shop { color: #0b6bcb; background: #e6f1fc; }
.kt-mem-tag.is-off { color: #c0392b; background: #fdecea; }
.kt-mem-lvcell { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; white-space: nowrap; }
.kt-mem-lvcell > span:not(.kt-mem-level) { font-size: 12px; color: var(--muted); }
.kt-mem-lvcell .is-warn { color: #c24134; font-weight: 600; }
.kt-mem-spent { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.kt-mem-spent strong { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.kt-mem-spent span { font-size: 12px; color: var(--muted); }
.kt-mem-spent.is-zero strong { color: #a0a8b8; font-weight: 600; }
.kt-mem-biz { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.kt-mem-biz__item { display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 5px 6px; }
.kt-mem-biz__item + .kt-mem-biz__item { border-left: 1px solid var(--line); }
.kt-mem-biz__item b { font-size: 14px; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.2; }
.kt-mem-biz__item i { font-size: 11px; font-style: normal; color: var(--muted); }
.kt-mem-biz__item.is-zero b { color: #b4bccb; font-weight: 600; }
.kt-mem-assets { display: flex; flex-wrap: wrap; gap: 5px; max-width: 190px; }
.kt-mem-asset { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: #f2f4f8; font-size: 12px; color: #64748b; white-space: nowrap; }
.kt-mem-asset i { font-style: normal; }
.kt-mem-asset b { font-weight: 600; color: #475569; }
.kt-mem-asset.is-on { background: #fff4e5; color: #b35c00; }
.kt-mem-asset.is-on b { color: #b35c00; }
.kt-mem-when { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.kt-mem-when strong { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.kt-mem-when span { font-size: 12px; color: var(--muted); }
.kt-mem-who { min-width: 220px; }

/* ===== 商家端 · 广告管理（2026-11-18） ===== */
.mad-page, .mad-form { display: flex; flex-direction: column; gap: 16px; }
.mad-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, #fff6e8 0%, rgba(255,246,232,0) 45%), linear-gradient(135deg, #f5f8ff 0%, #fff 70%); }
.mad-head__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mad-head__text strong { font-size: 17px; color: var(--ink); }
.mad-head__text span { font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 760px; }
.mad-head__acts { display: flex; gap: 10px; flex: none; }
.mad-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.mad-tab { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: #475569; cursor: pointer; transition: all .15s; }
.mad-tab em { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: #eef2f8; font-size: 12px; font-style: normal; line-height: 20px; text-align: center; color: #475569; }
.mad-tab em.is-bad { background: #fdecea; color: #c0392b; }
.mad-tab:hover { border-color: var(--brand); color: var(--brand); }
.mad-tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.mad-tab.is-on em { background: rgba(255,255,255,.22); color: #fff; }
.mad-list { display: flex; flex-direction: column; gap: 12px; }
.mad-empty { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.mad-empty.is-big { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 20px; border-style: dashed; }
.mad-empty.is-big strong { font-size: 16px; color: var(--ink); }
.mad-empty.is-big .kt-btn { margin-top: 8px; }
.mad-card { display: grid; grid-template-columns: 280px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow .15s, border-color .15s; }
.mad-card:hover { border-color: #d6def0; box-shadow: 0 10px 28px rgba(15, 23, 42, .06); }
.mad-card.is-rejected { border-color: #f6d4cf; }
.mad-card__pic { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #eef2f8; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; }
.mad-card__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mad-card__ratio { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(15, 23, 42, .55); color: #fff; font-size: 11px; font-style: normal; }
.mad-card.is-offline .mad-card__pic img { filter: grayscale(.85); opacity: .7; }
.mad-card__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mad-card__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mad-card__top h4 { margin: 0; font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mad-card__meta { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: 13px; }
.mad-card__meta dt { color: var(--muted); }
.mad-card__meta dd { margin: 0; color: #334155; word-break: break-all; }
.mad-card__reason { display: flex; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fdf1ef; font-size: 13px; line-height: 1.6; color: #b42318; }
.mad-card__reason b { flex: none; }
.mad-card__tip { margin: 0; font-size: 12px; color: #a16207; }
.mad-card__tip.is-ok { color: #15803d; }
.mad-card__ops { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 128px; }
.mad-card__ops .kt-btn { justify-content: center; }
.mad-card__ops .mad-del:hover { color: #c0392b; border-color: #f2c4bd; }
@media (max-width: 1100px) {
  .mad-card { grid-template-columns: 200px minmax(0, 1fr); }
  .mad-card__ops { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; min-width: 0; }
  .mad-head { flex-direction: column; align-items: flex-start; }
}

.mad-alert { padding: 12px 16px; border-radius: 12px; background: #fff8eb; border: 1px solid #fde7c2; font-size: 13px; line-height: 1.6; color: #8a5a12; }
.mad-alert.is-bad { background: #fdf1ef; border-color: #f6d4cf; color: #b42318; }
.mad-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 16px; align-items: start; }
.mad-form__main, .mad-form__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mad-form__side { position: sticky; top: 0; }
@media (max-width: 1200px) {
  .mad-form__grid { grid-template-columns: minmax(0, 1fr); }
  .mad-form__side { position: static; }
}
.mad-sec { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: flex; flex-direction: column; gap: 16px; }
.mad-sec__head { display: flex; gap: 12px; align-items: flex-start; }
.mad-sec__head i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-style: normal; font-weight: 700; line-height: 26px; text-align: center; }
.mad-sec__head h4 { margin: 2px 0 0; font-size: 16px; color: var(--ink); }
.mad-sec__head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.mad-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mad-slot { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font: inherit; cursor: pointer; transition: all .15s; }
.mad-slot:hover { border-color: #b8c6ea; }
.mad-slot.is-on { border-color: var(--brand); background: #f5f8ff; box-shadow: 0 0 0 3px rgba(2, 42, 153, .08); }
.mad-slot__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mad-slot__top strong { font-size: 14px; color: var(--ink); }
.mad-slot__top em { flex: none; padding: 1px 7px; border-radius: 6px; background: #eef2f8; font-size: 11px; font-style: normal; color: #475569; }
.mad-slot.is-on .mad-slot__top em { background: var(--brand); color: #fff; }
.mad-slot > span { font-size: 12px; line-height: 1.55; color: var(--muted); }
.mad-field { display: flex; flex-direction: column; gap: 8px; }
.mad-field__label { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; font-weight: 600; color: #334155; }
.mad-field__label em { font-style: normal; font-weight: 400; font-size: 12px; color: #94a3b8; }
.mad-field__hint { font-size: 12px; color: var(--muted); }
.mad-input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.mad-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, .08); }
.mad-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mad-seg__item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: all .15s; }
.mad-seg__item strong { font-size: 14px; color: var(--ink); }
.mad-seg__item span { font-size: 12px; color: var(--muted); }
.mad-seg__item.is-on { border-color: var(--brand); background: #f5f8ff; }
.mad-seg__item.is-on strong { color: var(--brand); }
.mad-goods[hidden] { display: none; }
.mad-drop { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; border: 1.5px dashed #c3cde3; border-radius: 14px; background: linear-gradient(180deg, #f8faff, #f1f5fd); overflow: hidden; cursor: pointer; transition: border-color .15s; }
.mad-drop:hover { border-color: var(--brand); }
.mad-drop.has-img { border-style: solid; border-color: var(--line); }
.mad-drop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mad-drop img[hidden], .mad-drop__empty[hidden], .mad-media-acts[hidden], .mad-phone__banner img[hidden] { display: none; }
.mad-drop__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; text-align: center; }
.mad-drop__empty b { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 24px; font-weight: 400; line-height: 40px; }
.mad-drop__empty strong { font-size: 14px; color: var(--ink); }
.mad-drop__empty span { font-size: 12px; color: var(--muted); }
.mad-drop__badge { position: absolute; right: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(15, 23, 42, .55); color: #fff; font-size: 11px; font-style: normal; }
.mad-media-acts { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.mad-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.mad-preview__label { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--muted); }
.mad-phone { width: 240px; border: 8px solid #1e293b; border-radius: 28px; background: #f4f6fa; overflow: hidden; }
.mad-phone__bar { padding: 14px 12px 10px; background: linear-gradient(135deg, #011b66, #022a99); color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
.mad-phone__body { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 260px; }
.mad-phone__banner { width: 100%; border-radius: 8px; overflow: hidden; background: repeating-linear-gradient(45deg, #e6ebf5, #e6ebf5 6px, #eef2f9 6px, #eef2f9 12px); }
.mad-phone__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mad-phone__ph { height: 54px; border-radius: 8px; background: #fff; }
.mad-phone__ph.is-search { height: 22px; border-radius: 999px; }
.mad-phone__ph.is-short { height: 80px; }
.mad-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fafbfd; position: sticky; bottom: 0; z-index: 2; }
.mad-foot__tip { font-size: 12px; color: var(--muted); }
.mad-foot__acts { display: flex; gap: 10px; }

/* ===== 商家端 · 店铺资料 → 店铺装修（2026-11-18） ===== */
.sd-card { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.sd-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #f5f8ff 0%, #fff 60%); }
#extra .sd-head h3, .sd-head h3 { margin: 0; font-size: 18px; color: var(--ink); }
.sd-head p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.sd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 20px 24px 24px; align-items: start; }
@media (max-width: 1200px) { .sd-grid { grid-template-columns: minmax(0, 1fr); } }
.sd-form { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.sd-block h4 { margin: 0; font-size: 15px; color: var(--ink); }
.sd-block > p { margin: 4px 0 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.sd-pick { display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.sd-pick__frame { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; border: 1.5px dashed #c3cde3; border-radius: 12px; background: linear-gradient(180deg, #f8faff, #f1f5fd); overflow: hidden; cursor: pointer; transition: border-color .15s; }
.sd-pick__frame:hover { border-color: var(--brand); }
.sd-pick__frame.has-img { border-style: solid; border-color: var(--line); }
.sd-pick__frame.is-loading { opacity: .5; pointer-events: none; }
.sd-pick__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-pick__frame img[hidden], .sd-pick__empty[hidden] { display: none; }
.sd-pick__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: #475569; }
.sd-pick__empty b { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 20px; font-weight: 400; line-height: 34px; text-align: center; }
.sd-pick__tools { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.sd-link { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--brand); cursor: pointer; }
.sd-link.is-danger { color: #c0392b; }
.sd-link[hidden] { display: none; }
.sd-promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .sd-promos { grid-template-columns: minmax(0, 1fr); } }
.sd-promo { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; }
.sd-promo__no { font-size: 12px; font-weight: 700; color: var(--brand); }
.sd-promo .sd-pick { max-width: none; }
.sd-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #475569; }
.sd-input { width: 100%; box-sizing: border-box; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.sd-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, .08); }
select.sd-input[hidden] { display: none; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sd-tag { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px 0 12px; border-radius: 8px; background: rgba(63, 130, 204, .08); border: 1px solid rgba(63, 130, 204, .22); font-size: 13px; color: #1d4f91; }
.sd-tag button { width: 20px; height: 20px; border: 0; border-radius: 5px; background: transparent; color: #64748b; font-size: 15px; line-height: 1; cursor: pointer; }
.sd-tag button:hover { background: rgba(192, 57, 43, .1); color: #c0392b; }
.sd-muted { font-size: 12px; color: var(--muted); }
.sd-tag-new { display: flex; gap: 8px; max-width: 320px; }
.sd-tag-new[hidden] { display: none; }
.sd-tag-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sd-tag-preset { height: 26px; padding: 0 10px; border: 1px dashed #c3cde3; border-radius: 999px; background: #fff; font: inherit; font-size: 12px; color: #475569; cursor: pointer; }
.sd-tag-preset:hover { border-color: var(--brand); color: var(--brand); }
.sd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.sd-status { font-size: 12px; color: var(--muted); }
.sd-status.is-dirty { color: #b45309; font-weight: 600; }
.sd-side { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sd-side__label { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--muted); }
.sd-phone { width: 290px; height: 560px; overflow: hidden; border: 9px solid #1e293b; border-radius: 34px; background: #f4f6fa; }
.sd-pv-banner { position: relative; aspect-ratio: 5 / 4; background: linear-gradient(150deg, #01124a, #022a99) center / cover no-repeat; }
.sd-pv-title { position: absolute; left: 0; right: 0; top: 18px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgba(1, 18, 74, .4); }
.sd-pv-card { position: relative; margin: -34px 10px 0; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px -14px rgba(1, 18, 74, .4); }
.sd-pv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sd-pv-logo { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand) center / cover no-repeat; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sd-pv-head strong { display: block; font-size: 13px; color: var(--ink); }
.sd-pv-head span { font-size: 10px; color: #94a3b8; }
.sd-pv-line { margin: 2px 0; font-size: 10px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-pv-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sd-pv-tags span { padding: 1px 6px; border-radius: 5px; background: rgba(63, 130, 204, .08); border: 1px solid rgba(63, 130, 204, .18); font-size: 9px; color: #1d4f91; }
.sd-pv-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 10px 0; }
.sd-pv-act { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #011b66, #0b3fb5) center / cover no-repeat; }
.sd-pv-act::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 18, 74, 0) 40%, rgba(1, 18, 74, .6) 100%); }
.sd-pv-act span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; }
.sd-pv-tabs { display: flex; margin: 10px 10px 0; padding: 3px; border-radius: 10px; background: #fff; }
.sd-pv-tabs span { flex: 1; padding: 6px 0; border-radius: 8px; text-align: center; font-size: 10px; color: #64748b; }
.sd-pv-tabs span.is-on { background: #eef3ff; color: var(--brand); font-weight: 700; }
.sd-pv-ph { height: 120px; margin: 10px; border-radius: 10px; background: #fff; }

/* ===== 商品管理列表 / 详情（商家端、平台端共用，2026-11-18） ===== */
.gl-page { display: flex; flex-direction: column; gap: 14px; }
.gl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gl-top__acts { display: flex; gap: 10px; }
.gl-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-tab { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: #475569; cursor: pointer; transition: all .15s; }
.gl-tab em { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: #eef2f8; font-size: 12px; font-style: normal; line-height: 20px; text-align: center; color: #64748b; }
.gl-tab em.is-wait { background: #fff4dc; color: #b45309; }
.gl-tab em.is-bad { background: #fdecea; color: #c0392b; }
.gl-tab:hover { border-color: var(--brand); color: var(--brand); }
.gl-tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.gl-tab.is-on em { background: rgba(255, 255, 255, .22); color: #fff; }
.gl-box { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.gl-table { overflow-x: auto; }
.gl-table table { min-width: 1180px; }
.gl-table td { vertical-align: middle; }
.gl-empty { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.gl-empty.is-big { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 20px; }
.gl-empty.is-big strong { font-size: 16px; color: var(--ink); }
.gl-goods { display: flex; gap: 12px; align-items: center; min-width: 280px; max-width: 360px; }
.gl-goods__pic { position: relative; flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #eef2f8; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #94a3b8; }
.gl-goods__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-goods__pin { position: absolute; left: 0; top: 0; padding: 1px 6px; border-radius: 0 0 8px 0; background: #e8590c; color: #fff; font-size: 10px; font-style: normal; }
.gl-goods__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gl-goods__title { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-goods__title:hover { color: var(--brand); }
.gl-goods__sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-goods__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 11px; color: #94a3b8; }
.gl-goods__meta em { padding: 0 6px; border-radius: 4px; background: #eef7f0; color: #15803d; font-style: normal; }
.gl-shop { font-size: 13px; color: #334155; }
.gl-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; color: #475569; max-width: 180px; }
.gl-price, .gl-stock, .gl-review, .gl-time, .gl-num { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.gl-price strong { font-size: 15px; color: #e8590c; font-variant-numeric: tabular-nums; }
.gl-price span, .gl-stock span, .gl-review span, .gl-time span { font-size: 12px; color: var(--muted); }
.gl-stock strong, .gl-num strong, .gl-review strong { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.gl-stock.is-low strong, .gl-stock.is-low span { color: #b45309; }
.gl-stock.is-out strong, .gl-stock.is-out span { color: #c0392b; }
.gl-time span { font-variant-numeric: tabular-nums; color: #334155; }
.gl-time span.is-muted { color: var(--muted); }
.gl-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 160px; }
.gl-status__why { font-size: 12px; color: #c0392b; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-ops { display: flex; flex-wrap: wrap; gap: 6px; min-width: 150px; max-width: 200px; }
.gl-danger { color: #c0392b !important; }

.gd-page { display: flex; flex-direction: column; gap: 16px; }
.gd-alert { display: flex; gap: 10px; align-items: baseline; padding: 12px 16px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.gd-alert b { flex: none; }
.gd-alert.is-bad { background: #fdf1ef; border: 1px solid #f6d4cf; color: #b42318; }
.gd-alert.is-wait { background: #fff8eb; border: 1px solid #fde7c2; color: #8a5a12; }
.gd-alert.is-muted { background: #f4f6fa; border: 1px solid var(--line); color: #475569; }
.gd-hero { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(110% 120% at 100% 0%, #fff7ec 0%, rgba(255, 247, 236, 0) 40%), #fff; }
@media (max-width: 1100px) { .gd-hero { grid-template-columns: minmax(0, 1fr); } }
.gd-gallery { display: flex; flex-direction: column; gap: 10px; }
.gd-gallery__main { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #eef2f8; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; cursor: zoom-in; }
.gd-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gd-thumb { aspect-ratio: 1 / 1; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #eef2f8; cursor: pointer; }
.gd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-thumb.is-on { border-color: var(--brand); }
.gd-gallery__note { font-size: 12px; color: var(--muted); }
.gd-hero__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gd-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gd-crumb { font-size: 13px; color: #475569; }
.gd-pin { padding: 2px 8px; border-radius: 6px; background: #fff1e6; color: #c2410c; font-size: 12px; font-weight: 600; }
.gd-title { margin: 0; font-size: 22px; line-height: 1.4; color: var(--ink); word-break: break-word; }
.gd-sub { margin: -6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.gd-price { display: flex; align-items: baseline; gap: 14px; padding: 14px 18px; border-radius: 12px; background: #fff7f0; }
.gd-price strong { font-size: 26px; color: #e8590c; font-variant-numeric: tabular-nums; }
.gd-price span { font-size: 13px; color: #9a5b2c; }
.gd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .gd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gd-stat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.gd-stat span { font-size: 12px; color: var(--muted); }
.gd-stat strong { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.gd-stat em { font-size: 12px; font-style: normal; color: var(--muted); }
.gd-stat.is-warn strong, .gd-stat.is-warn em { color: #b45309; }
.gd-stat.is-bad strong, .gd-stat.is-bad em { color: #c0392b; }
.gd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); }
.gd-acts { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.gd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
@media (max-width: 1200px) { .gd-grid { grid-template-columns: minmax(0, 1fr); } }
.gd-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gd-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.gd-card__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.gd-card__hd h4 { margin: 0; font-size: 15px; color: var(--ink); }
.gd-card__hd span { font-size: 12px; color: var(--muted); }
.gd-card__bd { padding: 16px 20px; }
.gd-empty { margin: 0; font-size: 13px; color: var(--muted); }
.gd-dims { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.gd-dim { display: flex; gap: 12px; align-items: flex-start; }
.gd-dim b { flex: none; min-width: 56px; font-size: 13px; color: #334155; line-height: 28px; }
.gd-dim__vals { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: #f2f5fa; font-size: 13px; color: #334155; }
.gd-chip img { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; }
.gd-sku-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.gd-sku { width: 100%; border-collapse: collapse; font-size: 13px; }
.gd-sku th { padding: 10px 12px; background: #f7f9fc; text-align: left; font-weight: 600; color: #64748b; white-space: nowrap; }
.gd-sku td { padding: 10px 12px; border-top: 1px solid var(--line); color: #334155; white-space: nowrap; }
.gd-sku td.is-name { font-weight: 600; color: var(--ink); white-space: normal; }
.gd-sku td.is-price { color: #e8590c; font-weight: 600; font-variant-numeric: tabular-nums; }
.gd-sku td.is-low { color: #b45309; font-weight: 600; }
.gd-sku td.is-out { color: #c0392b; font-weight: 700; }
.gd-sku td.is-mono { font-family: Consolas, monospace; font-size: 12px; color: #64748b; }
.gd-sku td.is-on { color: #15803d; }
.gd-sku td.is-muted, .gd-sku tr.is-off td { color: #a0a8b8; }
.gd-sku__img { display: inline-flex; width: 36px; height: 36px; border-radius: 6px; overflow: hidden; background: #eef2f8; }
.gd-sku__img img { width: 100%; height: 100%; object-fit: cover; }
.gd-rich { max-width: 750px; margin: 0 auto; font-size: 14px; line-height: 1.8; color: #334155; word-break: break-word; }
.gd-rich img { display: block; max-width: 100%; height: auto; margin: 8px 0; border-radius: 6px; }
.gd-kv { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px 12px; margin: 0; font-size: 13px; }
.gd-kv dt { color: var(--muted); }
.gd-kv dd { margin: 0; color: #334155; line-height: 1.6; word-break: break-word; }
.gd-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-badges span { padding: 1px 8px; border-radius: 6px; background: #f2f4f8; color: #a0a8b8; font-size: 12px; }
.gd-badges span.is-on { background: #eef7f0; color: #15803d; }
.gd-addons { display: flex; flex-direction: column; gap: 8px; }
.gd-addon { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #f7f9fc; font-size: 13px; color: #334155; }
.gd-addon b { color: #e8590c; }
.gd-reviews { display: flex; flex-direction: column; gap: 12px; }
.gd-review { padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.gd-review:last-child { border-bottom: 0; padding-bottom: 0; }
.gd-review__hd { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.gd-stars { color: #f59e0b; letter-spacing: 1px; }
.gd-review p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: #334155; }
.gd-review__reply { padding: 6px 10px; border-radius: 8px; background: #f7f9fc; color: #64748b !important; }

/* 商品列表：筛选项多，允许换行；表格按内容分配列宽 */
.gl-page .filter-toolbar.kt-filter-toolbar { flex-wrap: wrap !important; margin: 0 !important; }
.gl-page .kt-filter-toolbar .filter-field { width: 150px; }
.gl-page .kt-filter-toolbar .filter-field:first-child { width: 260px; }
.gl-table table { table-layout: auto !important; min-width: 1240px; width: 100%; }
.gl-table th:first-child, .gl-table td:first-child { min-width: 300px; }
.gl-table th:last-child, .gl-table td:last-child { width: 1%; }
.gl-ops { flex-wrap: nowrap; min-width: 0; max-width: none; }
.gl-ops .kt-btn { white-space: nowrap; }

/* ===== 商家端 · 店铺资料上半部分（2026-11-18） ===== */
.sp-overview { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.sp-hero { position: relative; display: flex; gap: 22px; align-items: center; padding: 26px 28px; border-radius: 20px; overflow: hidden; color: #fff; background: radial-gradient(90% 140% at 100% 0%, rgba(255, 196, 120, .35) 0%, rgba(255, 196, 120, 0) 45%), linear-gradient(125deg, #011b66 0%, #022a99 55%, #1a4fd1 100%); box-shadow: 0 18px 40px -24px rgba(1, 27, 102, .6); }
.sp-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.sp-hero.is-off { background: linear-gradient(125deg, #3b4252 0%, #4c566a 100%); }
.sp-hero__logo { position: relative; z-index: 1; flex: none; width: 88px; height: 88px; border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .35); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; color: #fff; }
.sp-hero__logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.sp-hero__main { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sp-hero__name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#extra .sp-hero__name h2, .sp-hero__name h2 { margin: 0; font-size: 24px; color: #fff; letter-spacing: .02em; }
.sp-hero__status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .16); }
.sp-hero__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sp-hero__status.is-ok { color: #7ef0b0; }
.sp-hero__status.is-off { color: #ffb4a8; }
.sp-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: rgba(255, 255, 255, .92); }
.sp-hero__meta em { margin-right: 6px; font-style: normal; color: rgba(255, 255, 255, .6); }
.sp-hero__scope { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .75); }
.sp-hero__warn { margin: 0; padding: 6px 12px; border-radius: 8px; background: rgba(255, 107, 91, .2); font-size: 13px; color: #ffd6cf; }
.sp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-stat { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.sp-stat__ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #eef3ff; color: var(--brand); font-size: 18px; font-style: normal; font-weight: 800; line-height: 44px; text-align: center; }
.sp-stat.is-warn .sp-stat__ico { background: #fff4dc; color: #b45309; }
.sp-stat__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-stat__txt span { font-size: 12px; color: var(--muted); }
.sp-stat__txt strong { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.sp-stat__txt em { font-size: 12px; font-style: normal; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-stat.is-warn .sp-stat__txt em { color: #b45309; font-weight: 600; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 1100px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
.sp-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.sp-card__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.sp-card__hd h4 { margin: 0; font-size: 15px; color: var(--ink); }
.sp-card__hd span { font-size: 12px; color: var(--muted); }
.sp-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; }
.sp-cat { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 8px; background: #f3f6fd; border: 1px solid #dfe6f7; font-size: 13px; }
.sp-cat i { font-style: normal; color: #8a93a6; }
.sp-cat i::after { content: "›"; margin-left: 4px; color: #b4bccb; }
.sp-cat b { color: var(--brand); font-weight: 600; }
.sp-muted { font-size: 13px; color: var(--muted); }
.sp-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.sp-account { padding: 16px 20px; }
.sp-account + .sp-account { border-left: 1px solid var(--line); }
.sp-account__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sp-account__hd b { font-size: 13px; color: #334155; }
.sp-account__hd span { padding: 1px 8px; border-radius: 6px; background: #eef7f0; color: #15803d; font-size: 12px; }
.sp-account dl { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 10px; margin: 0; font-size: 13px; }
.sp-account dt { color: var(--muted); }
.sp-account dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-all; }
.sp-overview .sp-stat { flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; text-align: left !important; }
.sp-overview .sp-stat__txt { align-items: flex-start !important; }
.gd-card__hr { display: flex; align-items: center; gap: 10px; }
.gd-stock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #fff8eb; border: 1px solid #fde7c2; font-size: 13px; color: #8a5a12; }
.gd-stock-bar[hidden] { display: none; }
.gd-stock-bar > div { display: flex; gap: 8px; }
.gd-stock-input { width: 96px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; }
.gd-stock-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, .08); }
.gp-notice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

/* 资讯管理 · 排序（2026-11-18） */
.news-sort__input { width: 72px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; text-align: center; color: var(--ink); }
.news-sort__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, .08); }
.news-sort__input:disabled { opacity: .5; }

/* ===== 首页工作台 / 统计管理 / 系统管理（2026-11-18） ===== */
.db-page { display: flex; flex-direction: column; gap: 16px; }
.db-narrow { max-width: 760px; }
.db-empty { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.db-empty-sm { color: var(--muted); font-size: 13px; text-align: center; padding: 16px 0 !important; margin: 0; }
.db-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.db-card__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.db-card__hd h4 { margin: 0; font-size: 15px; color: var(--ink); }
.db-card__hd span { font-size: 12px; color: var(--muted); }
.db-card__hd span.is-bad { color: #c0392b; font-weight: 600; }
.db-card__hd span.is-ok { color: #15803d; font-weight: 600; }
.db-card__bd { padding: 16px 20px; }
.db-todos { display: flex; flex-direction: column; }
.db-todo-group { display: flex; gap: 16px; align-items: flex-start; padding: 14px 20px; }
.db-todo-group + .db-todo-group { border-top: 1px dashed var(--line); }
.db-todo-group__name { flex: none; width: 40px; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.db-todo-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; flex: 1; }
.db-todo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfd; font: inherit; text-align: left; cursor: pointer; transition: all .15s; }
.db-todo b { font-size: 22px; line-height: 1.2; color: #b4bccb; font-variant-numeric: tabular-nums; }
.db-todo span { font-size: 12px; color: var(--muted); }
.db-todo.is-on { background: #fff; border-color: #f3d9b8; }
.db-todo.is-on b { color: #c2410c; }
.db-todo:hover { border-color: var(--brand); box-shadow: 0 6px 16px -10px rgba(2, 42, 153, .35); }
.db-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.db-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.db-kpi span { font-size: 12px; color: var(--muted); }
.db-kpi strong { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.db-kpi em { font-size: 12px; font-style: normal; color: var(--muted); }
.db-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.db-chart { position: relative; }
.db-chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.db-grid line.db-grid, .db-chart .db-grid { stroke: #eef1f6; stroke-width: 1; }
.db-chart .db-axis { stroke: #cbd2de; stroke-width: 1; }
.db-chart .db-tick { font-size: 11px; fill: #8a93a6; }
.db-chart .db-bar { fill: #3361d8; }
.db-chart .db-hit { fill: transparent; cursor: default; }
.db-chart .db-hit.is-on { fill: rgba(2, 42, 153, .05); }
.db-tip { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 8px; background: #0f172a; color: #fff; font-size: 12px; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(15, 23, 42, .2); }
.db-tip[hidden] { display: none; }
.db-tip span { color: rgba(255, 255, 255, .7); }
.db-more { display: flex; justify-content: flex-end; }
.db-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.db-range__btn { height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: #475569; cursor: pointer; }
.db-range__btn:hover { border-color: var(--brand); color: var(--brand); }
.db-range__btn.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.db-range__custom { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding: 4px 6px 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; color: var(--muted); }
.db-range__custom.is-on { border-color: var(--brand); }
.db-range__custom input { height: 28px; border: 0; font: inherit; font-size: 13px; color: var(--ink); background: transparent; }
.db-rank { display: flex; flex-direction: column; gap: 12px; }
.db-rank__row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.db-rank__name { color: #334155; }
.db-rank__track { height: 10px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.db-rank__track i { display: block; height: 100%; border-radius: 999px; background: #3361d8; }
.db-rank__val { color: #334155; font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.db-table th { padding: 8px 10px; text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.db-table td { padding: 9px 10px; border-bottom: 1px solid #f1f4f9; color: #334155; font-variant-numeric: tabular-nums; }
.db-table tr:last-child td { border-bottom: 0; }
.db-no { width: 28px; color: #94a3b8; font-weight: 700; }
.db-no.is-top { color: #c2410c; }
.db-checks { display: flex; flex-direction: column; }
.db-check { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid #f1f4f9; }
.db-check i { width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 13px; line-height: 24px; text-align: center; }
.db-check.is-ok i { background: #e7f6ec; color: #15803d; }
.db-check.is-bad i { background: #fdecea; color: #c0392b; }
.db-check b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.db-check div span { display: block; margin-top: 2px; font-size: 12px; color: #a15c07; line-height: 1.6; }
.db-check em { font-style: normal; font-size: 12px; color: var(--muted); }
.db-check.is-bad em { color: #c0392b; font-weight: 600; }
.db-note { margin: 0; padding: 10px 20px 14px; font-size: 12px; color: var(--muted); }
.db-tasks { display: flex; flex-direction: column; }
.db-task { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #f1f4f9; }
.db-task:last-child { border-bottom: 0; }
.db-task__txt b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.db-task__txt span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.db-task.is-late .db-task__txt span { color: #c0392b; }
.db-kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; margin: 0; padding: 16px 20px; font-size: 13px; }
.db-kv dt { color: var(--muted); }
.db-kv dd { margin: 0; color: var(--ink); }
.db-form { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; }
.db-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #334155; font-weight: 600; }
.db-field input { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; font-weight: 400; max-width: 360px; }
.db-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, .08); }
.db-form__ft { padding-top: 4px; }

/* ===== 运营数据面板（首页 / 统计管理）：时间范围、页签、指标卡（带图标）、商家账号卡 ===== */
.db-tone--blue { --tone: #2563eb; --tone-soft: #eaf1ff; }
.db-tone--gold { --tone: #b7791f; --tone-soft: #fdf3dc; }
.db-tone--indigo { --tone: #1d3fbf; --tone-soft: #e8edfb; }
.db-tone--orange { --tone: #ea580c; --tone-soft: #ffeedf; }
.db-tone--green { --tone: #059669; --tone-soft: #e2f6ee; }
.db-tone--violet { --tone: #7c3aed; --tone-soft: #f1eafe; }
.db-tone--slate { --tone: #475569; --tone-soft: #eef1f5; }
.db-tone--rose { --tone: #e11d48; --tone-soft: #fde8ec; }
.db-tone--teal { --tone: #0d9488; --tone-soft: #dff5f1; }
.db-ico { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.db-ops { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: opacity .2s; }
.db-ops.is-loading { opacity: .5; pointer-events: none; }
.db-ops__hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.db-ops__title { display: flex; align-items: center; gap: 12px; }
.db-ops__title > .db-ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: linear-gradient(135deg, #022a99 0%, #3b6cf0 100%); color: #fff; box-shadow: 0 8px 18px -10px rgba(2, 42, 153, .7); }
.db-ops__title h4 { margin: 0; font-size: 17px; color: var(--ink); }
.db-ops__title span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.db-rangebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.db-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: #f1f4f9; }
.db-seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 13px; color: #475569; cursor: pointer; transition: color .15s, background .15s; }
.db-seg button:hover { color: var(--brand); }
.db-seg button.is-on { background: #fff; color: var(--brand); font-weight: 700; box-shadow: 0 1px 3px rgba(15, 23, 42, .14); }
.db-custom { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 4px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; color: var(--muted); }
.db-custom > .db-ico { width: 16px; height: 16px; color: #94a3b8; }
.db-custom.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, .08); }
.db-custom.is-on > .db-ico { color: var(--brand); }
.db-custom input { width: 128px; height: 30px; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink); }
.db-custom input:focus { outline: none; }
.db-custom button { height: 30px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--brand); color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.db-custom button:hover { filter: brightness(1.12); }

.db-tabs { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 10px; padding: 16px 20px 0; }
@media (max-width: 1360px) { .db-tabs { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); } }
.db-tab { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; padding: 12px 14px; border: 1px solid #e6eaf2; border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.db-tab:hover { border-color: var(--tone); box-shadow: 0 10px 20px -16px var(--tone); }
.db-tab__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.db-tab__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--tone-soft); color: var(--tone); transition: background .15s; }
.db-tab__ic .db-ico { width: 18px; height: 18px; }
.db-tab__top b { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-tab__kpi { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.db-tab__kpi i { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.db-tab__kpi strong { font-size: 15px; color: #1f2937; font-variant-numeric: tabular-nums; }
.db-tab.is-on { border-color: transparent; background: var(--tone); box-shadow: 0 12px 24px -14px var(--tone); }
.db-tab.is-on .db-tab__ic { background: rgba(255, 255, 255, .18); color: #fff; }
.db-tab.is-on b, .db-tab.is-on .db-tab__kpi strong { color: #fff; }
.db-tab.is-on .db-tab__kpi { color: rgba(255, 255, 255, .78); }
.db-tab.is-on::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; border-radius: 2px; background: var(--tone); transform: translateX(-50%) rotate(45deg); }

.db-ops__sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 20px 0; padding: 10px 14px; border-radius: 12px; background: #f6f8fc; }
.db-ops__sub.is-snap { background: #fff6e8; }
.db-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.db-hint .db-ico { width: 15px; height: 15px; }
.db-ops__sub.is-snap .db-hint { color: #b35c00; font-weight: 600; }
.db-selects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.db-selects__ic.db-ico { width: 16px; height: 16px; color: #94a3b8; }
.db-select { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; }
.db-select[hidden] { display: none; }
.db-select select { height: 34px; min-width: 140px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.db-select.is-on select { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.db-reset { height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; color: var(--brand); cursor: pointer; }
.db-reset:hover { background: #eef3ff; }
.db-reset[hidden] { display: none; }

.db-ops__panel { display: flex; flex-direction: column; gap: 20px; padding: 18px 20px 22px; }
.db-group__hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: #1f2937; }
.db-group__hd::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--tone); }
.db-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; }
.db-stat { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px 16px; border: 1px solid #edf0f6; border-radius: 14px; background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%); cursor: default; transition: border-color .15s, box-shadow .15s, transform .15s; }
.db-stat:hover { border-color: #d5ddee; box-shadow: 0 12px 26px -20px rgba(15, 23, 42, .5); transform: translateY(-1px); }
.db-stat__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: var(--tone-soft); color: var(--tone); }
.db-stat__ic .db-ico { width: 22px; height: 22px; }
.db-stat__main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.db-stat__label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #64748b; white-space: nowrap; }
.db-stat__q.db-ico { width: 14px; height: 14px; color: #b4bfcf; }
.db-stat:hover .db-stat__q.db-ico { color: var(--tone); }
.db-val { font-size: 24px; font-weight: 700; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-stat.is-money .db-val { font-size: 22px; }
.db-val small { margin-right: 2px; font-size: 14px; font-weight: 600; }
.db-val em { margin-left: 3px; font-size: 12px; font-style: normal; font-weight: 400; color: var(--muted); }
.db-stat.is-zero .db-val { color: #a3adbd; }
.db-stat__tip { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 8px); z-index: 30; padding: 8px 11px; border-radius: 9px; background: #0f172a; color: #fff; font-size: 12px; line-height: 1.6; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .45); }
.db-stat__tip::after { content: ""; position: absolute; left: 26px; top: 100%; border: 6px solid transparent; border-top-color: #0f172a; }
.db-stat:hover .db-stat__tip { opacity: 1; visibility: visible; transform: none; transition-delay: .25s; }
.db-extra { display: flex; flex-direction: column; gap: 16px; }
.db-ops__ft { display: flex; justify-content: flex-end; padding: 0 20px 16px; }
.db-link { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: #eef3ff; color: var(--brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.db-link .db-ico { width: 16px; height: 16px; transition: transform .15s; }
.db-link:hover .db-ico { transform: translateX(3px); }
.db-divider { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 14px; font-weight: 700; color: #334155; }
.db-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.db-account { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 18px; color: #fff; background: radial-gradient(90% 140% at 100% 0%, rgba(255, 196, 120, .3) 0%, rgba(255, 196, 120, 0) 45%), linear-gradient(125deg, #011b66 0%, #022a99 60%, #1a4fd1 100%); }
.db-account__logo { flex: none; width: 60px; height: 60px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .3); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
.db-account__logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.db-account__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.db-account__main strong { font-size: 20px; }
.db-account__meta { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13px; color: rgba(255, 255, 255, .92); }
.db-account__meta em { margin-right: 6px; font-style: normal; color: rgba(255, 255, 255, .6); }

/* 拍卖 / 租赁规则页：分组标题、服务费示例 */
.kt-rule-group { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 4px 0 2px 12px; border-left: 4px solid var(--brand); }
.kt-rule-group:not(:first-child) { margin-top: 10px; }
.kt-rule-group b { font-size: 15px; color: var(--ink); }
.kt-rule-group span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.kt-rule-eg { grid-column: 1 / -1; margin: -4px 0 0; padding: 10px 14px; border-radius: 10px; background: #eef3ff; color: var(--brand); font-size: 13px; font-weight: 600; }
.kt-rule-eg.is-bad { background: #fdecea; color: #c0392b; }

/* ==========================================================================
   店铺结算（2026-11-19）：结算设置与结算账户、对账单收款账户、店铺列表概况
   ========================================================================== */
.shop-list-stats { margin-bottom: 16px; }
.shop-apply-top-tabs { margin-bottom: 14px; }
.shop-settle-sub { margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.shop-settle-warn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #f7d7a8;
  background: #fff8ec;
  color: #8a4b05;
  font-size: 13px;
  line-height: 1.6;
}
.shop-settle-pending {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #b9c8ea;
  background: #f3f6fd;
  font-size: 13px;
  line-height: 1.6;
}
.shop-settle-pending > strong { display: block; margin-bottom: 8px; color: var(--brand); }
.shop-settle-ops { display: flex; gap: 10px; margin-top: 10px; }
.shop-settle-note { margin: 8px 0; font-size: 12px; color: #8a4b05; }
.shop-settle-current { margin: 0 0 10px; font-size: 14px; color: var(--ink); word-break: break-all; }
.shop-settle-panel .kt-btn { margin-top: 8px; }
.kt-shop-deposit-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.kt-shop-acc-current { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.kt-shop-acc-current__text { color: var(--ink); word-break: break-all; }
.kt-shop-acc-current__pending { font-style: normal; color: #c2700c; }
.finance-payee-box {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #b9c8ea;
  background: #f3f6fd;
}
.finance-payee-box > strong { display: block; margin-bottom: 6px; color: var(--brand); }
.finance-payee-line { display: flex; gap: 12px; font-size: 13px; line-height: 1.8; }
.finance-payee-line span { width: 72px; color: var(--muted); flex: none; }
.finance-payee-line b { font-weight: 600; color: var(--ink); word-break: break-all; }
.shop-settle-panel .shop-settle-sub,
.shop-settle-panel .shop-settle-warn,
.shop-settle-panel .shop-settle-pending,
.shop-settle-panel .shop-settle-note,
.shop-settle-panel .shop-settle-current,
.shop-settle-panel > div > .kt-btn, .shop-settle-panel > div > div > .data-table { margin-left: 16px; margin-right: 16px; }
.shop-settle-panel .shop-settle-sub:first-child { margin-top: 12px; }

/* ==========================================================================
   资讯管理（2026-11-19）：列表、详情（左文章右信息）、发布编辑（左正文右设置）、封面裁剪、审核底栏
   ========================================================================== */
.nw-page { display: flex; flex-direction: column; gap: 16px; padding-bottom: 88px; }
.nw-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-right: 6px; border-radius: 6px; font-size: 12px; font-weight: 600; vertical-align: 2px; }
.nw-tag--pin { background: #fff1e6; color: #c2550c; }
.nw-tag--vip { background: linear-gradient(135deg, #3b2a12, #6b4b1d); color: #f8dfa6; }

/* 列表 */
.nw-table tbody tr { cursor: pointer; }
.nw-cell { display: flex; gap: 12px; align-items: flex-start; min-width: 320px; }
.nw-cell__text { flex: 1; }
.nw-btn-del { color: #c0392b; }
.nw-cell__thumb { flex: none; width: 112px; height: 60px; border-radius: 8px; overflow: hidden; background: #f1f4f9; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; border: 1px solid var(--line); }
.nw-cell__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nw-cell__text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nw-cell__title { font-weight: 600; color: var(--ink); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nw-cell__sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-cell__meta { font-size: 12px; color: #98a1b3; }
.nw-stack { display: flex; flex-direction: column; gap: 4px; min-width: 96px; }
.nw-stack__main { color: var(--ink); white-space: nowrap; }
.nw-stack__sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.nw-stack__sub--warn { color: #b4471c; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.nw-data { display: flex; gap: 12px; white-space: nowrap; }
.nw-data__item { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.nw-data__item b { font-size: 15px; color: var(--ink); }
.nw-data__item em { font-style: normal; font-size: 11px; color: var(--muted); }
.nw-ops { display: flex; flex-wrap: wrap; gap: 6px; min-width: 150px; }

/* 状态横幅 */
.nw-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 13px; line-height: 1.6; border: 1px solid var(--line); background: #f8fafc; color: var(--ink); }
.nw-banner strong { font-size: 14px; }
.nw-banner--pending { background: #fff8ec; border-color: #f7d7a8; color: #8a4b05; }
.nw-banner--approved, .nw-banner--ok { background: #ecfbf3; border-color: #b6e8cc; color: #146c3c; }
.nw-banner--rejected { background: #fff1f0; border-color: #ffccc7; color: #a8281e; }
.nw-banner--offline { background: #f3f4f6; border-color: #d9dde5; color: #4b5565; }
.nw-banner--draft { background: #f3f6fd; border-color: #b9c8ea; color: var(--brand); }

/* 详情：左文章右信息 */
.nw-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1180px) { .nw-detail { grid-template-columns: 1fr; } }
.nw-article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px 32px; min-width: 0; }
.nw-article__cover { aspect-ratio: 15 / 8; border-radius: 12px; overflow: hidden; background: #f1f4f9; margin-bottom: 20px; }
.nw-article__cover img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.nw-article__cover--empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.nw-article__title { margin: 0 0 8px; font-size: 22px; line-height: 1.45; color: var(--ink); }
.nw-article__meta { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.nw-article__summary { margin: 0 0 20px; padding: 12px 16px; border-left: 3px solid var(--brand); background: #f5f7fc; border-radius: 0 8px 8px 0; color: #4b5565; font-size: 14px; line-height: 1.7; }
.nw-article__body { font-size: 15px; line-height: 1.85; color: #263247; word-break: break-word; }
.nw-article__body p { margin: 0 0 14px; }
.nw-article__body h2, .nw-article__body h3, .nw-article__body h4 { margin: 22px 0 10px; color: var(--ink); }
.nw-article__body img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; display: block; }
.nw-article__body blockquote { margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid #cbd5e6; color: #4b5565; background: #f8fafc; }
.nw-aside, .nw-editor__aside { display: flex; flex-direction: column; gap: 14px; }
.nw-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.nw-card--form { padding: 18px 20px; }
.nw-card__title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.nw-card--vip { background: linear-gradient(160deg, #fffaf0, #fff 55%); border-color: #f1dfb5; }
.nw-vip-count { margin: 8px 0 0; font-weight: 600; color: #8a5a10; }
.nw-facts { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 10px; margin: 0; font-size: 13px; }
.nw-facts dt { color: var(--muted); }
.nw-facts dd { margin: 0; color: var(--ink); word-break: break-all; }
.nw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nw-stats__item { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 10px; background: #f6f8fc; }
.nw-stats__item b { font-size: 20px; color: var(--ink); }
.nw-stats__item span { font-size: 12px; color: var(--muted); }
.nw-muted { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.nw-warn { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: #b4471c; }
.nw-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid #e3e8f2; display: flex; flex-direction: column; gap: 12px; }
.nw-timeline__item { position: relative; font-size: 12px; color: var(--muted); }
.nw-timeline__item::before { content: ""; position: absolute; left: -20px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: #c6cfdf; border: 2px solid #fff; }
.nw-timeline__item--approved::before { background: #22a565; }
.nw-timeline__item--rejected::before { background: #e5484d; }
.nw-timeline__item--pending::before { background: #f5a524; }
.nw-timeline__item strong { display: block; font-size: 13px; color: var(--ink); }
.nw-timeline__item p { margin: 4px 0 0; color: #a8281e; }

/* 审核底栏 */
.nw-dock { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgba(1, 18, 74, 0.5); }
.nw-dock__info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.nw-dock__info strong { font-size: 15px; color: var(--ink); }
.nw-dock__actions { display: flex; gap: 10px; }

/* 发布编辑：左正文右设置 */
.nw-editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 1180px) { .nw-editor { grid-template-columns: 1fr; } }
.nw-editor__aside { position: sticky; top: 12px; }
.nw-field-head { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 6px; }
.nw-field-head:first-child { margin-top: 0; }
.nw-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.nw-counter { font-size: 12px; color: #98a1b3; }
.nw-counter.is-over { color: #e5484d; }
.nw-title-input { width: 100%; height: 48px; padding: 0 14px; font-size: 18px; font-weight: 600; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.nw-title-input:focus, .nw-textarea:focus { outline: none; border-color: #8aa3dd; box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.08); }
.nw-textarea { width: 100%; padding: 10px 14px; font: inherit; font-size: 14px; line-height: 1.6; border: 1px solid var(--line); border-radius: 10px; resize: vertical; color: var(--ink); }
.nw-rich .kt-rich-editor__body { font-size: 15px; line-height: 1.85; }
.nw-rich .kt-rich-editor__body img { max-width: 100%; height: auto; }
.nw-rich .kt-rich-editor__toolbar { position: sticky; top: 0; z-index: 2; background: #fff; }
.nw-radio-cards { display: flex; flex-direction: column; gap: 8px; }
.nw-radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.nw-radio-card.is-on { border-color: var(--brand); background: #f3f6fd; }
.nw-radio-card input { margin-top: 3px; }
.nw-radio-card__text { display: flex; flex-direction: column; gap: 2px; }
.nw-radio-card__text strong { font-size: 13px; color: var(--ink); }
.nw-radio-card__text em { font-style: normal; font-size: 12px; line-height: 1.5; color: var(--muted); }
.nw-cover__frame { aspect-ratio: 15 / 8; border-radius: 10px; overflow: hidden; border: 1px dashed #c3cde0; background: #f6f8fc; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nw-cover__frame:not(.is-empty) { border-style: solid; border-color: var(--line); }
.nw-cover__frame img { width: 100%; height: 100%; object-fit: cover; }
.nw-cover__empty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.nw-cover__empty strong { color: var(--brand); font-size: 14px; }
.nw-cover__tools { display: flex; gap: 8px; margin-top: 10px; }
.nw-cover__info { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.nw-preview { background: #f4f6fa; border-radius: 12px; padding: 12px; }
.nw-preview__item { display: flex; gap: 10px; background: #fff; border-radius: 10px; padding: 10px; }
.nw-preview__thumb { flex: none; width: 96px; height: 51px; border-radius: 6px; overflow: hidden; background: #e8edf6; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.nw-preview__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nw-preview__text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nw-preview__title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nw-preview__sum { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-preview__meta { font-size: 11px; color: #a3abbb; }
.nw-footer { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-radius: 14px; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgba(1, 18, 74, 0.5); }
.nw-footer__draft { margin-right: auto; font-size: 12px; color: var(--muted); }

/* 弹窗：原因、裁剪 */
.nw-reason-modal__hint { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.nw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.nw-chip { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: #f6f8fc; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
.nw-chip:hover { border-color: #8aa3dd; color: var(--brand); }
.nw-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.nw-modal-foot > :first-child { margin-right: auto; }
.nw-crop-modal.kt-modal__dialog, .nw-crop-modal.console-modal-dialog { width: min(680px, calc(100vw - 32px)); }
.nw-crop { position: relative; overflow: hidden; border-radius: 10px; background: #111; cursor: grab; touch-action: none; max-width: 100%; }
.nw-crop:active { cursor: grabbing; }
.nw-crop img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; }
.nw-crop__zoom { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.nw-crop__zoom input { flex: 1; }

/* ==========================================================================
   添加 / 编辑店铺分页签（2026-11-19）+ 入驻申请列表类目摘要
   ========================================================================== */
.kt-shop-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
}
.kt-shop-tabs__item {
  flex: 1 1 0;
  min-width: 132px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.kt-shop-tabs__item:hover { background: rgba(2, 42, 153, 0.05); color: var(--ink); }
.kt-shop-tabs__no {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: #eef1f7;
  color: var(--muted);
}
.kt-shop-tabs__label { font-weight: 600; }
.kt-shop-tabs__mark { margin-left: auto; font-size: 12px; font-style: normal; }
.kt-shop-tabs__item.is-active { background: var(--brand); color: #fff; }
.kt-shop-tabs__item.is-active .kt-shop-tabs__no { background: rgba(255, 255, 255, 0.22); color: #fff; }
.kt-shop-tabs__item.is-done .kt-shop-tabs__no { background: #dcfae6; color: #067647; }
.kt-shop-tabs__item.is-done .kt-shop-tabs__mark { color: #067647; font-weight: 700; }
.kt-shop-tabs__item.is-active.is-done .kt-shop-tabs__mark { color: #fff; }
.kt-shop-tabs__item.is-dirty .kt-shop-tabs__mark {
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff4e5;
  color: #b54708;
}
.kt-shop-tabs-sheet { padding-bottom: 0; }
.kt-shop-pane[hidden] { display: none !important; }
.kt-shop-pane__head {
  padding: 22px 26px 4px;
}
.kt-shop-pane__head h4 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.kt-shop-pane__head p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.kt-shop-pane__head + .kt-shop-form-sec { border-top: 0; padding-top: 14px; }
.kt-shop-pane__head + .kt-form-sheet__grid--flat { padding-top: 14px; }
.kt-shop-pane__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 8px 26px 0;
  padding: 16px 0 20px;
  border-top: 1px dashed var(--line);
}
.kt-shop-pane__foot .kt-form-footer__msg { flex: 1; margin: 0; font-size: 13px; text-align: left; color: var(--muted); }
.kt-shop-pane__foot .kt-form-footer__msg.bad { color: #b42318; }
.kt-shop-tabs-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.06);
}
.kt-shop-tabs-footer__info { flex: 1; font-size: 13px; color: var(--muted); }
.kt-form-sheet textarea[name="platform_remark"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
  background: #fff;
}
.kt-form-sheet textarea[name="platform_remark"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.1); }
@media (max-width: 900px) {
  .kt-shop-tabs__item { min-width: 112px; padding: 9px 10px; }
  .kt-shop-pane__head { padding: 18px 18px 4px; }
  .kt-shop-pane__foot { margin: 8px 18px 0; }
  .kt-shop-tabs-footer { flex-wrap: wrap; }
}

/* 入驻申请列表：类目只显示摘要，鼠标停留看全部 */
.grid.data-table--shop-apply td:nth-child(2) { white-space: normal; }
.grid.data-table--shop-apply td:nth-child(6) { min-width: 200px; }
.kt-apply-who .kt-auction-stack__main {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kt-apply-who__scope {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kt-apply-cats { display: flex; flex-direction: column; gap: 6px; min-width: 0; cursor: help; }
.kt-apply-cats__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.kt-apply-cats__head strong { color: var(--ink); font-size: 13px; }
.kt-apply-cats__line {
  padding: 0 7px;
  border-radius: 999px;
  background: #eef1f7;
  line-height: 18px;
}
.kt-apply-cats__tags { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; overflow: hidden; }
.kt-apply-cats__tag {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #1e3a7a;
  background: rgba(2, 42, 153, 0.07);
  border: 1px solid rgba(2, 42, 153, 0.14);
}
.kt-apply-cats__more {
  flex: none;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--brand);
  background: #fff;
  border: 1px dashed rgba(2, 42, 153, 0.35);
}
.kt-apply-cats__none { font-size: 12px; color: var(--muted); }

/* ==========================================================================
   拍卖规则 / 租赁规则（2026-11-19 重做）：左边按用途分卡片，右边规则一览
   ========================================================================== */
.tr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
  margin-top: 4px;
}
.tr-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tr-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  scroll-margin-top: 16px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.tr-card.is-flash { animation: tr-flash 1.4s ease; }
@keyframes tr-flash {
  0%, 40% { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(2, 42, 153, 0.12); }
  100% { border-color: var(--line); box-shadow: none; }
}
.tr-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.tr-card.is-collapsed .tr-card__head { border-bottom: 0; }
.tr-card.is-collapsed .tr-card__body { display: none; }
.tr-card__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: rgba(2, 42, 153, 0.07);
}
.tr-card--muted .tr-card__icon { color: #667085; background: #f2f4f7; }
.tr-card__titles { flex: 1; min-width: 0; }
/* #extra h3 全局有 margin-top: 16px，这里要压过它，不然标题比图标低一截 */
#extra .tr-card__title,
.tr-card__title {
  width: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ink);
}
.tr-card__desc { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.tr-card__badge {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  background: #f2f4f7;
}
.tr-card__changed {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #b54708;
  background: #fff4e5;
}
.tr-card__tools { flex: none; display: flex; gap: 8px; align-items: center; }
.tr-card__body { padding: 18px 22px 22px; }
.tr-card__note {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: #475467;
  background: #f8fafc;
}
.tr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.tr-field { min-width: 0; padding-left: 0; transition: padding 0.15s; }
.tr-field--wide { grid-column: 1 / -1; }
.tr-field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tr-field__label { font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.tr-field__unit-tip { font-size: 12px; color: var(--muted); }
.tr-field.is-changed .tr-field__label::after {
  content: "已改";
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #b54708;
  background: #fff4e5;
}
.tr-input-box {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tr-input-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.1); }
.tr-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.tr-input::-webkit-outer-spin-button,
.tr-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tr-input[type="number"] { -moz-appearance: textfield; }
.tr-input-box__unit { flex: none; padding-left: 10px; font-size: 14px; color: var(--muted); }
.tr-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  resize: vertical;
}
.tr-textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 42, 153, 0.1); }
.tr-field.is-bad .tr-input-box,
.tr-field.is-bad .tr-textarea { border-color: #f04438; }
.tr-field__foot { display: flex; justify-content: space-between; gap: 8px; min-height: 0; font-size: 12px; }
.tr-field__err { color: #b42318; }
.tr-field__err:not(:empty),
.tr-field__count { margin-top: 6px; }
.tr-field__count { margin-left: auto; color: var(--muted); }
.tr-field__count.is-near { color: #b54708; }
.tr-field__hint { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.tr-where {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 3px 10px 3px 4px;
  border-radius: 8px;
  font-size: 12px;
  color: #475467;
  background: #f2f4f7;
}
.tr-where b {
  padding: 0 6px;
  border-radius: 5px;
  font-weight: 600;
  color: #fff;
  background: #667085;
}
.tr-eg {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(2, 42, 153, 0.05);
}
.tr-eg b { color: var(--brand); font-size: 14px; }
.tr-eg__tag {
  margin-right: 6px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(2, 42, 153, 0.1);
}
.tr-cats {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed rgba(2, 42, 153, 0.25);
  border-radius: 12px;
  background: #fbfcff;
}
.tr-cats__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tr-cats__head b { font-size: 14px; color: var(--ink); }
.tr-cats__head span { font-size: 12px; color: var(--muted); }
.tr-cats__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-cats__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #344054;
  background: #fff;
  border: 1px solid var(--line);
}
.tr-cats__chip b { color: var(--brand); }
.tr-cats__eg, .tr-cats__empty { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* 右侧规则一览 */
.tr-aside {
  position: sticky;
  top: 0;
  min-width: 0;
  /* 最多一屏高（减去顶栏和上下留白），内容多了在框里滚动，不会被挡住 */
  max-height: calc(100vh - 64px - 48px);
  overflow-y: auto;
  border-radius: 16px;
  scrollbar-width: thin;
}
.tr-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.tr-summary__head {
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, rgba(2, 42, 153, 0.08), rgba(2, 42, 153, 0.02));
  border-bottom: 1px solid var(--line);
}
.tr-summary__head h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.tr-summary__head p { margin: 0; font-size: 12px; color: var(--muted); }
.tr-steps { list-style: none; margin: 0; padding: 8px 10px 2px; }
.tr-step {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
}
.tr-step:hover, .tr-step:focus-visible { background: #f5f7fb; }
.tr-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 34px;
  bottom: -8px;
  width: 2px;
  background: #e4e9f2;
}
.tr-step__no {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
}
.tr-step__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tr-step__label { font-size: 12px; color: var(--muted); }
.tr-step__main { font-size: 14px; line-height: 1.55; color: var(--ink); }
.tr-step__main b { color: var(--brand); font-weight: 700; }
.tr-step__sub { font-size: 12px; line-height: 1.5; color: #98a2b3; }
.tr-extras { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px 12px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.tr-extra {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tr-extra:hover { background: #f5f7fb; }
.tr-extra__label { flex: none; font-size: 13px; color: var(--muted); }
.tr-extra__text { min-width: 0; font-size: 13px; color: var(--ink); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-extra.is-warn .tr-extra__text { color: #b54708; }

/* 底部保存栏 */
.tr-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.06);
}
.tr-footer.is-dirty { border-color: #fedf89; background: rgba(255, 252, 245, 0.97); }
.tr-footer__info { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.tr-footer.is-dirty .tr-footer__info { color: #93370d; }
.tr-footer__info b { margin-right: 2px; }

@media (max-width: 1280px) {
  .tr-layout { grid-template-columns: minmax(0, 1fr); }
  .tr-aside { position: static; order: -1; max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  .tr-grid { grid-template-columns: minmax(0, 1fr); }
  .tr-card__head { flex-wrap: wrap; padding: 16px; }
  .tr-card__body { padding: 16px; }
  .tr-footer { flex-wrap: wrap; }
}

/* 租赁订单线下转账（2026-11-19） */
.kt-order-cell__sub.kt-rent-offline-flag { color: #b54708; font-weight: 600; }
.kt-rent-offline-tip { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.6; color: #93370d; background: #fffaeb; border: 1px solid #fedf89; }

/* ==========================================================================
   商品分类树（2026-11-19）：一级分类 → 分组 → 子类
   ========================================================================== */
.mc-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 2px 0 14px;
}
.mc-bar__stats { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: #f2f4f7;
}
.mc-stat b { font-size: 15px; color: var(--ink); }
.mc-stat.is-off b { color: #b42318; }
.mc-legend { display: flex; flex-wrap: wrap; gap: 14px; flex: 1; min-width: 0; }
.mc-legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mc-legend__item::before { content: ""; display: inline-block; }
.mc-legend__item--top::before { width: 12px; height: 12px; border-radius: 3px; background: var(--brand); }
.mc-legend__item--group::before { width: 10px; height: 10px; border-radius: 3px; border: 2px solid var(--brand); background: rgba(2, 42, 153, 0.12); }
.mc-legend__item--leaf::before { width: 14px; border-top: 1px dashed #98a2b3; }
.mc-bar__tools { display: flex; gap: 8px; margin-left: auto; }

.mc-tree {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow-x: auto;
}
.mc-tree > .mc-row--head,
.mc-tree > .mc-node { min-width: 920px; }
.mc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 64px 64px 72px 320px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  min-height: 46px;
}
.mc-tree--service .mc-row { grid-template-columns: minmax(0, 1fr) 64px 64px 72px 320px; }
.mc-row--head {
  min-height: 40px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.mc-col-num { text-align: right; font-variant-numeric: tabular-nums; color: #344054; font-size: 13px; }
.mc-row--head .mc-col-num { color: var(--muted); font-size: 12px; }
.mc-node + .mc-node { border-top: 1px solid var(--line); }

/* 一级分类 */
.mc-row--top {
  min-height: 66px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s;
  outline: none;
}
.mc-row--top:hover,
.mc-row--top:focus-visible { background: #f7f9fd; }
.mc-node.is-open > .mc-row--top { background: rgba(2, 42, 153, 0.045); border-left-color: var(--brand); }
.mc-node.is-context > .mc-row--top { opacity: 0.72; }
.mc-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mc-caret {
  flex: none;
  width: 0;
  height: 0;
  margin: 0 2px 0 4px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #667085;
  transition: transform 0.15s;
}
.mc-node.is-open .mc-caret { transform: rotate(90deg); border-left-color: var(--brand); }
.mc-thumb { flex: none; width: 36px; height: 36px; border-radius: 9px; object-fit: cover; background: #f2f4f7; }
.mc-thumb--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(2, 42, 153, 0.08);
}
.mc-thumb--sm { width: 24px; height: 24px; border-radius: 6px; }
.mc-name__texts { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mc-name__title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-name__text { font-size: 15px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-name__sub { font-size: 12px; color: var(--muted); }
.mc-tag { flex: none; padding: 0 7px; border-radius: 999px; font-size: 11px; line-height: 18px; }
.mc-tag--home { color: #067647; background: #dcfae6; }
.mc-row.is-off .mc-name__text,
.mc-row.is-off .mc-leaf-name { color: #98a2b3; text-decoration: line-through; text-decoration-color: rgba(152, 162, 179, 0.6); }

/* 展开后：分组 + 子类 */
.mc-children { padding: 2px 0 10px; background: #fbfcfe; border-top: 1px dashed #e4e9f2; }
.mc-branch { display: none; }
.mc-group { position: relative; }
.mc-group::before {
  content: "";
  position: absolute;
  left: 61px;
  top: 38px;
  bottom: 21px;
  border-left: 1px dashed #c3cddd;
}
.mc-row--group { min-height: 40px; }
.mc-row--group .mc-name { padding-left: 38px; gap: 8px; }
.mc-group-icon {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid var(--brand);
  background: rgba(2, 42, 153, 0.12);
}
.mc-group-name { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.02em; }
.mc-group-count { font-size: 12px; color: var(--muted); }
.mc-row--leaf { min-height: 42px; }
.mc-row--leaf:hover { background: #f2f5fb; }
.mc-row--leaf .mc-name { padding-left: 45px; gap: 8px; }
.mc-leaf-line { flex: none; width: 14px; border-top: 1px dashed #c3cddd; }
.mc-leaf-name { font-size: 14px; color: #344054; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-empty-kids { display: flex; align-items: center; gap: 8px; padding: 12px 16px 6px 58px; font-size: 13px; color: var(--muted); }

/* 操作：文字按钮，不抢眼 */
.mc-acts { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.mc-act {
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--brand);
  cursor: pointer;
  white-space: nowrap;
}
.mc-act:hover { background: rgba(2, 42, 153, 0.08); }
.mc-act--primary { font-weight: 600; }
.mc-act--warn { color: #b54708; }
.mc-act--warn:hover { background: #fff4e5; }
.mc-act--ok { color: #067647; }
.mc-act--ok:hover { background: #ecfdf3; }
.mc-act--danger { color: #b42318; }
.mc-act--danger:hover { background: #fef3f2; }
.mc-act:disabled { color: #c0c6d4; cursor: not-allowed; background: transparent; }
.mc-hl { padding: 0 1px; border-radius: 3px; color: inherit; background: #ffe58f; }
