:root {
  --mall-bg: #f4f6fb;
  --mall-bg-strong: #0f172a;
  --mall-card: rgba(255, 255, 255, 0.96);
  --mall-card-soft: rgba(255, 255, 255, 0.84);
  --mall-primary: #1677ff;
  --mall-primary-deep: #0f56bf;
  --mall-accent: #19c37d;
  --mall-warning: #ff9f1a;
  --mall-danger: #ff4d4f;
  --mall-text: #111827;
  --mall-text-soft: #6b7280;
  --mall-line: rgba(15, 23, 42, 0.08);
  --mall-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --mall-shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.14);
  --mall-radius-xl: 30px;
  --mall-radius-lg: 24px;
  --mall-radius-md: 18px;
  --mall-shell-width: 760px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--mall-text);
  background:
    radial-gradient(circle at top left, rgba(22, 119, 255, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(25, 195, 125, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--mall-bg) 100%);
}

body.mall-page-message,
body.mall-page-report {
  background:
    radial-gradient(circle at top left, rgba(25, 195, 125, 0.16), transparent 28%),
    linear-gradient(180deg, #eefaf4 0%, #f4f6fb 52%, #edf1f7 100%);
}

body.mall-page-checkout,
body.mall-page-order-detail,
body.mall-page-feature-introduction {
  background:
    radial-gradient(circle at top left, rgba(22, 119, 255, 0.1), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fc 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.mall-shell {
  width: min(100%, var(--mall-shell-width));
  margin: 0 auto;
  padding: 22px 16px 32px;
}

.mall-shell--wide {
  width: min(100%, 860px);
}

.mall-shell--tabbar {
  padding-bottom: 112px;
}

.mall-shell--detail {
  padding-bottom: calc(env(safe-area-inset-bottom) + 120px);
}

.mall-card,
.mall-notice-card,
.mall-search-card,
.mall-service-hero,
.mall-guide-hero {
  background: var(--mall-card);
  border: 1px solid var(--mall-line);
  box-shadow: var(--mall-shadow);
  border-radius: var(--mall-radius-xl);
}

.mall-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  color: var(--mall-text-soft);
  font-size: 14px;
  text-align: center;
}

.mall-topbar {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.mall-topbar__back,
.mall-topbar__action {
  font-size: 14px;
  font-weight: 700;
  color: var(--mall-text-soft);
}

.mall-topbar__back--ghost {
  visibility: hidden;
}

.mall-topbar__title {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.mall-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 28px 26px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #111827 0%, #1552c6 48%, #19c37d 100%);
  color: #fff;
  box-shadow: var(--mall-shadow-strong);
}

.mall-hero__eyebrow,
.mall-service-hero__eyebrow,
.mall-guide-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.mall-hero h1,
.mall-service-hero h1,
.mall-guide-hero h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  font-weight: 900;
}

.mall-hero p,
.mall-service-hero p,
.mall-guide-hero p {
  margin: 14px 0 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.mall-hero__search,
.mall-service-hero__btn {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--mall-primary-deep);
  font-size: 14px;
  font-weight: 800;
}

.mall-banner-card {
  margin-top: 18px;
  overflow: hidden;
  padding: 0;
}

.mall-banner-track {
  position: relative;
  min-height: 210px;
}

.mall-banner-item,
.mall-banner-placeholder {
  position: relative;
  display: block;
  min-height: 210px;
}

.mall-banner-item img,
.mall-banner-placeholder img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.mall-banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #c7f9e4 100%);
  color: #475569;
  font-weight: 700;
}

.mall-banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 16px;
}

.mall-banner-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}

.mall-banner-dots .is-active {
  background: var(--mall-primary);
}

.mall-notice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-top: 18px;
}

.mall-notice-card__label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.1);
  color: var(--mall-primary);
  font-size: 12px;
  font-weight: 800;
}

.mall-notice-card__text {
  min-width: 0;
  color: var(--mall-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.mall-section {
  margin-top: 22px;
}

.mall-section__head,
.mall-category-main__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.mall-section__head h2,
.mall-category-main__head h2,
.mall-form-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.mall-section__head p,
.mall-category-main__head p {
  margin: 8px 0 0;
  color: var(--mall-text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.mall-section__head a {
  color: var(--mall-primary);
  font-size: 14px;
  font-weight: 800;
}

.mall-chip-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.mall-chip-row::-webkit-scrollbar {
  display: none;
}

.mall-chip,
.mall-category-sidebar button,
.mall-option-row button,
.mall-order-filter button,
.mall-pay-methods button {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--mall-text-soft);
}

.mall-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.mall-chip.is-active,
.mall-category-sidebar button.is-active,
.mall-option-row button.is-active,
.mall-order-filter button.is-active,
.mall-pay-methods button.is-active {
  background: linear-gradient(135deg, #1677ff 0%, #1f5de8 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px rgba(22, 119, 255, 0.22);
}

.mall-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mall-product-grid--compact {
  gap: 14px;
}

.mall-product-grid--list {
  grid-template-columns: minmax(0, 1fr);
}

.mall-product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--mall-card);
  border: 1px solid var(--mall-line);
  box-shadow: var(--mall-shadow);
}

.mall-product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e5e7eb;
}

.mall-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.mall-product-card__title {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mall-product-card__desc {
  display: -webkit-box;
  min-height: 40px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--mall-text-soft);
  font-size: 12px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mall-product-card__foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.mall-product-card__price strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--mall-primary);
}

.mall-product-card__price span {
  display: block;
  margin-top: 6px;
  color: #9ca3af;
  font-size: 12px;
}

.mall-product-card__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(25, 195, 125, 0.12);
}

.mall-product-card__action img {
  width: 20px;
  height: 20px;
}

.mall-product-grid--list .mall-product-card {
  flex-direction: row;
  align-items: stretch;
}

.mall-product-grid--list .mall-product-card__image {
  width: 148px;
  min-width: 148px;
  height: auto;
  aspect-ratio: auto;
}

.mall-product-grid--list .mall-product-card__body {
  min-width: 0;
  padding: 18px 18px 18px 16px;
}

.mall-product-grid--list .mall-product-card__title {
  min-height: 0;
}

.mall-product-grid--list .mall-product-card__desc {
  min-height: 0;
  margin-top: 8px;
  -webkit-line-clamp: 3;
}

.mall-product-grid--list .mall-product-card__foot {
  align-items: center;
  padding-top: 16px;
}

.mall-product-grid--list .mall-product-card__action {
  width: auto;
  min-width: 76px;
  padding: 0 18px;
  color: var(--mall-accent);
  font-size: 13px;
  font-weight: 800;
}

.mall-product-grid--list .mall-product-card__action img {
  display: none;
}

.mall-product-grid--list .mall-product-card__action::after {
  content: "立即下单";
}

.mall-search-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
}

.mall-input,
.mall-textarea,
.mall-stepper__input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.98);
  color: var(--mall-text);
}

.mall-input,
.mall-stepper__input {
  height: 52px;
  padding: 0 16px;
}

.mall-textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.mall-primary-btn,
.mall-secondary-btn {
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}

.mall-primary-btn {
  min-height: 52px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, #1677ff 0%, #1f5de8 100%);
  box-shadow: 0 16px 28px rgba(22, 119, 255, 0.22);
}

.mall-primary-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.mall-secondary-btn {
  min-height: 52px;
  padding: 0 18px;
  background: rgba(22, 119, 255, 0.1);
  color: var(--mall-primary);
}

.mall-category-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  margin-top: 18px;
}

.mall-category-sidebar,
.mall-category-main,
.mall-form-card,
.mall-service-card,
.mall-menu-card,
.mall-order-card,
.mall-order-summary,
.mall-stat-card,
.mall-product-hero,
.mall-notice-panel {
  background: var(--mall-card);
  border: 1px solid var(--mall-line);
  box-shadow: var(--mall-shadow);
  border-radius: var(--mall-radius-xl);
}

.mall-category-sidebar {
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.mall-category-sidebar button {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.mall-category-main {
  padding: 18px;
}

.mall-service-hero,
.mall-guide-hero {
  padding: 28px 24px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #1452c4 0%, #1677ff 56%, #22c55e 100%);
  color: #fff;
}

.mall-service-hero--dark {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #111827 0%, #1f2937 52%, #334155 100%);
}

.mall-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mall-service-card {
  padding: 22px;
}

.mall-service-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.mall-service-card p {
  margin: 10px 0 0;
  color: var(--mall-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.mall-service-card__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin-top: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

.mall-service-card__qr img {
  width: min(240px, 100%);
  height: auto;
  border-radius: 20px;
}

.mall-bullet-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--mall-text-soft);
  line-height: 1.9;
}

.mall-order-filter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.mall-order-filter button {
  min-height: 46px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
}

.mall-order-list {
  display: grid;
  gap: 16px;
}

.mall-order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px 20px;
}

.mall-order-card {
  padding: 18px;
}

.mall-order-card__head,
.mall-order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mall-order-card__sn {
  color: var(--mall-text-soft);
  font-size: 13px;
}

.mall-order-card__status {
  font-size: 14px;
  font-weight: 900;
}

.is-status-pending {
  color: var(--mall-warning);
}

.is-status-processing {
  color: var(--mall-primary);
}

.is-status-completed {
  color: var(--mall-accent);
}

.is-status-cancelled {
  color: #9ca3af;
}

.mall-order-card__body {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  padding: 16px 0;
}

.mall-order-card__body img,
.mall-order-card__fallback {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
  background: #e5e7eb;
}

.mall-order-card__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 28px;
  font-weight: 900;
}

.mall-order-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 900;
}

.mall-order-card__meta {
  margin-top: 8px;
  color: var(--mall-text-soft);
  font-size: 13px;
  line-height: 1.8;
}

.mall-order-card__price {
  text-align: right;
}

.mall-order-card__price strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.mall-order-card__price span {
  display: block;
  margin-top: 10px;
  color: var(--mall-text-soft);
  font-size: 13px;
}

.mall-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.mall-pill-btn,
.mall-pill-btn--danger,
.mall-pill-btn--primary {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.mall-pill-btn {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: var(--mall-text-soft);
}

.mall-pill-btn--primary {
  border: 0;
  background: linear-gradient(135deg, #1677ff 0%, #1f5de8 100%);
  color: #fff;
}

.mall-pill-btn--danger {
  border: 1px solid rgba(255, 77, 79, 0.24);
  background: rgba(255, 77, 79, 0.08);
  color: var(--mall-danger);
}

.mall-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  padding: 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, #111827 0%, #1e3a8a 52%, #1677ff 100%);
  box-shadow: var(--mall-shadow-strong);
  color: #fff;
}

.mall-profile-hero__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 30px;
  font-weight: 900;
  overflow: hidden;
}

.mall-profile-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-profile-hero__badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.mall-profile-hero__info h1 {
  margin: 12px 0 0;
  font-size: 28px;
  font-weight: 900;
}

.mall-profile-hero__info p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.8;
}

.mall-profile-hero__action {
  align-self: end;
  min-width: 112px;
}

.mall-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mall-stat-card {
  padding: 22px;
}

.mall-stat-card span {
  display: block;
  color: var(--mall-text-soft);
  font-size: 13px;
}

.mall-stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  font-weight: 900;
}

.mall-menu-card {
  overflow: hidden;
  margin-top: 20px;
}

.mall-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}

.mall-menu-item:last-child {
  border-bottom: 0;
}

.mall-menu-item--button {
  border: 0;
}

.mall-product-hero,
.mall-form-card,
.mall-notice-panel {
  padding: 22px;
}

.mall-product-hero__content {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
}

.mall-product-hero__image {
  width: 128px;
  height: 128px;
  border-radius: 24px;
  object-fit: cover;
  background: #e5e7eb;
}

.mall-product-hero__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 900;
}

.mall-product-hero__desc {
  margin: 12px 0 0;
  color: var(--mall-text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.mall-product-hero__price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.mall-product-hero__price strong {
  color: var(--mall-primary);
  font-size: 32px;
  font-weight: 900;
}

.mall-product-hero__price del {
  color: #9ca3af;
  font-size: 16px;
}

.mall-field {
  display: block;
  margin-top: 18px;
}

.mall-field:first-child {
  margin-top: 0;
}

.mall-field__label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
}

.mall-option-row {
  display: flex;
  gap: 10px;
}

.mall-option-row--wrap {
  flex-wrap: wrap;
}

.mall-option-row button,
.mall-pay-methods button {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
}

.mall-pay-methods {
  display: grid;
  gap: 12px;
}

.mall-pay-methods button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 78px;
  padding: 14px 16px;
  text-align: left;
}

.mall-pay-methods strong {
  font-size: 16px;
}

.mall-pay-methods span {
  color: inherit;
  font-size: 13px;
  opacity: 0.88;
}

.mall-stepper {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 10px;
}

.mall-stepper button {
  height: 52px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.98);
  font-size: 20px;
  font-weight: 800;
}

.mall-richtext,
.mall-richtext p {
  color: var(--mall-text-soft);
  font-size: 14px;
  line-height: 1.9;
}

.mall-agreement {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 4px 0;
  color: var(--mall-text-soft);
  font-size: 14px;
}

.mall-bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, var(--mall-shell-width));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px calc(env(safe-area-inset-bottom) + 14px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.08);
  z-index: 28;
}

.mall-bottom-bar__price {
  min-width: 132px;
}

.mall-bottom-bar__price span {
  display: block;
  color: var(--mall-text-soft);
  font-size: 12px;
}

.mall-bottom-bar__price strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 900;
}

.mall-bottom-bar .mall-primary-btn {
  flex: 1;
}

.mall-detail-card {
  padding: 22px;
  border-radius: 28px;
  background: var(--mall-card);
  border: 1px solid var(--mall-line);
  box-shadow: var(--mall-shadow);
}

.mall-detail-card + .mall-detail-card {
  margin-top: 16px;
}

.mall-detail-status {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.mall-detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mall-detail-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  color: var(--mall-text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.mall-detail-row strong {
  color: var(--mall-text);
  font-weight: 700;
  text-align: right;
}

.mall-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.mall-upload-item,
.mall-upload-trigger {
  width: 104px;
  height: 104px;
  border-radius: 20px;
  overflow: hidden;
}

.mall-upload-item {
  position: relative;
  background: #e5e7eb;
}

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

.mall-upload-item button {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
}

.mall-upload-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: rgba(248, 250, 252, 0.98);
  color: var(--mall-text-soft);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mall-upload-trigger input {
  display: none;
}

.mall-guide-timeline {
  display: grid;
  gap: 16px;
}

.mall-guide-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background: var(--mall-card);
  border: 1px solid var(--mall-line);
  box-shadow: var(--mall-shadow);
}

.mall-guide-step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1677ff 0%, #1f5de8 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.mall-guide-step h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.mall-guide-step p {
  margin: 10px 0 0;
  color: var(--mall-text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.mall-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, var(--mall-shell-width));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 10px 8px calc(env(safe-area-inset-bottom) + 10px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -16px 36px rgba(15, 23, 42, 0.08);
  z-index: 30;
}

.mall-tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.mall-tabbar__item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.mall-tabbar__item.is-active {
  color: var(--mall-primary);
}

.mall-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.mall-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(2px);
}

.mall-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100% - 28px), 460px);
  padding: 26px 22px 22px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--mall-shadow-strong);
}

.mall-modal__close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 26px;
}

.mall-modal__title {
  margin: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
}

.mall-modal__desc {
  margin: 10px 0 0;
  text-align: center;
  color: var(--mall-text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.mall-login-modal__badge,
.mall-pay-modal__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 34px;
  margin: 0 auto 12px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.08);
  color: var(--mall-primary);
  font-size: 12px;
  font-weight: 900;
}

.mall-login-modal__submit {
  width: 100%;
  margin-top: 18px;
}

.mall-login-modal__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--mall-text-soft);
  font-size: 14px;
}

.mall-login-modal__footer a {
  color: var(--mall-primary);
  font-weight: 800;
}

.mall-pay-modal__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin-top: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

.mall-pay-modal__qr img {
  width: min(280px, 100%);
  height: auto;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.mall-pay-modal__placeholder,
.mall-pay-modal__code {
  color: var(--mall-text-soft);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.mall-pay-modal__code {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.98);
  word-break: break-all;
}

.mall-pay-modal__actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mall-toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%) translateY(20px);
  max-width: calc(100% - 28px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

.mall-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 780px) {
  .mall-category-layout,
  .mall-service-grid,
  .mall-product-hero__content,
  .mall-order-card__body,
  .mall-profile-hero,
  .mall-hero {
    grid-template-columns: 1fr;
  }

  .mall-product-grid {
    grid-template-columns: 1fr;
  }

  .mall-product-grid--list .mall-product-card__image {
    width: 126px;
    min-width: 126px;
  }

  .mall-product-grid--list .mall-product-card__body {
    padding: 16px 14px;
  }

  .mall-order-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mall-tabbar {
    width: 100%;
  }

  .mall-bottom-bar {
    width: 100%;
  }
}
