:root {
  --hz-brand: #f97316;
  --hz-brand-strong: #c2570b;
  --hz-brand-soft: #fff1e8;
  --hz-primary: #315bef;
  --hz-primary-strong: #1e43d0;
  --hz-primary-soft: #eef3ff;
  --hz-price: #f04438;
  --hz-price-soft: #fff0ee;
  --hz-promo: #ff5a7a;
  --hz-promo-soft: #fff0f4;
  --hz-orange: #ff8a1f;
  --hz-orange-soft: #fff4e7;
  --hz-success: #18a058;
  --hz-success-soft: #eaf8f0;
  --hz-warning: #e38b0b;
  --hz-warning-soft: #fff6df;
  --hz-danger: #d92d20;
  --hz-danger-soft: #fff0ee;
  --hz-ink: #1b2430;
  --hz-muted: #667085;
  --hz-line: #e6eaf1;
  --hz-bg: #f5f7fb;
  --hz-surface: #ffffff;
  --hz-surface-soft: #f7f9fc;
  --hz-radius: 8px;
  --hz-radius-sm: 6px;
  --hz-shadow: 0 8px 28px rgba(31, 46, 86, 0.08);
}


body.app-consumer {
  --page: #eef2f8;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --surface-muted: #eef2f8;
  --ink: #1b2430;
  --ink-strong: #111827;
  --muted: #667085;
  --line: #e6eaf1;
  --brand: #315bef;
  --brand-strong: #1e43d0;
  --brand-soft: #eef3ff;
  --accent: #f04438;
  --accent-soft: #fff0ee;
  --success: #18a058;
  --success-soft: #eaf8f0;
  --warning: #e38b0b;
  --warning-soft: #fff6df;
  --danger: #d92d20;
  --danger-soft: #fff0ee;
  --shadow: 0 18px 48px rgba(36, 55, 110, 0.12);
}

body.app-merchant,
body.app-platform {
  --ink: #1b2430;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #e6eaf1;
  --line-strong: #d4dae5;
  --soft: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --sidebar: #ffffff;
  --sidebar-muted: #667085;
  --teal: #315bef;
  --teal-soft: #eef3ff;
  --green: #18a058;
  --green-soft: #eaf8f0;
  --amber: #e38b0b;
  --amber-soft: #fff6df;
  --blue: #315bef;
  --blue-soft: #eef3ff;
  --red: #d92d20;
  --red-soft: #fff0ee;
  --gray-soft: #f2f4f8;
  --shadow: 0 10px 32px rgba(31, 46, 86, 0.08);
  color: var(--ink);
  background: var(--soft);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

body.app-wechat {
  --ink: #1b2430;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e6eaf1;
  --line-strong: #d4dae5;
  --surface: #ffffff;
  --canvas: #eef2f8;
  --soft: #f5f7fb;
  --brand: #315bef;
  --brand-dark: #1e43d0;
  --brand-soft: #eef3ff;
  --green: #18a058;
  --green-soft: #eaf8f0;
  --blue: #315bef;
  --blue-soft: #eef3ff;
  --amber: #e38b0b;
  --amber-soft: #fff6df;
  --red: #d92d20;
  --red-soft: #fff0ee;
  --shadow: 0 10px 30px rgba(31, 46, 86, 0.1);
}

body.app-merchant [hidden],
body.app-platform [hidden],
body.app-wechat [hidden],
body.app-consumer [hidden] {
  display: none !important;
}

body.app-merchant .topbar,
body.app-platform .topbar,
body.app-wechat .app-header {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--hz-line);
  box-shadow: 0 1px 0 rgba(31, 46, 86, 0.03);
}

body.app-merchant .brand-mark,
body.app-platform .brand-mark,
body.app-wechat .brand-mark,
body.app-consumer .brand-mark {
  color: #ffffff;
  background: var(--hz-brand);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.2);
}

body.app-merchant .sidebar,
body.app-platform .sidebar {
  color: var(--hz-ink);
  background: #ffffff;
  border-right: 1px solid var(--hz-line);
  box-shadow: none;
}

body.app-merchant .sidebar-store,
body.app-platform .sidebar-context {
  color: var(--hz-ink);
  background: var(--hz-surface-soft);
  border: 1px solid var(--hz-line);
  border-radius: var(--hz-radius);
}

body.app-merchant .sidebar-store span,
body.app-merchant .sidebar-store small,
body.app-platform .sidebar-context span,
body.app-platform .sidebar-context small,
body.app-merchant .sidebar-foot small,
body.app-platform .sidebar-foot small {
  color: var(--hz-muted);
}

body.app-merchant .sidebar-store strong,
body.app-platform .sidebar-context strong,
body.app-merchant .sidebar-foot strong,
body.app-platform .sidebar-foot strong {
  color: var(--hz-ink);
}

body.app-merchant .sidebar nav button,
body.app-platform .nav-item {
  color: #475467;
  border-radius: var(--hz-radius-sm);
}

body.app-merchant .sidebar nav button:hover,
body.app-platform .nav-item:hover {
  color: var(--hz-primary);
  background: #f5f7fd;
}

body.app-merchant .sidebar nav button.active,
body.app-platform .nav-item.active {
  color: var(--hz-primary);
  background: var(--hz-primary-soft);
  font-weight: 700;
}

body.app-merchant .nav-domain-label,
body.app-platform .nav-domain-label {
  margin: 10px 8px 2px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

body.app-merchant .nav-domain-label:first-child,
body.app-platform .nav-domain-label:first-child {
  margin-top: 2px;
}

body.app-merchant .modal-overlay.is-drawer {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
}

body.app-merchant .modal.is-drawer {
  display: flex;
  width: min(760px, 100%);
  height: 100%;
  flex-direction: column;
  border-radius: 0;
  animation: merchant-drawer-in 180ms ease-out;
}

body.app-merchant .modal.is-drawer .modal-head {
  flex: 0 0 auto;
  padding: 18px 20px;
}

body.app-merchant .modal.is-drawer .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 20px;
  overflow-y: auto;
}

body.app-merchant .modal.is-drawer .modal-actions {
  flex: 0 0 auto;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid var(--hz-line);
}

@keyframes merchant-drawer-in {
  from {
    transform: translateX(30px);
  }
}

.order-fulfillment-hero {
  margin-bottom: 14px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
}

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

.of-hero-title {
  min-width: 0;
}

.of-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #667085;
  font-size: 10px;
}

.of-hero-title h3 {
  margin: 8px 0 4px;
  color: #1b2430;
  font-size: 17px;
  line-height: 1.35;
}

.of-hero-title p {
  margin: 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.55;
}

.of-money {
  display: grid;
  min-width: 190px;
  gap: 3px;
  padding-left: 16px;
  border-left: 1px solid #dce3ed;
  text-align: right;
}

.of-money > span {
  color: #667085;
  font-size: 10px;
}

.of-money strong {
  color: #1b2430;
  font-size: 17px;
}

.of-money small {
  color: #667085;
  font-size: 10px;
  line-height: 1.45;
}

.of-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.of-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #98a2b3;
  font-size: 10px;
  text-align: center;
}

.of-steps li::before {
  position: absolute;
  top: 5px;
  right: 50%;
  left: -50%;
  height: 1px;
  background: #dce3ed;
  content: "";
}

.of-steps li:first-child::before {
  display: none;
}

.of-steps li i {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  background: #ffffff;
  border: 2px solid #cbd3df;
  border-radius: 50%;
}

.of-steps li.is-done,
.of-steps li.is-current {
  color: #244dda;
  font-weight: 650;
}

.of-steps li.is-done::before,
.of-steps li.is-current::before {
  background: #7b96ee;
}

.of-steps li.is-done i {
  background: #315bef;
  border-color: #315bef;
}

.of-steps li.is-current i {
  background: #ffffff;
  border-color: #315bef;
  box-shadow: 0 0 0 4px #e8eeff;
}

.of-hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid #e1e7f0;
}

.of-next-step {
  display: grid;
  align-content: start;
  gap: 4px;
}

.of-next-step > span {
  color: #244dda;
  font-size: 10px;
  font-weight: 750;
}

.of-next-step strong {
  color: #1b2430;
  font-size: 14px;
}

.of-next-step small {
  color: #667085;
  font-size: 10px;
  line-height: 1.55;
}

.of-next-step button {
  width: fit-content;
  margin-top: 4px;
}

.of-gates {
  display: grid;
  align-content: start;
  gap: 7px;
}

.of-gate-summary {
  padding: 7px 9px;
  color: #475467;
  background: #ffffff;
  border-left: 3px solid #98a2b3;
  font-size: 10px;
  line-height: 1.45;
}

.of-gate-summary.success {
  color: #087443;
  border-left-color: #18a058;
}

.of-gate-summary.warning {
  color: #9a5b00;
  border-left-color: #e38b0b;
}

.of-gate-summary.danger {
  color: #b42318;
  border-left-color: #d92d20;
}

.of-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.of-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 3px 7px;
  color: #667085;
  background: #ffffff;
  border: 1px solid #e1e7f0;
  border-radius: 5px;
  font: inherit;
  font-size: 9px;
}

.of-check b {
  font-weight: 650;
}

.of-check em {
  font-style: normal;
}

.of-check u {
  color: inherit;
  text-decoration: none;
  font-size: 8px;
  font-weight: 700;
}

button.of-check {
  cursor: pointer;
}

button.of-check:hover {
  border-color: currentColor;
  box-shadow: 0 2px 8px rgba(31, 46, 86, 0.08);
}

.of-check.is-pass {
  color: #087443;
  background: #eefaf4;
  border-color: #bce8d2;
}

.of-check.is-wait {
  color: #9a5b00;
  background: #fff8e8;
  border-color: #f1d494;
}

.of-check.is-danger {
  color: #b42318;
  background: #fff1ef;
  border-color: #f2c1bb;
}

.of-check.is-muted {
  color: #98a2b3;
  background: #f7f9fc;
}

body.app-consumer .consumer-order-next {
  margin-top: 12px;
  padding: 12px;
  background: #f5f7ff;
  border: 1px solid #dbe3ff;
  border-radius: 8px;
}

body.app-consumer .consumer-order-next > div {
  display: grid;
  gap: 3px;
}

body.app-consumer .consumer-order-next span {
  color: #315bef;
  font-size: 9px;
  font-weight: 750;
}

body.app-consumer .consumer-order-next strong {
  color: #1b2430;
  font-size: 13px;
}

body.app-consumer .consumer-order-next small {
  color: #667085;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .of-hero-head,
  .of-hero-foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .of-hero-head {
    display: grid;
  }

  .of-money {
    min-width: 0;
    padding: 10px 0 0;
    border-top: 1px solid #dce3ed;
    border-left: 0;
    text-align: left;
  }

  .of-steps {
    overflow-x: auto;
  }

  .of-steps li {
    min-width: 74px;
  }
}

body.app-merchant .order-detail-tabs,
body.app-platform .platform-order-detail-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  top: -18px;
  margin: 0 -2px 14px;
  padding: 10px 2px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e6eaf1;
}

body.app-merchant .order-detail-tabs button,
body.app-platform .platform-order-detail-tabs button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #e6eaf1;
  border-radius: 7px;
  text-align: left;
  white-space: normal;
}

body.app-merchant .order-detail-tabs button:hover,
body.app-platform .platform-order-detail-tabs button:hover {
  color: #244dda;
  background: #f2f5ff;
  border-color: #cfd9fb;
}

body.app-merchant .order-detail-tabs button.active,
body.app-platform .platform-order-detail-tabs button.is-active {
  color: #244dda;
  background: #eef3ff;
  border-color: #aebfff;
  box-shadow: inset 0 0 0 1px rgba(49, 91, 239, 0.08);
}

.od-tab-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  color: #667085;
  background: #ffffff;
  border: 1px solid #e1e7f0;
  border-radius: 6px;
}

.od-tab-icon svg {
  width: 15px;
  height: 15px;
}

.order-detail-tabs button[data-tone="danger"] .od-tab-icon {
  color: #b42318;
  background: #fff1ef;
  border-color: #f2c1bb;
}

.order-detail-tabs button[data-tone="warning"] .od-tab-icon {
  color: #9a5b00;
  background: #fff8e8;
  border-color: #f1d494;
}

.order-detail-tabs button[data-tone="success"] .od-tab-icon {
  color: #087443;
  background: #eefaf4;
  border-color: #bce8d2;
}

.order-detail-tabs button[data-tone="info"] .od-tab-icon {
  color: #244dda;
  background: #eef3ff;
  border-color: #cbd6ff;
}

.order-detail-tabs button.active .od-tab-icon,
.order-detail-tabs button.is-active .od-tab-icon {
  color: #ffffff;
  background: #315bef;
  border-color: #315bef;
}

.od-tab-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.od-tab-copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-tab-copy small {
  overflow: hidden;
  color: #7b8496;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-detail-tabs button.active .od-tab-copy small,
.order-detail-tabs button.is-active .od-tab-copy small {
  color: #315bef;
}

body.app-merchant .order-detail-tabs button:focus-visible,
body.app-platform .platform-order-detail-tabs button:focus-visible {
  outline: 2px solid #315bef;
  outline-offset: 2px;
}

.review-material-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.review-material-heading > div {
  display: grid;
  gap: 3px;
}

.review-material-heading strong {
  color: #1b2430;
  font-size: 13px;
}

.review-material-heading small {
  color: #667085;
  font-size: 10px;
  line-height: 1.5;
}

.review-material-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.review-material-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 78px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #e1e7f0;
  border-radius: 7px;
  text-align: left;
  cursor: pointer;
}

.review-material-card:hover,
.review-material-card.is-active {
  color: #244dda;
  background: #f2f5ff;
  border-color: #b9c8fb;
}

.review-material-card > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.review-material-card strong {
  font-size: 12px;
}

.review-material-card small {
  overflow: hidden;
  color: #667085;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-material-card em {
  position: absolute;
  top: 7px;
  right: 8px;
  color: #98a2b3;
  font-size: 8px;
  font-style: normal;
}

.review-material-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #667085;
  background: #ffffff;
  border: 1px solid #e1e7f0;
  border-radius: 6px;
}

.review-material-icon svg {
  width: 16px;
  height: 16px;
}

.review-material-card.is-success .review-material-icon {
  color: #087443;
  background: #eefaf4;
  border-color: #bce8d2;
}

.review-material-card.is-warning .review-material-icon {
  color: #9a5b00;
  background: #fff8e8;
  border-color: #f1d494;
}

.review-material-card.is-danger .review-material-icon {
  color: #b42318;
  background: #fff1ef;
  border-color: #f2c1bb;
}

.order-material-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #dce3ed;
}

.material-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  color: #475467;
  background: #f8fafc;
  border-left: 3px solid #315bef;
  font-size: 11px;
}

.order-detail-note.is-danger {
  color: #912018;
  background: #fff3f1;
  border-left-color: #d92d20;
}

.order-detail-note.is-success {
  color: #067647;
  background: #effcf6;
  border-left-color: #12b76a;
}

.material-status-line span {
  color: #667085;
}

@media (max-width: 720px) {
  .review-material-heading {
    flex-direction: column;
  }

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

@media (max-width: 720px) {
  body.app-merchant .order-detail-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 250px;
    overflow-y: auto;
  }

  body.app-platform .platform-order-detail-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 250px;
    overflow-y: auto;
  }
}

.product-wizard-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.product-wizard-steps button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  color: #667085;
  background: #f7f9fc;
  border: 1px solid var(--hz-line);
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

.product-wizard-steps button i {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: #667085;
  background: #ffffff;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.product-wizard-steps button.is-active {
  color: var(--hz-primary);
  background: var(--hz-primary-soft);
  border-color: #c7d3ff;
  font-weight: 700;
}

.product-wizard-steps button.is-active i {
  color: #ffffff;
  background: var(--hz-primary);
}

.product-step[hidden] {
  display: none !important;
}

.product-step-note {
  margin: 12px 0 0;
  padding: 9px 10px;
  color: #667085;
  background: #f7f9fc;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.55;
}

.product-dynamic-fields,
.product-service-fields {
  display: grid;
  gap: 10px;
}

.product-review .detail-grid {
  margin-bottom: 0;
}

body.app-merchant .main,
body.app-platform .main {
  background: var(--hz-bg);
}

body.app-merchant .panel,
body.app-platform .panel,
body.app-merchant .metric,
body.app-platform .metric-card {
  border: 1px solid var(--hz-line);
  border-radius: var(--hz-radius);
  background: var(--hz-surface);
  box-shadow: none;
}

body.app-merchant .panel-head,
body.app-platform .panel-head {
  border-color: var(--hz-line);
}

body.app-platform .metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

body.app-platform .metric-card {
  min-height: 84px;
  padding: 12px;
}

body.app-platform .metric-value {
  font-size: 22px;
}

body.app-merchant .metrics {
  gap: 10px;
}

body.app-merchant .metric {
  min-height: 112px;
  padding: 14px;
}

body.app-merchant .metric strong {
  font-size: 24px;
}

body.app-merchant .main,
body.app-platform .main {
  padding-top: 16px;
}

body.app-merchant .panel-head,
body.app-platform .panel-head {
  padding-top: 12px;
  padding-bottom: 12px;
}

body.app-merchant .metric::before,
body.app-platform .metric-card::before {
  height: 3px;
  border-radius: 3px 3px 0 0;
}

body.app-merchant .table-wrap,
body.app-platform .table-shell,
body.app-platform .order-batch-panel {
  border-color: var(--hz-line);
  border-radius: var(--hz-radius);
  background: var(--hz-surface);
}

body.app-merchant table th,
body.app-platform table th {
  color: #667085;
  background: #f7f9fc;
}

body.app-merchant table td,
body.app-platform table td {
  border-color: #edf0f5;
}

body.app-merchant .service-request-actions {
  min-width: 112px;
  flex-wrap: nowrap;
}

body.app-merchant .service-request-actions button {
  min-width: 48px;
  white-space: nowrap;
}

.merchant-row-action {
  white-space: nowrap;
}

.merchant-chat-thread {
  display: grid;
  gap: 10px;
  max-height: 380px;
  padding: 14px;
  margin: 14px 0;
  overflow: auto;
  background: #f6f8fc;
  border: 1px solid var(--hz-line);
  border-radius: 8px;
}

.merchant-chat-message {
  max-width: 82%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--hz-line);
  border-radius: 8px;
}

.merchant-chat-message.out {
  justify-self: end;
  background: #eef4ff;
  border-color: #cfe0ff;
}

.merchant-chat-message.system {
  justify-self: center;
  color: var(--hz-muted);
  background: #f1f4f9;
}

.merchant-chat-message header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--hz-muted);
  font-size: 11px;
}

.merchant-chat-message p {
  margin: 0;
  color: var(--hz-text);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.app-merchant .solid-button,
body.app-platform .button.primary,
body.app-wechat .primary-button,
body.app-consumer .primary-button {
  color: #ffffff;
  background: var(--hz-primary);
  border-color: var(--hz-primary);
  border-radius: var(--hz-radius-sm);
  box-shadow: none;
}

body.app-merchant .solid-button:hover,
body.app-platform .button.primary:hover,
body.app-wechat .primary-button:hover,
body.app-consumer .primary-button:hover {
  background: var(--hz-primary-strong);
}

body.app-merchant .ghost-button,
body.app-platform .button,
body.app-wechat .secondary-button,
body.app-consumer .secondary-button {
  border-color: var(--hz-line-strong);
  border-radius: var(--hz-radius-sm);
  background: #ffffff;
}

body.app-merchant .ghost-button:hover,
body.app-platform .button:hover,
body.app-wechat .secondary-button:hover,
body.app-consumer .secondary-button:hover {
  color: var(--hz-primary);
  border-color: #b8c5f5;
  background: #f7f9ff;
}

body.app-merchant .tag,
body.app-platform .tag,
body.app-wechat .status-pill,
body.app-consumer .product-chip {
  border-radius: 5px;
}

body.app-wechat .tab-bar {
  border-color: var(--hz-line);
  background: rgba(255, 255, 255, 0.98);
}

body.app-wechat .tab-bar .tab-item.active,
body.app-wechat .tab-bar [aria-selected="true"] {
  color: var(--hz-primary);
}

body.app-wechat .section-block,
body.app-wechat .profile-card {
  border-color: var(--hz-line);
  border-radius: var(--hz-radius);
  background: var(--hz-surface);
  box-shadow: none;
}

body.app-merchant .solid-button:disabled,
body.app-platform .button.primary:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  color: #ffffff;
  background: #98a2b3;
  border-color: #98a2b3;
  box-shadow: none;
}

body.app-wechat .filter-chip.active {
  color: var(--hz-primary);
  background: var(--hz-primary-soft);
}

body .hz-intro code {
  display: none;
}

body .hz-intro .hz-flow {
  gap: 7px;
}

body .hz-intro .hz-flow > span {
  min-height: 28px;
  padding: 5px 9px;
  color: #475467;
  background: #ffffff;
  border: 1px solid var(--hz-line);
  border-radius: 5px;
}

body.app-wechat .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.distribution-hero {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: #ffffff;
  background: #244dda;
  border-radius: 10px;
}

.distribution-hero small {
  color: #dbe3ff;
  font-size: 11px;
}

.distribution-hero strong {
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.distribution-hero > span {
  color: #dbe3ff;
  font-size: 11px;
}

.distribution-hero .primary-button {
  width: fit-content;
  margin-top: 4px;
  color: #244dda;
  background: #ffffff;
  border-color: #ffffff;
}

body.app-consumer {
  color: var(--hz-ink);
  background: #eef2f8;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

body.app-consumer .app-shell {
  background: #f5f7fb;
  box-shadow: 0 0 0 1px rgba(31, 46, 86, 0.04), 0 18px 50px rgba(31, 46, 86, 0.1);
}

body.app-consumer .app-header {
  padding: max(8px, env(safe-area-inset-top)) 12px 6px;
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--hz-line);
  backdrop-filter: blur(18px);
}

body.app-consumer .brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 10px;
}

body.app-consumer .brand-copy h1 {
  color: var(--hz-ink);
  font-size: 22px;
  font-weight: 850;
}

body.app-consumer .brand-kicker {
  color: var(--hz-primary);
}

body.app-consumer .store-context {
  min-height: 36px;
  padding: 5px 9px;
  background: #f5f7fd;
  border-color: #e2e8f5;
}

body.app-consumer .store-context span {
  color: var(--hz-primary);
  background: #ffffff;
}

body.app-consumer .store-select-wrap svg {
  color: var(--hz-primary);
}

body.app-consumer .search-box {
  min-height: 40px;
  background: #f5f7fb;
  border-color: #e6eaf1;
  border-radius: 8px;
}

body.app-consumer .search-box:focus-within {
  background: #ffffff;
  border-color: #aebdf2;
  box-shadow: 0 0 0 3px rgba(49, 91, 239, 0.08);
}

body.app-consumer .scan-button {
  color: #ffffff;
  background: var(--hz-primary);
  border-color: var(--hz-primary);
}

body.app-consumer .promise-strip {
  display: none;
}

body.app-consumer .category-strip {
  gap: 6px;
}

body.app-consumer .category-chip {
  min-height: 34px;
  padding: 0 13px;
  color: #4b5565;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

body.app-consumer .category-chip.is-active {
  color: var(--hz-primary);
  background: transparent;
  border-color: transparent;
}

body.app-consumer .category-chip.is-active::after {
  left: 50%;
  width: 22px;
  transform: translateX(-50%);
  background: var(--hz-primary);
}

body.app-consumer .content-slot {
  padding-right: 0;
  padding-left: 0;
}

body.app-consumer .app-main {
  padding: 10px 12px calc(var(--nav-height) + 24px + env(safe-area-inset-bottom));
}

.huizu-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  padding: 12px;
  color: #ffffff;
  background: var(--storefront-accent, #244dda);
  border-radius: 10px;
}

.brand-mark.has-image {
  background-position: center;
  background-size: cover;
}

.brand-mark.has-image svg {
  display: none;
}

.brand-mark[data-logo-style="SQUARE"] {
  border-radius: 4px;
}

.brand-mark[data-logo-style="ROUNDED"] {
  border-radius: 10px;
}

.brand-mark[data-logo-style="CIRCLE"] {
  border-radius: 50%;
}

.home-announcement {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #17242a;
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
}

.home-announcement svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  opacity: 0.9;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  color: var(--storefront-accent, #244dda);
  background: #ffffff;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 750;
}

.hero-badge svg {
  width: 12px;
  height: 12px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 8px;
  min-height: 154px;
  padding: 10px 0 8px;
}

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

.hero-copy p {
  margin: 0 0 4px;
  color: #cbd7ff;
  font-size: 11px;
  font-weight: 650;
}

.hero-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.2;
}

.hero-copy > span {
  display: block;
  margin-top: 9px;
  color: #e3e9ff;
  font-size: 12px;
}

.hero-copy > button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 0 12px;
  color: #244dda;
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.hero-copy > button svg {
  width: 14px;
  height: 14px;
}

.hero-visual {
  position: relative;
  display: grid;
  width: 118px;
  height: 132px;
  place-items: center;
  background: #ffcc66;
  border-radius: 8px 8px 26px 8px;
  transform: rotate(2deg);
}

.hero-visual::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 5px 5px 20px 5px;
  content: "";
  pointer-events: none;
}

.hero-visual-label {
  position: absolute;
  top: 8px;
  left: 9px;
  z-index: 1;
  color: #9a4c00;
  font-size: 8px;
  font-weight: 800;
}

.hero-product-image {
  position: absolute;
  z-index: 2;
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 9px 12px rgba(104, 61, 0, 0.18));
}

.hero-device-placeholder {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: #244dda;
  background: #ffffff;
  border-radius: 8px;
}

.hero-device-placeholder svg {
  width: 46px;
  height: 46px;
}

.hero-assurance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 9px;
  color: #e5eaff;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

.hero-assurance span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hero-assurance svg {
  width: 12px;
  height: 12px;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
  padding: 11px 8px;
  background: #ffffff;
  border: 1px solid var(--hz-line);
  border-radius: 8px;
}

.home-category-grid button {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  padding: 0;
  color: #475467;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.home-category-grid button > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #315bef;
  background: #eef3ff;
  border-radius: 10px;
}

.home-category-grid button:nth-child(2) > span {
  color: #d35400;
  background: #fff3e8;
}

.home-category-grid button:nth-child(3) > span {
  color: #0f8b6d;
  background: #eaf8f3;
}

.home-category-grid button:nth-child(4) > span {
  color: #8e44ad;
  background: #f7edfb;
}

.home-category-grid button:nth-child(5) > span {
  color: #c2416b;
  background: #fff0f5;
}

.home-category-grid svg {
  width: 22px;
  height: 22px;
}

.home-category-grid strong {
  overflow: hidden;
  width: 100%;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-service-benefits {
  margin-bottom: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--hz-line);
  border-radius: 8px;
}

.home-service-benefits-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.home-service-benefits-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.home-service-benefits-head span,
.home-service-benefits-head small {
  color: #7b8794;
  font-size: 10px;
}

.home-service-benefits-head strong {
  color: #17242a;
  font-size: 15px;
}

.home-service-benefits-head small {
  max-width: 52%;
  text-align: right;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.home-service-grid > div {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 4px;
  padding: 9px 4px;
  background: #f7f9fc;
  border-radius: 7px;
  text-align: center;
}

.home-service-grid > div > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--storefront-accent, #0b6b63);
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
}

.home-service-grid svg {
  width: 16px;
  height: 16px;
}

.home-service-grid strong {
  color: #344054;
  font-size: 10px;
}

.home-service-grid small {
  overflow: hidden;
  width: 100%;
  color: #8a96a3;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-product-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 8px;
}

.home-product-heading > div {
  display: grid;
  gap: 1px;
}

.home-product-heading span,
.home-product-heading button {
  color: #7b8794;
  font-size: 10px;
}

.home-product-heading h2 {
  margin: 0;
  color: #17242a;
  font-size: 19px;
  line-height: 1.2;
}

.home-product-heading button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 2px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.home-product-heading svg {
  width: 14px;
  height: 14px;
}

.home-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.promo-card {
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: space-between;
  gap: 5px;
  padding: 10px;
  text-align: left;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.promo-card > span {
  font-size: 10px;
  font-weight: 700;
}

.promo-card strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.15;
}

.promo-card small {
  font-size: 9px;
}

.promo-card-price {
  color: #9f1d18;
  background: #ffe9e5;
}

.promo-card-stock {
  color: #1f46c6;
  background: #eaf0ff;
}

.promo-card-trust {
  color: #0b6f4e;
  background: #e8f8f0;
}

body.app-consumer .sort-bar {
  padding: 8px 2px;
  background: transparent;
  border-color: var(--hz-line);
}

body.app-consumer .sort-chip {
  color: #5f6b7e;
  background: #ffffff;
  border: 1px solid #e6eaf1;
  border-radius: 6px;
}

body.app-consumer .sort-chip.is-active {
  color: var(--hz-primary);
  background: var(--hz-primary-soft);
  border-color: #cbd6ff;
}

body.app-consumer .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.app-consumer #homeProducts.is-compact-density .product-grid {
  gap: 7px;
}

body.app-consumer #homeProducts.is-compact-density .product-card-copy {
  padding-top: 7px;
  padding-bottom: 8px;
}

body.app-consumer .product-card {
  overflow: hidden;
  border: 1px solid #e9edf4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(31, 46, 86, 0.04);
}

body.app-consumer .product-card:hover {
  transform: translateY(-2px);
  border-color: #cdd7f5;
  box-shadow: 0 8px 22px rgba(31, 46, 86, 0.09);
}

body.app-consumer .product-art {
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 8px 8px 0 0;
  background: #f7f8fb;
}

body.app-consumer .product-art::after {
  opacity: 0.35;
}

body.app-consumer .product-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.app-consumer .product-art-fallback {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #315bef;
  background: #eef3ff;
  border-radius: 12px;
}

body.app-consumer .product-art-fallback svg {
  width: 34px;
  height: 34px;
}

body.app-consumer .sheet-product-fallback {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #315bef;
}

body.app-consumer .sheet-product-art {
  position: relative;
}

body.app-consumer .sheet-product-fallback svg {
  width: 36px;
  height: 36px;
}

body.app-consumer .product-body {
  min-height: 0;
  padding: 9px;
}

body.app-consumer .product-title {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: var(--hz-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.app-consumer .product-chip {
  color: #b45309;
  background: #fff7e8;
}

body.app-consumer .daily-price strong {
  color: var(--hz-price);
  font-size: 20px;
  font-weight: 800;
}

body.app-consumer .daily-price small {
  color: var(--hz-price);
}

body.app-consumer .deposit-price,
body.app-consumer .product-fans,
body.app-consumer .product-meta {
  color: #7b8496;
}

body.app-consumer .stock-flag {
  color: #475467;
  background: rgba(255, 255, 255, 0.9);
}

body.app-consumer .order-shortcut {
  border-color: var(--hz-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

body.app-consumer .order-shortcut-grid button {
  border-color: #edf0f5;
}

body.app-consumer .order-shortcut-grid strong,
body.app-consumer .order-shortcut-head strong {
  color: var(--hz-primary);
}

body.app-consumer .bottom-nav {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--hz-line);
}

body.app-consumer .nav-item.is-active {
  color: var(--hz-primary);
}

body.app-consumer .nav-item.is-active::before {
  background: var(--hz-primary);
}

body.app-consumer .sheet {
  border-radius: 12px 12px 0 0;
}

body.app-consumer .product-detail-section {
  padding-top: 2px;
}

body.app-consumer .product-detail-content {
  color: #344054;
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

body.app-consumer .product-detail-content > :first-child {
  margin-top: 0;
}

body.app-consumer .product-detail-content > :last-child {
  margin-bottom: 0;
}

body.app-consumer .product-detail-content h2,
body.app-consumer .product-detail-content h3 {
  margin: 14px 0 7px;
  color: #1b2430;
  line-height: 1.4;
}

body.app-consumer .product-detail-content h2 {
  padding-left: 9px;
  border-left: 3px solid #315bef;
  font-size: 15px;
}

body.app-consumer .product-detail-content h3 {
  font-size: 13px;
}

body.app-consumer .product-detail-content p {
  margin: 7px 0;
}

body.app-consumer .product-detail-content ul,
body.app-consumer .product-detail-content ol {
  display: grid;
  gap: 5px;
  margin: 8px 0;
  padding-left: 20px;
}

body.app-consumer .product-detail-content li {
  padding-left: 2px;
}

body.app-consumer .product-detail-content blockquote {
  margin: 10px 0;
  padding: 9px 11px;
  color: #475467;
  background: #f5f7fb;
  border-left: 3px solid #d0d5dd;
  border-radius: 0 6px 6px 0;
}

body.app-consumer .product-detail-content a {
  color: #244dda;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.app-consumer .rental-step-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px;
  background: #f5f7fb;
  border-radius: 8px;
}

body.app-consumer .rental-step-tabs span {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #667085;
  border-radius: 6px;
  font-size: 11px;
}

body.app-consumer .rental-step-tabs span i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #667085;
  background: #ffffff;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

body.app-consumer .rental-step-tabs span.is-active {
  color: #244dda;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(31, 46, 86, 0.08);
  font-weight: 700;
}

body.app-consumer .rental-step-tabs span.is-active i {
  color: #ffffff;
  background: #315bef;
}

body.app-consumer .order-confirm-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  background: #f7f9fc;
  border: 1px solid var(--hz-line);
  border-radius: 8px;
}

body.app-consumer .order-confirm-summary > div {
  display: grid;
  gap: 3px;
}

body.app-consumer .order-confirm-summary span {
  color: #667085;
  font-size: 10px;
}

body.app-consumer .order-confirm-summary strong {
  color: #1b2430;
  font-size: 13px;
}

body.app-consumer .order-confirm-summary p {
  grid-column: 1 / -1;
  margin: 0;
  color: #667085;
  font-size: 10px;
  line-height: 1.5;
}

body.app-consumer .rental-footer-actions {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
}

body.app-consumer .rental-footer-actions .secondary-button,
body.app-consumer .rental-footer-actions .primary-button {
  min-height: 46px;
}

body.app-consumer .order-status-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
  padding: 6px;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--hz-line);
  border-radius: 8px;
  scrollbar-width: none;
}

body.app-consumer .order-status-tabs::-webkit-scrollbar {
  display: none;
}

body.app-consumer .order-status-tabs button {
  display: flex;
  min-width: 66px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 9px;
  color: #667085;
  background: #f7f9fc;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

body.app-consumer .order-status-tabs button strong {
  color: #98a2b3;
  font-size: 10px;
}

body.app-consumer .order-status-tabs button.is-active {
  color: #244dda;
  background: #eef3ff;
  font-weight: 700;
}

body.app-consumer .order-status-tabs button.is-active strong {
  color: #244dda;
}

body.app-consumer .order-card {
  border-color: var(--hz-line);
  border-radius: 8px;
  box-shadow: none;
}

body.app-consumer .order-card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

body.app-consumer .order-detail-link {
  height: 32px;
  padding: 0 9px;
  color: #475467;
  background: #ffffff;
  border: 1px solid var(--hz-line-strong);
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

body.app-consumer .order-detail-kicker {
  color: #667085;
  font-size: 10px;
  overflow-wrap: anywhere;
}

body.app-consumer .order-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-right: 30px;
}

body.app-consumer .order-detail-title h2 {
  margin: 0;
  color: var(--hz-ink);
  font-size: 19px;
  line-height: 1.3;
}

body.app-consumer .order-detail-hero {
  background: #ffffff;
}

body.app-consumer .order-detail-hero > p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 11px;
}

body.app-consumer .order-detail-body {
  padding-top: 12px;
}

body.app-consumer .order-detail-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hz-line);
}

body.app-consumer .order-detail-money {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.app-consumer .order-detail-money > div {
  display: grid;
  gap: 4px;
  padding: 9px;
  background: #f7f9fc;
  border-radius: 6px;
}

body.app-consumer .order-detail-money span {
  color: #667085;
  font-size: 10px;
}

body.app-consumer .order-detail-money strong {
  color: var(--hz-price);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

body.app-consumer .order-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

body.app-consumer .order-detail-list > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f5;
}

body.app-consumer .order-detail-list dt {
  color: #667085;
  font-size: 11px;
}

body.app-consumer .order-detail-list dd {
  margin: 0;
  color: #344054;
  font-size: 11px;
  overflow-wrap: anywhere;
}

body.app-consumer .order-detail-footer {
  display: flex;
  gap: 8px;
}

body.app-consumer .order-detail-footer .primary-button,
body.app-consumer .order-detail-footer .secondary-button {
  flex: 1 1 0;
  min-height: 42px;
}

body.app-consumer .address-book {
  display: grid;
  gap: 8px;
}

body.app-consumer .address-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e6eaf1;
  border-radius: 8px;
}

body.app-consumer .address-card.is-selected {
  background: #f5f7ff;
  border-color: #315bef;
  box-shadow: inset 3px 0 0 #315bef;
}

body.app-consumer .address-main {
  min-width: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
}

body.app-consumer .address-main > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.app-consumer .address-main strong {
  color: #1b2430;
  font-size: 13px;
}

body.app-consumer .address-main b {
  padding: 1px 5px;
  color: #315bef;
  background: #eef2ff;
  border-radius: 4px;
  font-size: 9px;
}

body.app-consumer .address-main small,
body.app-consumer .address-main p {
  display: block;
  margin: 3px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}

body.app-consumer .address-actions {
  display: grid;
  align-content: center;
  gap: 4px;
}

body.app-consumer .address-actions button {
  padding: 2px 4px;
  color: #315bef;
  background: transparent;
  border: 0;
  font-size: 11px;
}

body.app-consumer .address-empty {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #667085;
  background: #f8f9fc;
  border: 1px dashed #dfe4ec;
  border-radius: 8px;
  font-size: 11px;
}

body.app-consumer .address-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf0f5;
}

body.app-consumer .address-editor label {
  display: grid;
  gap: 4px;
  color: #667085;
  font-size: 10px;
}

body.app-consumer .address-editor label.full,
body.app-consumer .address-editor-actions {
  grid-column: 1 / -1;
}

body.app-consumer .address-editor input {
  min-height: 38px;
  padding: 0 9px;
  color: #1b2430;
  background: #ffffff;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
}

body.app-consumer .address-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 760px) {
  body.app-platform .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-merchant .topbar,
  body.app-platform .topbar {
    min-height: 58px;
  }

  body.app-merchant .sidebar nav,
  body.app-platform .sidebar nav {
    scrollbar-width: thin;
  }

  body.app-merchant .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-merchant .sidebar {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    max-width: 100vw;
    padding: 7px 10px 8px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--hz-line);
  }

  body.app-merchant .sidebar-store,
  body.app-merchant .sidebar-foot,
  body.app-merchant .sidebar .nav-domain-label {
    display: none;
  }

  body.app-merchant .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    max-height: 178px;
    gap: 5px;
    padding-bottom: 2px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.app-merchant .sidebar nav button {
    min-height: 34px;
    width: 100%;
    min-width: 0;
    padding: 6px 10px;
    white-space: nowrap;
  }

  body.app-merchant .main {
    min-width: 0;
    max-width: 100vw;
  }

  body.app-merchant .table-shell,
  body.app-merchant .table-shell .table-scroll {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  body.app-merchant .table-shell .responsive-table,
  body.app-merchant .table-shell .responsive-table thead,
  body.app-merchant .table-shell .responsive-table tbody,
  body.app-merchant .table-shell .responsive-table tr,
  body.app-merchant .table-shell .responsive-table th,
  body.app-merchant .table-shell .responsive-table td {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  body.app-merchant .table-shell .responsive-table thead {
    display: none;
  }

  body.app-merchant .table-shell .responsive-table tbody tr {
    margin-bottom: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4e8f1;
    border-radius: 7px;
  }

  body.app-merchant .table-shell .responsive-table tbody td {
    padding: 9px 11px;
    overflow-wrap: anywhere;
    border-bottom: 1px solid #edf0f5;
  }

  body.app-merchant .table-shell .responsive-table tbody td:last-child {
    border-bottom: 0;
  }

  body.app-merchant .table-shell .responsive-table tbody td::before {
    display: block;
    margin-bottom: 4px;
    color: #98a2b3;
    content: attr(data-label);
    font-size: 9px;
    font-weight: 650;
  }

  body.app-merchant .table-shell .responsive-table tbody td.select-column {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.app-merchant .table-shell .responsive-table tbody td.select-column::before {
    margin: 0;
  }
}

/* 惠租商品详情页同构布局：保留后台框架，发布表单作为独立工作页。 */
.product-editor-page .page-heading {
  display: none;
}

.product-editor-page .main {
  padding: 0;
  background: #f7f8fc;
}

.pe-product-editor-page {
  width: 100%;
  min-height: calc(100vh - 68px);
  padding: 20px 26px 0;
  background: #f7f8fc;
}

.pe-breadcrumb {
  display: flex;
  max-width: 1260px;
  min-height: 24px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 auto 12px;
  color: #7b8494;
  font-size: 12px;
}

.pe-breadcrumb i {
  color: #c0c6d0;
  font-style: normal;
}

.pe-breadcrumb button {
  padding: 0;
  color: #5e6a7d;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.pe-breadcrumb button:hover {
  color: #315bef;
}

.pe-breadcrumb strong {
  color: #1e2734;
  font-weight: 650;
}

.pe-page-head {
  display: flex;
  max-width: 1260px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 14px;
}

.pe-page-head h1 {
  margin: 0;
  color: #1e2734;
  font-size: 22px;
  line-height: 1.25;
}

.pe-page-head p {
  margin: 5px 0 0;
  color: #748094;
  font-size: 12px;
}

.pe-alert {
  display: flex;
  max-width: 1260px;
  align-items: center;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 10px 14px;
  color: #8b5c00;
  background: #fff9e9;
  border: 1px solid #f3dfa8;
  border-radius: 6px;
  font-size: 12px;
}

.pe-editor-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 0 1px;
}

.pe-product-editor-page .product-editor-section {
  min-height: 520px;
  border: 1px solid #e4e8f1;
  border-radius: 2px;
  box-shadow: none;
}

.pe-product-editor-page .product-section-heading {
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.pe-product-editor-page .product-section-heading > div > span {
  display: none;
}

.pe-product-editor-page .product-section-heading h3 {
  font-size: 16px;
}

.pe-product-editor-page .product-section-heading p {
  max-width: 620px;
  font-size: 11px;
}

.pe-product-editor-page .product-basic-panel {
  max-width: 680px;
  grid-template-columns: minmax(0, 1fr);
  margin: 32px auto 0;
}

.pe-product-editor-page .product-basic-guidance {
  display: none;
}

.pe-product-editor-page .product-basic-panel .form-grid {
  gap: 16px 18px;
}

.pe-basic-primary {
  max-width: 680px;
}

.pe-more-basic {
  margin-top: 14px;
  border-top: 1px dashed #e2e7ef;
}

.pe-more-basic summary {
  padding: 10px 0 6px;
  color: #7b8494;
  font-size: 11px;
  cursor: pointer;
}

.pe-more-basic[open] summary {
  color: #4d5f7d;
}

.pe-more-basic .form-grid {
  padding-top: 10px;
}

.pe-product-editor-page .product-basic-panel .form-field > span {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}

.pe-product-editor-page .product-basic-panel .form-field.full > span {
  color: #5a6270;
}

.pe-product-editor-page .product-basic-panel input,
.pe-product-editor-page .product-basic-panel select {
  min-height: 38px;
  border-color: #d9dee8;
  border-radius: 3px;
}

.pe-product-editor-page .product-wizard-steps {
  max-width: 940px;
  margin: 12px auto 22px;
}

.pe-product-editor-page .product-wizard-steps button i {
  width: 30px;
  height: 30px;
  border-color: #cbd1dc;
  color: #8a93a1;
  background: #ffffff;
}

.pe-product-editor-page .product-wizard-steps button span {
  color: #6e7786;
  font-size: 12px;
  font-weight: 500;
}

.pe-product-editor-page .product-wizard-steps button.is-active span {
  color: #1f55b8;
  font-weight: 600;
}

.pe-product-editor-page .product-wizard-steps button.is-complete i {
  color: #ffffff;
  background: #ffffff;
  border-color: #69a4ff;
}

.pe-product-editor-page .product-wizard-steps button.is-complete i {
  color: #3271dc;
  box-shadow: inset 0 0 0 1px #a9c8ff;
}

.pe-spec-summary {
  display: grid;
  gap: 12px;
  margin: -2px 0 18px;
  color: #5e6879;
  font-size: 12px;
}

.pe-spec-summary > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pe-spec-summary > div > span {
  min-width: 72px;
  color: #606978;
}

.pe-spec-summary strong {
  color: #394354;
  font-weight: 500;
}

.pe-spec-chips {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
}

.pe-spec-chips em {
  max-width: 320px;
  padding: 5px 9px;
  overflow: hidden;
  color: #596476;
  background: #f7f9fc;
  border: 1px solid #dde3ec;
  border-radius: 3px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pe-spec-chip {
  display: inline-flex;
  max-width: 340px;
  align-items: center;
  gap: 4px;
  padding: 3px 5px 3px 9px;
  color: #596476;
  background: #ffffff;
  border: 1px solid #d9e0ea;
  border-radius: 3px;
  font-size: 11px;
}

.pe-spec-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pe-spec-chip button {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  color: #8b94a3;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.pe-spec-chip button:hover {
  color: #d05046;
}

.pe-package-chips {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  gap: 7px;
}

.pe-package-chips em {
  padding: 4px 8px;
  color: #4d5a70;
  background: #f4f7fc;
  border: 1px solid #dbe2ed;
  border-radius: 3px;
  font-size: 11px;
  font-style: normal;
}

.pe-package-chips small {
  color: #8b94a3;
  font-size: 11px;
}

.pe-quality-report-grid,
.pe-service-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 18px 0;
  padding: 16px;
  background: #fbfcff;
  border: 1px solid #e4e8f0;
}

.pe-quality-report-grid .form-field.full,
.pe-service-config-grid .form-field.full {
  grid-column: 1 / -1;
}

.pe-quality-report-grid textarea,
.pe-service-config-grid textarea {
  min-height: 82px;
}

.pe-freight-template-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.4fr) auto;
  align-items: end;
  gap: 12px 16px;
  margin-top: 18px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #dfe5ec;
  border-left: 3px solid #256f8f;
}

.pe-freight-template-panel > .form-field {
  align-self: end;
}

.pe-freight-template-card {
  min-height: 70px;
  padding: 11px 13px;
  color: #3d4b5d;
  background: #ffffff;
  border: 1px solid #d9e1ea;
}

.pe-freight-template-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pe-freight-template-card strong {
  color: #1f2d3d;
  font-size: 13px;
}

.pe-freight-template-card span {
  color: #647184;
  font-size: 12px;
}

.pe-freight-rate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #e2e8f0;
}

.pe-freight-template-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 1px;
}

@media (max-width: 900px) {
  .pe-freight-template-panel {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .pe-freight-template-actions {
    justify-content: flex-start;
  }
}

.product-inspection-fields {
  display: grid;
  gap: 12px;
}

.pe-product-editor-page .product-sku-card {
  border-radius: 2px;
  box-shadow: none;
}

.pe-product-editor-page .product-sku-card-head {
  background: #fafbfe;
}

.pe-product-editor-page .product-sku-index {
  border-radius: 2px;
  background: #6d7686;
}

.pe-product-editor-page .product-price-toolbar {
  margin-top: 14px;
}

.pe-product-editor-page .product-price-toolbar strong {
  font-size: 13px;
}

.pe-product-editor-page .product-rent-ladder th {
  background: #fbfcfe;
}

.pe-product-editor-page .product-media-slot {
  min-height: 240px;
  border-radius: 2px;
  background: #ffffff;
}

.pe-product-editor-page .product-media-preview {
  min-height: 160px;
  border: 1px solid #edf0f5;
  border-radius: 2px;
}

.pe-media-group {
  margin-bottom: 20px;
}

.pe-media-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: #515b6b;
  font-size: 12px;
}

.pe-media-group-label > span {
  color: #e03b30;
}

.pe-media-group-label strong {
  font-weight: 500;
}

.pe-image-grid {
  display: grid;
  max-width: 880px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pe-image-slot,
.pe-image-slot-placeholder {
  display: grid;
  min-height: 190px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 10px;
  color: #7f8999;
  background: #ffffff;
  border: 1px dashed #cbd2de;
  border-radius: 2px;
  text-align: center;
}

.pe-image-slot {
  cursor: pointer;
}

.pe-image-slot:hover {
  border-color: #6f96e8;
  background: #f9fbff;
}

.pe-image-slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pe-image-preview {
  display: grid;
  width: 100%;
  height: 130px;
  place-items: center;
  overflow: hidden;
  background: #f4f6fa;
}

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

.pe-image-slot strong {
  color: #596476;
  font-size: 11px;
  font-weight: 500;
}

.pe-image-slot small,
.pe-image-slot-placeholder small {
  color: #8c95a4;
  font-size: 10px;
}

.pe-image-slot-placeholder {
  cursor: default;
}

.pe-media-help {
  max-width: 880px;
  margin: 8px 0 0;
  color: #8a93a2;
  font-size: 10px;
  line-height: 1.65;
}

.pe-media-video-row {
  max-width: 260px;
  margin-top: 18px;
}

.pe-media-video-row .product-media-slot {
  min-height: 190px;
}

.pe-media-video-row .product-media-preview {
  min-height: 110px;
}

.pe-detail-editor-wrap {
  margin-top: 20px;
}

.pe-rich-editor {
  max-width: 1080px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d9dee8;
  border-radius: 2px;
}

.pe-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid #e5e9f0;
  background: #fbfcfe;
}

.pe-rich-toolbar button {
  display: grid;
  width: 30px;
  height: 28px;
  place-items: center;
  color: #596476;
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}

.pe-rich-toolbar button:hover {
  color: #245eca;
  background: #edf3ff;
}

.pe-rich-content {
  min-height: 180px;
  padding: 14px;
  color: #303a48;
  outline: 0;
  line-height: 1.7;
}

.pe-rich-content:empty::before {
  color: #a0a8b5;
  content: attr(data-placeholder);
  pointer-events: none;
}

.pe-rich-toolbar-group {
  display: flex;
  gap: 2px;
  padding-right: 6px;
  border-right: 1px solid #e3e7ef;
}

.pe-rich-toolbar-group:last-child {
  padding-right: 0;
  border-right: 0;
}

.pe-rich-toolbar-end {
  margin-left: auto;
}

.pe-rich-toolbar button.active {
  color: #245eca;
  background: #e8f0ff;
}

.pe-rich-toolbar button span {
  font-size: 11px;
}

.pe-rich-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  color: #939baa;
  background: #fbfcfe;
  border-top: 1px solid #edf0f5;
  font-size: 10px;
}

.pe-rich-footer strong {
  color: #596476;
}

.pe-rich-content h2,
.pe-rich-preview h2 {
  margin: 15px 0 7px;
  color: #253041;
  font-size: 18px;
}

.pe-rich-content h3,
.pe-rich-preview h3 {
  margin: 13px 0 6px;
  color: #253041;
  font-size: 15px;
}

.pe-rich-content ul,
.pe-rich-content ol,
.pe-rich-preview ul,
.pe-rich-preview ol {
  padding-left: 22px;
}

.pe-rich-preview {
  max-width: 1080px;
  min-height: 150px;
  margin-top: 12px;
  padding: 16px;
  color: #303a48;
  background: #ffffff;
  border: 1px solid #d9dee8;
  line-height: 1.7;
}

.pe-huidu-sku {
  margin-bottom: 14px;
  border: 1px solid #e3e7ef;
  background: #ffffff;
}

.pe-sku-facts-table {
  overflow-x: auto;
}

.pe-sku-facts-head,
.pe-sku-facts-row {
  display: grid;
  min-width: 1030px;
  grid-template-columns: minmax(210px, 2.1fr) 88px 118px 118px 120px 82px 128px 76px;
  align-items: center;
}

.pe-sku-facts-head {
  color: #697386;
  background: #fbfcfe;
  border-bottom: 1px solid #e5e9f0;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.pe-sku-facts-head span {
  padding: 11px 8px;
  border-right: 1px solid #edf0f5;
}

.pe-sku-facts-head span:last-child {
  border-right: 0;
}

.pe-sku-facts-row {
  padding: 10px 0;
}

.pe-sku-facts-row > * {
  min-width: 0;
  padding: 0 8px;
}

.pe-sku-spec-cell {
  display: grid;
  gap: 4px;
}

.pe-sku-spec-cell input,
.pe-sku-cell input,
.pe-sku-cell select,
.pe-sku-money input,
.pe-buyout-strip input[type="number"] {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  color: #303a48;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 3px;
}

.pe-sku-spec-cell small {
  color: #939baa;
  font-size: 10px;
}

.pe-sku-money {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pe-sku-money span {
  color: #737d8d;
  font-size: 11px;
}

.pe-sku-image-cell {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #8993a3;
  cursor: pointer;
}

.pe-sku-image-cell input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pe-sku-image-cell [data-sku-image-preview] {
  display: grid;
  width: 58px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  background: #f4f6fa;
  border: 1px dashed #cbd2de;
}

.pe-sku-image-cell [data-sku-image-preview] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pe-sku-image-cell small {
  font-size: 9px;
}

.pe-sku-row-actions {
  display: flex;
  justify-content: center;
}

.pe-buyout-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 12px;
  color: #657083;
  background: #fafbfe;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #e5e9f0;
  font-size: 11px;
}

.pe-buyout-strip label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pe-buyout-strip input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2b6cff;
}

.pe-buyout-strip input[type="number"] {
  width: 58px;
}

.pe-buyout-strip .product-sku-summary {
  margin-left: auto;
}

.pe-rent-ladder {
  padding: 12px;
}

.pe-rent-ladder-toolbar {
  margin-bottom: 8px;
}

.pe-rent-ladder-toolbar select {
  width: 260px;
  min-height: 34px;
  padding: 6px 9px;
  color: #657083;
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 3px;
}

.pe-rent-ladder table th:nth-child(1) { width: 25%; }
.pe-rent-ladder table th:nth-child(2) { width: 18%; }
.pe-rent-ladder table th:nth-child(3) { width: 49%; }
.pe-rent-ladder table th:nth-child(4) { width: 8%; }

.pe-rent-ladder .pe-rent-hint {
  color: #bb3a31;
  font-size: 11px;
  line-height: 1.5;
}

.pe-rent-ladder .pe-rent-hint span {
  margin-left: 10px;
  color: #8c95a4;
}

.pe-remove-term {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin: auto;
  border: 1px solid #e0a95c;
  border-radius: 50%;
  color: #d08a1c;
  font-size: 13px;
  line-height: 1;
}

@media (max-width: 760px) {
  .pe-sku-facts-head,
  .pe-sku-facts-row {
    min-width: 920px;
  }

  .pe-buyout-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pe-buyout-strip .product-sku-summary {
    width: 100%;
    margin-left: 0;
  }
}

.pe-product-editor-page .product-check-card,
.pe-product-editor-page .product-field-template,
.pe-product-editor-page .product-batch-panel {
  border-radius: 2px;
}

.pe-footer-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  justify-content: center;
  max-width: 1260px;
  margin: 16px auto 0;
  padding: 12px 0 16px;
  border-top: 1px solid #e7eaf1;
  background: rgba(247, 248, 252, 0.98);
}

@media (max-width: 760px) {
  .pe-product-editor-page {
    min-height: calc(100vh - 120px);
    padding: 14px 12px 0;
  }

  .pe-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pe-page-head .solid-button {
    width: 100%;
  }

  .pe-product-editor-page .product-editor-section {
    min-height: 0;
    padding: 16px 12px;
  }

  .pe-spec-summary > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .pe-footer-actions {
    margin-top: 10px;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  body.app-platform .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.store-settings-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.store-settings-nav {
  display: grid;
  gap: 2px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e6eaf1;
  border-radius: 8px;
}

.store-settings-nav button {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: #475467;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.store-settings-nav button:hover {
  color: #315bef;
  background: #f5f7ff;
}

.store-settings-nav button.is-active {
  color: #315bef;
  background: #eef2ff;
  font-weight: 700;
}

.store-settings-panel {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e6eaf1;
  border-radius: 8px;
}

.store-settings-panel > header {
  padding: 20px 24px 18px;
  border-bottom: 1px solid #edf0f5;
}

.store-settings-panel > header span {
  color: #667085;
  font-size: 10px;
  font-weight: 700;
}

.store-settings-panel > header h2 {
  margin: 4px 0 6px;
  color: #1b2430;
  font-size: 20px;
}

.store-settings-panel > header p {
  margin: 0;
  color: #667085;
  font-size: 12px;
}

.store-settings-body {
  padding: 20px 24px 26px;
}

.store-settings-body .detail-grid {
  margin: 0;
}

.store-settings-body .table-wrap {
  margin: 0;
}

.sku-matrix .table-wrap {
  overflow-x: auto;
  border: 1px solid #e6eaf1;
  border-radius: 8px;
}

.sku-matrix table {
  min-width: 1260px;
  table-layout: fixed;
  margin: 0;
}

.sku-matrix th,
.sku-matrix td {
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.sku-matrix th {
  color: #667085;
  background: #f8f9fc;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sku-matrix td {
  border-top: 1px solid #edf0f5;
}

.sku-matrix input,
.sku-matrix select {
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
}

.sku-matrix input[type="number"] {
  min-width: 82px;
}

.sku-matrix th:nth-child(1),
.sku-matrix td:nth-child(1) { width: 150px; }
.sku-matrix th:nth-child(2),
.sku-matrix td:nth-child(2) { width: 180px; }
.sku-matrix th:nth-child(3),
.sku-matrix td:nth-child(3) { width: 88px; }
.sku-matrix th:nth-child(4),
.sku-matrix td:nth-child(4) { width: 100px; }
.sku-matrix th:nth-child(5),
.sku-matrix td:nth-child(5) { width: 82px; }
.sku-matrix th:nth-child(6),
.sku-matrix td:nth-child(6) { width: 96px; }
.sku-matrix th:nth-child(n+7):nth-child(-n+11),
.sku-matrix td:nth-child(n+7):nth-child(-n+11) { width: 94px; }
.sku-matrix th:last-child,
.sku-matrix td:last-child { width: 82px; }

@media (max-width: 900px) {
  .store-settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-settings-nav {
    display: flex;
    overflow-x: auto;
  }

  .store-settings-nav button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }
}

/* 惠租式商品发布工作台：步骤、价格阶梯、媒体、质检和确认共用同一事实表单。 */
.modal-overlay.is-product-editor {
  align-items: center;
  padding: 14px;
  overflow: hidden;
}

.modal.is-product-editor {
  display: flex;
  width: min(1380px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
}

.modal.is-product-editor .modal-head {
  flex: 0 0 auto;
  padding: 15px 22px;
}

.modal.is-product-editor .modal-head h2 {
  font-size: 19px;
}

.modal.is-product-editor .modal-head p {
  font-size: 12px;
}

.modal.is-product-editor .modal-body {
  min-height: 0;
  flex: 1 1 auto;
  padding: 0 24px 22px;
  overflow-y: auto;
  background: #fbfcff;
}

.modal.is-product-editor .modal-actions {
  flex: 0 0 auto;
  padding: 12px 22px 15px;
  border-top: 1px solid #e4e8f0;
  background: #ffffff;
}

.product-editor {
  min-width: 0;
}

.product-editor-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -24px 14px;
  padding: 11px 24px;
  border-bottom: 1px solid #e9edf4;
  background: rgba(251, 252, 255, 0.98);
}

.product-editor-notice {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #8b5c00;
  background: #fff8e6;
  border: 1px solid #f5dfaa;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.product-editor-notice svg {
  color: #c27b00;
}

.product-wizard-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto 18px;
  padding: 4px 0 2px;
  max-width: 1120px;
}

.product-wizard-steps li {
  position: relative;
  min-width: 0;
}

.product-wizard-steps li:not(:last-child)::after {
  position: absolute;
  top: 16px;
  right: -50%;
  left: 50%;
  height: 1px;
  background: #dfe4ed;
  content: "";
}

.product-wizard-steps button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 58px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 5px;
  color: #7b8494;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
}

.product-wizard-steps button i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #c8ceda;
  border-radius: 50%;
  color: #6f7888;
  background: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.product-wizard-steps button.is-active {
  color: #1f4fb3;
  background: transparent;
  font-weight: 700;
}

.product-wizard-steps button.is-active i {
  color: #ffffff;
  background: #2b6cff;
  border-color: #2b6cff;
  box-shadow: 0 0 0 4px #eaf0ff;
}

.product-wizard-steps button.is-complete {
  color: #24735e;
}

.product-wizard-steps button.is-complete i {
  color: #16825f;
  background: #e8f7f1;
  border-color: #80c7ad;
}

.product-editor-section {
  min-height: 430px;
  padding: 20px 22px 22px;
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  background: #ffffff;
}

.product-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f5;
}

.product-section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-section-heading > div > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 5px;
  color: #2b5bbd;
  background: #edf3ff;
  font-size: 11px;
  font-weight: 800;
}

.product-section-heading h3 {
  margin: 0;
  color: #1c2430;
  font-size: 18px;
}

.product-section-heading p {
  max-width: 560px;
  margin: 2px 0 0;
  color: #6b7585;
  font-size: 12px;
  line-height: 1.55;
}

.product-basic-panel {
  display: grid;
  max-width: 1060px;
  grid-template-columns: minmax(0, 760px) minmax(210px, 1fr);
  gap: 24px;
  margin: 10px auto 0;
}

.product-basic-panel .form-grid {
  align-content: start;
}

.product-basic-guidance {
  align-self: start;
  padding: 14px;
  color: #5c6676;
  background: #f7f9fd;
  border: 1px solid #e5e9f1;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.65;
}

.product-basic-guidance strong {
  color: #283140;
}

.product-basic-guidance p {
  margin: 8px 0 0;
}

.product-policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.product-price-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 12px;
}

.product-price-toolbar > div:first-child {
  display: grid;
  gap: 3px;
}

.product-price-toolbar strong {
  color: #27303d;
}

.product-price-toolbar small,
.product-sku-card-head small,
.product-rent-ladder-head small,
.product-sku-card td small,
.product-media-slot small {
  color: #768091;
  font-size: 11px;
  line-height: 1.45;
}

.product-price-toolbar > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-batch-panel {
  margin: 0 0 12px;
  padding: 13px 14px;
  border: 1px solid #cbd8f3;
  border-radius: 7px;
  background: #f4f7ff;
}

.product-batch-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.product-batch-head small {
  color: #667085;
}

.product-batch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.product-batch-grid label {
  display: grid;
  gap: 5px;
  color: #566174;
  font-size: 11px;
  font-weight: 700;
}

.product-batch-grid input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #cdd7e9;
  border-radius: 5px;
  background: #ffffff;
}

.product-sku-list {
  display: grid;
  gap: 14px;
}

.product-sku-card {
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #ffffff;
}

.product-sku-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid #e9edf3;
  background: #f9fafd;
}

.product-sku-index {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 5px;
  color: #ffffff;
  background: #344054;
  font-size: 11px;
  font-weight: 800;
}

.product-sku-card-title {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.product-sku-card-title strong {
  overflow: hidden;
  color: #293342;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-sku-fields {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.75fr 0.85fr 0.85fr 0.65fr 0.75fr 1fr;
  gap: 10px;
  padding: 13px;
}

.product-inline-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #596476;
  font-size: 11px;
  font-weight: 700;
}

.product-inline-field input,
.product-inline-field select,
.product-batch-grid input,
.product-editor input,
.product-editor select {
  min-width: 0;
}

.product-inline-field > input,
.product-inline-field > select {
  width: 100%;
  min-height: 35px;
  padding: 6px 8px;
  color: #26303d;
  background: #ffffff;
  border: 1px solid #d6dce6;
  border-radius: 5px;
}

.product-buyout-control {
  display: flex;
  min-height: 35px;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid #d6dce6;
  border-radius: 5px;
  background: #ffffff;
}

.product-buyout-control input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2b6cff;
}

.product-buyout-control input[type="number"] {
  width: 54px;
  min-height: 25px;
  padding: 2px 4px;
  border: 1px solid #dce1e9;
  border-radius: 4px;
}

.product-buyout-control small {
  color: #7a8494;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.product-rent-ladder {
  padding: 0 13px 13px;
}

.product-rent-ladder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 8px;
}

.product-rent-ladder-head > div {
  display: grid;
  gap: 2px;
}

.product-rent-ladder-head strong {
  color: #354052;
  font-size: 12px;
}

.product-sku-summary {
  color: #3659a5;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.product-rent-ladder .table-wrap {
  overflow-x: auto;
  border: 1px solid #e4e9f1;
  border-radius: 6px;
}

.product-rent-ladder table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  table-layout: fixed;
}

.product-rent-ladder th,
.product-rent-ladder td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  vertical-align: middle;
}

.product-rent-ladder tr:last-child td {
  border-bottom: 0;
}

.product-rent-ladder th {
  color: #697386;
  background: #f8f9fc;
  font-size: 11px;
  font-weight: 700;
}

.product-rent-ladder th:nth-child(1) { width: 17%; }
.product-rent-ladder th:nth-child(2) { width: 22%; }
.product-rent-ladder th:nth-child(3) { width: 23%; }
.product-rent-ladder th:nth-child(4) { width: 38%; }

.product-rent-ladder td > strong,
.product-rent-ladder td > small {
  display: block;
}

.product-rent-ladder td > strong {
  color: #283341;
  font-size: 12px;
}

.product-price-input {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-price-input input {
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #d6dce6;
  border-radius: 5px;
  color: #27303d;
}

.product-price-input small {
  color: #7c8696;
  white-space: nowrap;
}

.product-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-media-slot {
  position: relative;
  display: grid;
  min-height: 230px;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 13px;
  overflow: hidden;
  color: #596476;
  background: #fbfcff;
  border: 1px dashed #bdc8da;
  border-radius: 7px;
  text-align: center;
  cursor: pointer;
}

.product-media-slot:hover {
  border-color: #7598e8;
  background: #f6f9ff;
}

.product-media-slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.product-media-preview {
  display: grid;
  width: 100%;
  min-height: 147px;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  color: #8d98aa;
  background: #f0f3f8;
}

.product-media-preview img {
  width: 100%;
  height: 147px;
  object-fit: cover;
}

.product-media-slot strong {
  color: #313b49;
  font-size: 12px;
}

.product-media-slot em {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #718096;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-dynamic-fields,
.product-service-fields {
  display: grid;
  gap: 14px;
}

.product-field-template {
  padding: 14px;
  border: 1px solid #e3e8f0;
  border-radius: 7px;
  background: #fbfcff;
}

.product-field-template-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.product-field-template-head strong {
  color: #303a48;
  font-size: 13px;
}

.product-field-template-head small {
  color: #748095;
  font-size: 11px;
}

.product-check-grid,
.product-quality-checklist,
.product-service-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-quality-checklist,
.product-service-switches {
  margin-bottom: 14px;
}

.product-check-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  color: #384354;
  background: #fbfcff;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  cursor: pointer;
}

.product-check-card input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  accent-color: #2b6cff;
}

.product-check-card > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.product-check-card strong {
  font-size: 12px;
}

.product-check-card small {
  color: #748095;
  font-size: 11px;
  line-height: 1.45;
}

.product-inspection-group {
  display: grid;
  gap: 7px;
  padding: 9px 0;
  border-top: 1px solid #edf0f5;
}

.product-inspection-group > strong {
  color: #465267;
  font-size: 12px;
}

.product-review-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.product-review-summary .detail-grid {
  margin: 0;
}

.product-review-checks {
  display: grid;
  gap: 8px;
}

.product-review-checks > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  background: #fbfcff;
}

.product-review-checks span {
  color: #495569;
  font-size: 12px;
}

.product-review-checks strong {
  color: #6a7484;
  font-size: 11px;
  text-align: right;
}

.product-review-checks .ready svg,
.product-review-checks .ready strong {
  color: #13805f;
}

.product-review-checks .blocked svg {
  color: #c0322b;
}

.product-review-checks .pending svg {
  color: #9c6500;
}

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

  .product-batch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-basic-panel,
  .product-review-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .modal-overlay.is-product-editor {
    align-items: stretch;
    padding: 0;
  }

  .modal.is-product-editor {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .modal.is-product-editor .modal-head,
  .modal.is-product-editor .modal-actions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .modal.is-product-editor .modal-body {
    padding: 0 14px 18px;
  }

  .product-editor-topbar {
    align-items: stretch;
    flex-direction: column;
    margin-right: -14px;
    margin-left: -14px;
    padding: 10px 14px;
  }

  .product-editor-topbar .solid-button {
    width: 100%;
  }

  .product-wizard-steps {
    display: flex;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .product-wizard-steps li {
    flex: 0 0 96px;
  }

  .product-wizard-steps li:not(:last-child)::after {
    right: -42px;
  }

  .product-editor-section {
    min-height: 0;
    padding: 16px 13px;
  }

  .product-section-heading,
  .product-price-toolbar,
  .product-rent-ladder-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-policy-grid,
  .product-sku-fields,
  .product-media-grid,
  .product-check-grid,
  .product-quality-checklist,
  .product-service-switches,
  .product-batch-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-sku-card-head {
    align-items: flex-start;
  }

  .product-review-checks > div {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .product-review-checks strong {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .pe-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pe-product-editor-page .pe-image-slot,
  .pe-product-editor-page .pe-image-slot-placeholder {
    min-height: 150px;
  }

  .pe-product-editor-page .pe-image-preview {
    height: 100px;
  }

  .pe-quality-report-grid,
  .pe-service-config-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
