:root {
  --brand: #106b57;
  --brand-dark: #0d4f42;
  --brand-soft: #e8f1ee;
  --accent: #d98324;
  --ink: #23201c;
  --ink-2: #5d574f;
  --ink-3: #928b81;
  --line: #e9e3d9;
  --bg: #f6f4ef;
  --sidebar: #10231d;
}

* { box-sizing: border-box; }

/* 表格列宽拖拽辅助 */
.table-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}

.nowrap-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }

.comment-cell {
  max-width: 520px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.comment-table-wrap { width: 100%; }
.comment-mobile-list { display: none; }

.comment-admin-card {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(32, 27, 18, 0.05);
}

.comment-admin-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.comment-admin-card__product {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.comment-admin-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.comment-admin-card__actions .el-button { margin-left: 0; }

.comment-mobile-empty {
  padding: 28px 12px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .comment-table-wrap { display: none !important; }
  .comment-mobile-list { display: block !important; }
}

/* 维吾尔语内容只替换文字，不改变整页方向；输入框内文字按维语习惯从右起排 */
.uy-input .el-input__inner,
.uy-input .el-textarea__inner {
  font-family: "ALKATIP Basma Tom", "UKIJ Tuz Tom", "Microsoft Uyghur Sans", "Noto Naskh Arabic", "Segoe UI", sans-serif;
  direction: rtl;
  text-align: right;
}

[data-lang="ug-CN"] .uy-input .el-input__inner,
[data-lang="ug-CN"] .uy-input .el-textarea__inner {
  direction: rtl;
}

/* 商品详情轮播图与图文详情编辑器 */
.product-gallery-editor { width: 100%; }

.product-gallery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.product-gallery-item {
  width: 112px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.product-gallery-item.is-cover { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(16, 107, 87, 0.12); }

.product-gallery-item img {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: cover;
  background: var(--bg);
}

.product-gallery-item__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1px;
  min-height: 42px;
  padding: 2px 6px;
}

.product-gallery-item__foot .el-button {
  height: 20px;
  margin-left: 0;
  padding: 0;
  font-size: 11px;
  line-height: 20px;
}

.product-gallery-item__cover {
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.product-gallery-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 112px;
  height: 130px;
  border: 1px dashed #c8d8d0;
  border-radius: 10px;
  background: #f7fbf9;
  color: var(--brand);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.product-gallery-add span { font-size: 24px; line-height: 1; }
.product-gallery-add small { font-size: 11px; color: var(--ink-3); text-align: center; }
.product-gallery-add:hover { border-color: var(--brand); background: #f0f8f4; }

.detail-blocks-editor { width: 100%; }

.detail-block-card {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
}

.detail-block-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-block-card__actions { display: flex; align-items: center; gap: 2px; }

.detail-block-card__text .el-input + .el-input { margin-top: 8px; }

.detail-block-card__image {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-block-card__image img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg);
}

.detail-block-card__qrcode {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.detail-block-card__qr-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-block-card__qr-hint {
  font-size: 12px;
  line-height: 1.7;
}

.detail-block-card__media {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-setting-block {
  margin-top: 26px;
}

.popup-setting-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.popup-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.popup-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin: 12px 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
}

.popup-preview img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 10px;
  object-fit: contain;
}

.popup-preview--empty {
  color: var(--ink-3);
  font-size: 13px;
}

.footer-qr-preview img {
  width: 168px;
  height: 168px;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .popup-setting-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.detail-block-card__qr-preview {
  width: 148px;
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-size: 12px;
}

.detail-block-card__qr-preview img {
  display: block;
  width: 136px;
  height: 136px;
  object-fit: contain;
}

.detail-block-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

/* 商品规格与 SKU 编辑器 */
.spec-editor {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
}

.spec-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.spec-editor__head .muted { line-height: 1.6; }

.spec-group {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #dfe9e3;
  border-radius: 8px;
  background: #fff;
}

.spec-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.spec-group__name { flex: 1 1 160px; }

.spec-values {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.spec-value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.spec-value-row .el-input { flex: 1 1 150px; }

.spec-editor__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.spec-editor__actions .muted { font-size: 12px; line-height: 1.5; }

.sku-editor {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sku-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sku-editor__title { font-size: 13px; font-weight: 600; color: var(--ink-1); }

.sku-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 7px 9px;
  border: 1px solid #e5eee9;
  border-radius: 8px;
  background: #fff;
}

.sku-row__name {
  flex: 1 1 170px;
  min-width: 120px;
  color: var(--ink-1);
  font-size: 12px;
  line-height: 1.45;
}

.sku-row__price,
.sku-row__stock {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
}

.sku-row__price .el-input-number { width: 120px; }
.sku-row__stock .el-input-number { width: 102px; }

.spec-editor__empty {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #d4e1da;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .spec-group__name { flex-basis: 100%; }
  .sku-row__price .el-input-number { width: 110px; }
  .sku-row__stock .el-input-number { width: 96px; }
}

@media (max-width: 900px) {
  .product-gallery-item,
  .product-gallery-add { width: 88px; }
  .product-gallery-item img { height: 66px; }
  .product-gallery-add { height: 112px; }
}
@media (max-width: 900px) {
  .el-table .el-scrollbar__bar.is-horizontal {
    display: block !important;
    height: 8px;
    opacity: 1;
  }
  .el-table .el-scrollbar__bar.is-horizontal .el-scrollbar__thumb {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 4px;
    opacity: 1;
  }
}

.category-create {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.category-icon-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.category-icon-field--dialog {
  margin-top: 0;
}

.category-icon-preview {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #cfded6;
  border-radius: 14px;
  background: #f5faf7;
  color: var(--ink-3);
  font-size: 12px;
}

.category-icon-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.category-icon-actions__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cat-icon-thumb {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #dce9e2;
  border-radius: 10px;
  background: #f4faf7;
  color: #17735c;
  font-size: 15px;
  font-weight: 700;
}

.cat-icon-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cat-name-copy {
  min-width: 0;
}

.cat-name-copy .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app { min-height: 100vh; }

/* ------------------------------------------------ 登录页 */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 107, 87, 0.09), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(217, 131, 36, 0.10), transparent 45%),
    var(--bg);
}

.login-card {
  width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 38px 36px 30px;
  box-shadow: 0 20px 50px rgba(28, 34, 30, 0.1);
  border: 1px solid var(--line);
}

.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }

.brand-mark {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), #2f9c7d);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 19px;
}

.brand-mark--logo {
  width: 44px; height: 44px; min-width: 0; min-height: 0;
  padding: 0; border: 1px solid rgba(18, 47, 37, 0.12); border-radius: 50%;
  background: #fff; overflow: hidden;
}

.brand-mark--logo img {
  display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center;
}

.login-brand .t1 { font-size: 19px; font-weight: 700; letter-spacing: 2px; }
.login-brand .t2 { font-size: 11px; color: var(--ink-3); letter-spacing: 2px; }

.login-tip {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.8;
  background: #fbfaf6;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

/* ------------------------------------------------ 主框架 */
.admin-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  background: var(--sidebar);
  color: #e7eee9;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.sidebar-brand { display: flex; gap: 11px; align-items: center; padding: 0 6px 22px; flex-shrink: 0; }

.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }

.sidebar-brand .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #1a8a6e, #2fb58d);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
}

.sidebar-brand .name { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-brand .sub { font-size: 10px; color: rgba(231, 238, 233, 0.5); letter-spacing: 2px; margin-top: 2px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: rgba(231, 238, 233, 0.72);
  cursor: pointer;
  transition: all 0.16s;
  margin-bottom: 4px;
}

.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.nav-item.active {
  background: linear-gradient(90deg, rgba(47, 181, 141, 0.22), rgba(47, 181, 141, 0.06));
  color: #fff;
  box-shadow: inset 2px 0 0 #2fb58d;
}

.nav-item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(231, 238, 233, 0.35);
}

.nav-item.active .dot { background: #45d3a4; }

.sidebar-foot {
  margin-top: 0;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  font-size: 12px;
  color: rgba(231, 238, 233, 0.55);
}

.sidebar-foot .who { color: #fff; font-size: 13px; margin-bottom: 4px; }

.main-area { flex: 1; min-width: 0; padding: 26px 30px 40px; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-head .eyebrow { font-size: 11px; letter-spacing: 3px; color: var(--ink-3); }
.page-head h1 { margin: 6px 0 0; font-size: 24px; font-weight: 700; }
.page-head .desc { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ------------------------------------------------ 卡片 */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}

.stat-card .label { font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }
.stat-card .value { font-size: 28px; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat-card .sub { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.stat-card.accent { background: linear-gradient(140deg, #125a49, #1d7d63); border: none; color: #fff; }
.stat-card.accent .label, .stat-card.accent .sub { color: rgba(255, 255, 255, 0.75); }

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.toolbar .spacer { flex: 1; }

.table-thumb {
  width: 48px; height: 48px; border-radius: 9px; object-fit: cover;
  background: #f2f1ed; display: block;
}

.ads-no-image {
  width: 48px; height: 48px; border-radius: 9px; background: #f2f1ed;
  color: var(--ink-3); font-size: 10px; display: flex; align-items: center; justify-content: center;
}

.banner-upload-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.banner-preview {
  width: 168px; height: 94px; border-radius: 10px; overflow: hidden;
  background: #f2f1ed; border: 1px dashed #d9d7d0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 12px;
}

.banner-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.banner-preview--cover {
  width: 210px;
  height: 70px;
}

.banner-target {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
  word-break: break-all;
}

.banner-link-hint {
  margin: -4px 0 14px 120px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

.ads-dialog .el-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ads-dialog .el-radio-button {
  margin-right: 0;
}

@media (max-width: 640px) {
  .banner-link-hint { margin-left: 0; }
}

.ads-dialog .el-dialog__body {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
}

.thumb-fallback {
  width: 48px; height: 48px; border-radius: 9px;
  background: linear-gradient(135deg, #e4ece8, #f5eee2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #7e938a; font-weight: 600;
}

.price-cell { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

.admin-avatar-sm,
.admin-avatar-lg {
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #176f5a, #35a17e);
  color: #f7f1df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.admin-avatar-sm { width: 34px; height: 34px; font-size: 13px; }
.admin-avatar-lg { width: 72px; height: 72px; font-size: 24px; }
.admin-avatar-sm img,
.admin-avatar-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.muted { color: var(--ink-3); font-size: 12px; }

.order-goods { font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.order-goods span { display: block; }
.order-goods__spec { color: var(--ink-3); font-size: 12px; font-style: normal; }

/* 订单表格保留桌面视图，窄屏切换为完整卡片，避免固定操作列遮挡信息 */
.order-table-wrap { width: 100%; }
.order-mobile-list { display: none; }

.order-card {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(32, 27, 18, 0.05);
}

.order-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.order-card__no {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
}

.order-card__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 5px 0;
}

.order-card__label {
  flex: 0 0 64px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.7;
}

.order-card__row > div,
.order-card__row > span.price-cell {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}

.order-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.order-card__actions .el-button { margin-left: 0; }

.order-mobile-empty {
  padding: 28px 12px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

.tracking-info {
  margin-top: 10px;
  background: var(--brand-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-box { display: flex; gap: 14px; align-items: flex-start; }

.upload-preview {
  width: 108px; height: 108px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #f6f5f1;
  display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 12px;
}

.upload-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------ 响应式 */
@media (max-width: 820px) {
  .admin-shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    max-height: none;
    position: static;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 12px 14px 10px;
    overflow: hidden;
  }
  .sidebar-brand { padding: 0 2px 8px; width: 100%; flex-shrink: 0; }
  .sidebar-nav {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    width: 100%;
    min-height: 0;
    gap: 6px;
    padding: 0 0 4px;
    overflow: visible;
    white-space: normal;
  }
  .nav-item { flex: 0 0 auto; margin-bottom: 0; white-space: nowrap; }
  .sidebar-foot {
    display: flex;
    width: 100%;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 4px;
    padding-top: 10px;
  }
  .sidebar-foot > div { margin: 0 !important; }
  .sidebar-foot > div:last-child { gap: 6px !important; }
  .main-area { padding: 20px 16px 32px; }
  .page-head { align-items: flex-start; flex-wrap: wrap; }
  .page-head > div:last-child { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  .header-logout { margin-left: 0; }
  .site-brand-footer { margin-left: 0; margin-right: 0; padding: 12px; }
  .site-footer-actions { width: 100%; }
  .site-footer-actions .el-button { flex: 1 1 140px; }
}

/* 订单在窄屏切换为卡片，保证买家、商品、金额、状态、物流、处理人和操作都可见 */
@media (max-width: 900px) {
  .order-table-wrap { display: none !important; }
  .order-mobile-list { display: block !important; }
}

/* 系统品牌设置 */
.sidebar-brand .mark--logo {
  width: 38px;
  height: 38px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sidebar-brand .mark--logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.site-brand-panel {
  padding: 26px 28px 22px;
}

.site-brand-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.site-brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--ink);
}

.site-brand-desc {
  margin-top: 7px;
  max-width: 720px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
}

.site-brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
}

.site-brand-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 45, 38, 0.05);
}

.site-card-title {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.site-name-form .el-form-item {
  margin-bottom: 16px;
}

.site-name-form .el-form-item__label {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.site-note {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.65;
}

.faq-admin-empty {
  padding: 30px 16px;
  border: 1px dashed #d5e3dc;
  border-radius: 14px;
  background: #f8fbf9;
  color: var(--ink-3);
  text-align: center;
  font-size: 13px;
}

.faq-admin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-admin-item {
  padding: 16px;
  border: 1px solid #e1ebe5;
  border-radius: 16px;
  background: #fbfdfc;
}

.faq-admin-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e1ebe5;
}

.faq-admin-item__title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.faq-admin-item__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
}

.faq-admin-grid .el-form-item {
  margin-bottom: 8px;
}

.faq-admin-grid .el-form-item__label {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 820px) {
  .faq-admin-grid { grid-template-columns: 1fr; }
  .faq-admin-item__head { align-items: flex-start; flex-direction: column; }
  .faq-admin-item__tools { width: 100%; justify-content: space-between; }
}

.site-logo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #f4f9f6;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}

.site-logo-meta.is-warn {
  background: #fff8ed;
  color: #9a6414;
}

.site-card-divider {
  height: 1px;
  margin: 20px 0;
  background: var(--line);
}

.site-standard {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border: 1px dashed #d5e3dc;
  border-radius: 12px;
  background: #f8fbf9;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
}

.site-standard__badge {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}

.site-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
}

.site-preview-stage {
  padding: 22px 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 18%, rgba(40, 155, 124, 0.12), transparent 42%),
    linear-gradient(135deg, #f2f7f4, #fbfaf6);
  border: 1px solid #edf2ef;
}

.site-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 45, 35, 0.07);
  overflow: hidden;
}

.site-preview-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-preview-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 42px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1a8a6e, #2fb58d);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.site-preview-mark--logo {
  width: 44px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(18, 47, 37, 0.12);
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}

.site-preview-mark--logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.site-preview-name {
  max-width: 190px;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-preview-links {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  color: var(--ink-3);
  font-size: 11px;
}

.site-slider-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.site-slider-label {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.site-preview-actions {
  margin-top: 16px;
  text-align: right;
}

.site-brand-footer {
  position: sticky;
  bottom: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px -6px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(20, 40, 32, 0.08);
  backdrop-filter: blur(8px);
}

.site-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer-actions .el-button {
  margin-left: 0;
}

.site-footer-meta {
  color: var(--ink-3);
  font-size: 12px;
}

.site-note--footer {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .site-brand-grid {
    grid-template-columns: 1fr;
  }

  .site-brand-panel {
    padding: 22px 18px;
  }

  .site-preview-links {
    display: none;
  }
}

.share-setting-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.share-reward-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.share-reward-row .site-slider-label {
  width: 96px;
  flex: none;
}

.share-reward-label {
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  color: var(--ink-2);
}

.share-poster-preview {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 8px auto 14px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #0c5a49, #2c8f6f 55%, #f5f7f6 55.2%);
  border: 1px solid var(--line);
}

.share-poster-preview--empty {
  aspect-ratio: 750 / 1100;
}

.share-poster-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.share-poster-empty {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.share-poster-empty small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.share-poster-qr {
  position: absolute;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(12, 90, 73, 0.55) 0 4px, rgba(255, 255, 255, 0.55) 4px 8px),
    #ffffff;
  color: #0c5a49;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 55, 44, 0.24);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: box-shadow 0.15s ease, outline-color 0.15s ease;
  outline: 2px solid transparent;
}

.share-poster-qr:hover,
.share-poster-preview.is-dragging .share-poster-qr {
  box-shadow: 0 8px 22px rgba(15, 55, 44, 0.32);
  outline-color: rgba(255, 255, 255, 0.75);
}

.share-poster-qr.dragging {
  cursor: grabbing;
}

.share-drag-hint {
  margin: -4px 0 12px;
  text-align: center;
  color: #0c5a49;
  font-weight: 600;
}
  box-sizing: border-box;
}

.wallet-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(12, 90, 73, 0.08), rgba(44, 143, 111, 0.04));
  border: 1px solid rgba(12, 90, 73, 0.12);
  margin-bottom: 16px;
}

.wallet-summary__main {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
}

.wallet-summary__main strong {
  color: #d97706;
  font-size: 24px;
}

.wallet-summary__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-3);
  font-size: 13px;
  flex-wrap: wrap;
}

.wallet-charge-form {
  margin-bottom: 10px;
}

.wallet-plus {
  color: #0f8a5f;
  font-weight: 600;
}

.wallet-minus {
  color: #d14343;
  font-weight: 600;
}

/* 代理佣金编辑器 */
.commission-editor {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
}
.commission-editor__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.commission-editor__label {
  width: 72px;
  font-size: 13px;
  color: var(--ink-2);
}
.commission-editor__unit {
  font-size: 13px;
  color: var(--ink-3);
}
.commission-editor__inherit {
  font-size: 13px;
  color: #17735c;
  background: rgba(23, 115, 92, 0.08);
  border-radius: 8px;
  padding: 5px 9px;
}

/* 代理默认佣金设置 */
.commission-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.commission-setting-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
}
.commission-setting-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.commission-setting-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.commission-setting-input .el-input-number {
  width: 100%;
}
.commission-setting-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
}
.commission-setting-preview {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(23, 115, 92, 0.10), rgba(44, 143, 111, 0.06));
  color: #125c49;
  font-size: 13px;
}
.commission-setting-note {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.7;
}
.commission-setting-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
@media (max-width: 760px) {
  .commission-setting-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- 小程序发布 */
.mini-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mini-status-item {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbf9;
}

.mini-status-item .label {
  margin-bottom: 5px;
  color: var(--ink-3);
  font-size: 11px;
}

.mini-status-item .value {
  color: #b04141;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mini-status-item .value.is-ok {
  color: #17735c;
}

.mini-upload { width: 100%; }

.mini-upload .el-upload,
.mini-upload .el-upload-dragger {
  width: 100%;
}

.mini-upload .el-upload-dragger {
  padding: 18px 12px;
  border-radius: 12px;
  background: #f8fbf9;
}

.mini-drop-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.mini-drop-hint {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.6;
}

.mini-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f1f7f4;
  color: var(--ink-2);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mini-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-log-detail {
  padding: 4px 18px 12px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}

.mini-log-error {
  margin-top: 6px;
  color: #b04141;
  overflow-wrap: anywhere;
}

.mini-log-result pre {
  max-height: 220px;
  margin: 6px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow: auto;
}

.mini-log-pager {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .mini-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .mini-status-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------- 素材安全清理 */
.storage-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.storage-hero {
  padding: 20px 22px;
}

.storage-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.storage-hero-copy {
  min-width: 0;
}

.storage-eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.storage-hero-desc {
  max-width: 760px;
  margin-top: 8px;
  line-height: 1.7;
}

.storage-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.storage-scan-time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.storage-safety-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.storage-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.storage-stat {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.storage-stat--accent {
  border-color: #e7c98a;
  background: linear-gradient(145deg, #fffdf5, #fdf6e7);
}

.storage-stat-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.storage-stat-value {
  margin-top: 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.storage-stat--accent .storage-stat-value {
  color: #a56b12;
}

.storage-stat-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.storage-panel {
  padding: 20px 22px;
}

.storage-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.storage-panel-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.storage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbf9;
}

.storage-toolbar-left,
.storage-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.storage-selected {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.storage-table {
  width: 100%;
}

.storage-thumb-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}

.storage-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storage-thumb-missing {
  color: var(--muted);
}

.storage-file-name {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.storage-file-path {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.storage-empty {
  margin-top: 12px;
  padding: 32px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfdfc;
  text-align: center;
}

.storage-empty--soft {
  margin-top: 10px;
}

.storage-empty-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.storage-limit-note {
  margin-top: 10px;
}

.storage-recycle {
  padding: 20px 22px;
}

.storage-batch {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.storage-batch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.storage-batch-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.storage-batch-id {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.storage-batch-time,
.storage-batch-expire {
  color: var(--muted);
  font-size: 11px;
}

.storage-table--recycle {
  margin-top: 10px;
}

@media (max-width: 1280px) {
  .storage-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .storage-hero-head,
  .storage-panel-head,
  .storage-toolbar,
    .storage-batch-head {
    flex-direction: column;
    align-items: stretch;
  }

  .storage-hero-actions,
  .storage-panel-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .storage-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storage-toolbar-right {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .storage-stat-grid {
    grid-template-columns: 1fr;
  }
}
