.merch-store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.merch-store-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #e5e7eb;
}

.merch-store-tabs__item {
  margin: 0;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.merch-store-tabs__item:hover {
  color: #111827;
}

.merch-store-tabs__item.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.merch-store-tabs__pane {
  display: none;
}

.merch-store-tabs__pane.is-active {
  display: block;
}

.merch-store-section-loading,
.merch-store-section-error {
  padding: 32px 16px;
  text-align: center;
  color: #6b7280;
}

.merch-store-section-error {
  color: #ef4444;
}

.merch-store-head__main {
  min-width: 0;
}

.merch-store-preview-btn {
  flex-shrink: 0;
  height: 38px;
  line-height: 38px;
  padding: 0 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.merch-store-preview-btn:hover {
  opacity: 0.92;
}

.merch-store-tip {
  margin-top: 8px;
  font-size: 14px;
  color: #6b7280;
}

.merch-store-editor {
  width: 100%;
}

.merch-store-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.merch-store-field--full {
  grid-column: 1 / -1;
}

.merch-store-field__hint {
  margin: -4px 0 10px;
  font-size: 12px;
  color: #9ca3af;
}

.merch-store-panel--readonly {
  background: #f8fafc;
}

.merch-store-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.merch-store-readonly-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.merch-store-readonly-item--full {
  grid-column: 1 / -1;
}

.merch-store-readonly-item__label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.merch-store-readonly-item__value {
  font-size: 14px;
  color: #111827;
  line-height: 1.6;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.merch-store-media-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 8px;
}

.merch-store-upload__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.merch-store-upload__preview:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.merch-store-upload__preview--logo {
  width: 120px;
  height: 120px;
}

.merch-store-upload__preview--wide {
  width: 100%;
  max-width: 560px;
  height: 180px;
}

.merch-store-upload__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: #9ca3af;
  user-select: none;
}

.merch-store-upload__empty-icon {
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}

.merch-store-upload__empty-text {
  font-size: 14px;
}

.merch-store-upload__replace {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}

.merch-store-upload__preview.has-image:hover .merch-store-upload__replace {
  opacity: 1;
}

.merch-store-upload__preview--promo {
  width: 100%;
  aspect-ratio: 1100 / 350;
}

.merch-store-upload__preview.has-image {
  border-style: solid;
  border-color: #e5e7eb;
}

.merch-store-upload__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.merch-store-upload__placeholder {
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  padding: 12px;
}

.cpw-crop-dialog__tip {
  margin: 0 0 12px;
  font-size: 12px;
  color: #6b7280;
}

.cpw-crop-dialog__stage {
  overflow: hidden;
  background: #f3f4f6;
}

.cpw-crop-dialog__stage img {
  display: block;
  max-width: 100%;
}

.merch-store-upload__file {
  display: none;
}

.merch-store-promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.merch-store-promo-item {
  position: relative;
}

.merch-store-promo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.msp-hero__logo--image {
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.msp-hero__logo--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.msp-banner--image {
  background-size: cover;
  background-position: center;
  position: relative;
}

.msp-banner--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.45) 100%);
  border-radius: inherit;
}

.msp-banner--image .msp-banner__text {
  position: relative;
  z-index: 1;
}

.msp-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.msp-promo-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  aspect-ratio: 1100 / 350;
}

.msp-promo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.merch-store-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 18px 6px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.merch-store-panel--muted {
  background: #f8fafc;
}

.merch-store-panel__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.merch-store-panel__hint {
  margin: -6px 0 14px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.merch-store-panel__hint a {
  color: #2563eb;
}

.merch-store-field {
  margin-bottom: 14px;
}

.merch-store-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.merch-store-actions {
  display: flex;
  justify-content: center;
  margin: 16px 0 0;
}

#storeDisplayServiceAddBtn {
  display: block;
  margin: 4px auto 0;
}

#storeCustomModuleAddBtn {
  display: block;
  margin: 4px auto 0;
}

.merch-store-custom-modules {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.merch-store-custom-module {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.merch-store-custom-module__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.merch-store-custom-module__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.merch-store-custom-module__name {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.merch-store-custom-module__name::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.merch-store-custom-module__name:hover,
.merch-store-custom-module__name:focus {
  border-color: #d1d5db;
  background: #fff;
  outline: none;
}

.merch-store-custom-module__remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.merch-store-custom-module__remove:hover {
  color: #ef4444;
  background: #fef2f2;
}

.merch-store-map-shell {
  position: relative;
}

.merch-store-map {
  position: relative;
  width: 100%;
  height: 320px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.merch-store-map__search {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.merch-store-map__search .layui-input {
  width: 220px;
  height: 32px;
}

.merch-store-map__search .layui-btn {
  height: 32px;
  line-height: 32px;
}

.merch-store-map__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.merch-store-rich-editor {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.merch-store-rich-editor__toolbar {
  border-bottom: 1px solid #e5e7eb;
}

.merch-store-rich-editor__editor {
  min-height: 320px;
}

.merch-store-rich-editor__editor .w-e-text-container {
  min-height: 320px !important;
}

.merch-store-editor-source {
  display: none !important;
}

.msp-rich-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
  word-break: break-word;
}

.msp-rich-text p {
  margin: 0 0 12px;
}

.msp-rich-text p:last-child {
  margin-bottom: 0;
}

.msp-rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.msp-rich-text ul,
.msp-rich-text ol {
  margin: 0 0 12px;
  padding-left: 1.5em;
}

.msp-rich-text a {
  color: #2563eb;
  text-decoration: underline;
}

.provider-store-page {
  padding: 24px 0 40px;
}

.provider-store-page .merch-store-preview {
  border: none;
  box-shadow: none;
}

.provider-store-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 14px;
}

.provider-store-preview-bar__link {
  flex-shrink: 0;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

.provider-store-preview-bar__link:hover {
  text-decoration: underline;
}

.merch-store-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.merch-store-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.merch-store-modal__panel {
  position: relative;
  width: min(960px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.merch-store-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.merch-store-modal__header h3 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.merch-store-modal__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.merch-store-modal__body {
  overflow: auto;
  padding: 0;
}

.merch-store-preview {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.msp-hero {
  padding: 24px 24px 0;
}

.msp-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.msp-hero__brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.msp-hero__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  flex-shrink: 0;
}

.msp-hero__logo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  border: 1px dashed #c7d2fe;
}

.msp-hero__logo-empty-text {
  font-size: 11px;
  font-weight: 600;
  color: #6366f1;
  line-height: 1.2;
  text-align: center;
  padding: 0 4px;
}

.msp-hero__name {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.msp-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.msp-hero-badge-row {
  --profile-badge-height: 28px;
}

.msp-cert-badge {
  display: inline-flex;
  align-items: center;
  height: var(--profile-badge-height, 28px);
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.msp-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.msp-badge--cert {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.msp-badge--basic {
  color: #4a4a4a;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.msp-badge--silver {
  color: #2a7a9e;
  background: #eef7fd;
  border: 1px solid #cce9f8;
}

.msp-badge--gold {
  color: #8f6910;
  background: #fff8e6;
  border: 1px solid #f0d78a;
}

.msp-hero__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.msp-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.msp-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.msp-btn--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.msp-btn__icon {
  font-size: 16px;
  line-height: 1;
}

.msp-btn--ghost.btn-favorite.favorited {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fca5a5;
}

.msp-btn--ghost.btn-favorite.favorited .msp-btn__icon {
  color: #ef4444;
}

.msp-btn--ghost {
  color: #2563eb;
  background: #fff;
  border-color: #93c5fd;
}

.msp-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.msp-banner {
  margin-top: 18px;
  padding: 28px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.msp-banner--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1100 / 350;
  min-height: 0;
  padding: 24px 20px;
  background: #3578f0;
}

.msp-banner__empty-text {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
}

.msp-banner--empty .msp-banner__text {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.msp-carousel {
  margin-top: 18px;
}

.msp-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
  aspect-ratio: 1100 / 350;
}

.msp-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.msp-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

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

.msp-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  z-index: 2;
}

.msp-carousel__arrow--prev {
  left: 12px;
}

.msp-carousel__arrow--next {
  right: 12px;
}

.msp-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.msp-carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.msp-carousel__dots button.is-active {
  background: #fff;
  transform: scale(1.15);
}

.msp-carousel__slogan {
  margin: 12px 0 0;
  text-align: center;
  color: #374151;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.msp-banner__text {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.msp-section {
  padding: 22px 24px 0;
}

.msp-section:last-child {
  padding-bottom: 24px;
}

.msp-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.msp-section__bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: #2563eb;
}

.msp-basic-card,
.msp-text-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.msp-basic-list {
  margin: 0;
  padding: 4px 0;
}

.msp-basic-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.msp-basic-list > div:last-child {
  border-bottom: 0;
}

.msp-basic-list dt {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.msp-basic-list dd {
  margin: 0;
  font-size: 14px;
  color: #111827;
  line-height: 1.6;
}

.msp-text-card__body {
  margin: 0;
  padding: 16px;
  font-size: 14px;
  color: #374151;
  line-height: 1.8;
  white-space: pre-wrap;
}

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

.msp-service-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  min-height: 140px;
}

.msp-service-card h5 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.msp-service-card p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
  white-space: pre-wrap;
}

.msp-service-card--warehouse {
  border-top: 3px solid #3b82f6;
}

.msp-service-card--logistics {
  border-top: 3px solid #10b981;
}

.msp-service-card--customs {
  border-top: 3px solid #f59e0b;
}

.msp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 24px 4px;
}

.msp-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.msp-stat__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.msp-stat--score .msp-stat__icon {
  color: #d97706;
  background: #fff7ed;
}

.msp-stat--review .msp-stat__icon {
  color: #2563eb;
  background: #eff6ff;
}

.msp-stat--order .msp-stat__icon {
  color: #059669;
  background: #ecfdf5;
}

.msp-stat--rate .msp-stat__icon {
  color: #7c3aed;
  background: #f5f3ff;
}

.msp-stat__body {
  min-width: 0;
}

.msp-stat__value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.msp-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.provider-store-page .msp-detail-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 24px 24px;
}

.msp-detail-layout {
  position: relative;
}

.msp-detail-layout .msp-detail-body {
  min-width: 0;
}

.msp-anchor-nav {
  position: fixed;
  top: 50%;
  right: max(12px, calc((100vw - min(100vw, 1200px)) / 2 - 104px));
  transform: translateY(calc(-50% - 100px));
  z-index: 30;
  width: 92px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.msp-anchor-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.msp-anchor-nav__item + .msp-anchor-nav__item {
  border-top: 1px solid #f3f4f6;
}

.msp-anchor-nav__link {
  display: block;
  padding: 10px 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
  text-align: center;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.15s ease, background 0.15s ease;
}

.msp-anchor-nav__link:hover {
  color: #2563eb;
  background: #f8fafc;
}

.msp-anchor-nav__link.is-active {
  color: #2563eb;
  background: #eff6ff;
  font-weight: 600;
}

.msp-anchor-nav__item--back-top {
  border-top: 1px solid #e5e7eb;
}

.msp-anchor-nav__item--back-top[hidden] {
  display: none;
}

.msp-anchor-nav__link--back-top.is-active {
  color: #2563eb;
  background: #eff6ff;
}

.provider-store-page .detail-section[id] {
  scroll-margin-top: calc(var(--site-header-height) + var(--store-anchor-offset, 12px));
}

.store-action-bar {
  display: none;
}

:root {
  --store-action-bar-height: 0px;
}

@media (max-width: 1280px) {
  .page-provider-store .merch-store-preview {
    overflow: visible;
  }

  .page-influencer-store .freight-store-preview {
    overflow: visible;
  }

  .provider-store-page .msp-detail-body > .msp-anchor-nav--bar {
    flex-shrink: 0;
  }

  .msp-anchor-nav--bar {
    display: block;
    position: sticky;
    top: var(--site-header-height);
    z-index: 850;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    transform: none;
    left: auto;
    right: auto;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .msp-anchor-nav--bar .msp-anchor-nav__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding-inline: 12px;
  }

  .msp-anchor-nav--bar .msp-anchor-nav__list::-webkit-scrollbar {
    display: none;
  }

  .msp-anchor-nav--bar .msp-anchor-nav__list::after {
    content: '';
    flex: 0 0 12px;
  }

  .msp-anchor-nav--bar .msp-anchor-nav__item {
    flex: 0 0 auto;
  }

  .msp-anchor-nav--bar .msp-anchor-nav__item + .msp-anchor-nav__item {
    border-top: none;
    border-left: 1px solid #f3f4f6;
  }

  .msp-anchor-nav--bar .msp-anchor-nav__link {
    padding: 12px 14px;
    white-space: nowrap;
    word-break: normal;
    text-align: center;
  }

  .msp-anchor-nav--bar .msp-anchor-nav__item--back-top {
    border-left: 1px solid #e5e7eb;
  }

  body.has-store-action-bar .store-hero-actions {
    display: none !important;
  }

  .store-action-bar {
    display: grid;
    grid-template-columns: repeat(var(--store-action-count, 1), minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    margin: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
  }

  .store-action-bar-spacer {
    display: block;
    width: 100%;
    height: 0;
    flex-shrink: 0;
    pointer-events: none;
  }

  .store-action-bar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    padding: 6px 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #374151;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .store-action-bar__btn .layui-icon {
    font-size: 20px;
    line-height: 1;
  }

  .store-action-bar__btn:active:not(:disabled) {
    background: #f3f4f6;
  }

  .store-action-bar__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .store-action-bar__btn--primary {
    color: #2563eb;
  }

  .store-action-bar__btn--primary .layui-icon {
    color: #2563eb;
  }

  .store-action-bar__btn.favorited {
    color: #ef4444;
  }

  .store-action-bar__btn.favorited .layui-icon {
    color: #ef4444;
  }

  .merch-store-preview,
  .freight-store-preview {
    padding-bottom: calc(var(--store-action-bar-height, 0px) + 24px);
  }

  body.has-store-action-bar .provider-store-page {
    padding-bottom: calc(var(--store-action-bar-height, 0px) + 24px);
  }

  .msp-review-compose-host {
    position: fixed;
    inset: 0;
    z-index: 960;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .msp-review-compose-host:not([hidden]) {
    display: flex !important;
  }

  .msp-review-compose-host__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: default;
  }

  .msp-review-compose-host__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(85vh, calc(100dvh - 56px));
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.16);
    overflow: hidden;
  }

  .msp-review-compose-host__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
  }

  .msp-review-compose-host__header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
  }

  .msp-review-compose-host__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .msp-review-compose-host__close:active {
    background: #f3f4f6;
  }

  .msp-review-compose-host__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .msp-review-compose-host .msp-review-compose {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .msp-review-compose-host .msp-review-compose .detail-section,
  .msp-review-compose-host .detail-section {
    padding: 0;
    border: none;
    box-shadow: none;
  }

  body.review-compose-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .msp-review-compose-host:not(.msp-connect-compose-host) .msp-review-form__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 8px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 24%);
    border-top: 1px solid #f3f4f6;
  }

  /* iOS/Android：表单控件字号 < 16px 时聚焦会自动放大页面 */
  .msp-review-compose-host .msp-review-form__textarea,
  .msp-connect-compose-host .msp-connect-form__input,
  .msp-connect-compose-host .msp-connect-form__input--readonly,
  .msp-connect-compose-host textarea {
    font-size: 16px;
  }
}

@media (min-width: 1281px) {
  .merch-store-preview,
  .freight-store-preview {
    overflow: visible;
  }

  .store-hero-sticky-top {
    position: sticky;
    top: var(--site-header-height);
    z-index: 840;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }

  .merch-store-preview > .store-hero-sticky-top {
    padding: 24px 24px 14px;
  }

  .merch-store-preview > .msp-hero {
    padding: 0 24px;
  }

  .freight-store-preview > .store-hero-sticky-top {
    border-bottom: none;
    box-shadow: none;
  }

  .msp-anchor-nav--bar {
    position: fixed;
  }

  .msp-review-compose-host:not(.msp-connect-compose-host) {
    display: block;
  }

  .msp-review-compose-host:not(.msp-connect-compose-host) .msp-review-compose-host__backdrop {
    display: none;
  }

  .msp-review-compose-host__header {
    display: block;
    margin-bottom: 4px;
  }

  .msp-review-compose-host__header h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
  }

  .msp-review-compose-host:not(.msp-connect-compose-host) .msp-review-compose-host__close {
    display: none;
  }
}

.msp-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: stretch;
}

.msp-detail-top__main,
.msp-detail-top__sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.msp-detail-top__main {
  min-width: 0;
}

.msp-detail-top__sidebar {
  gap: 20px;
}

.msp-detail-top__main .msp-service-showcase {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.msp-service-showcase__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.msp-service-showcase__list {
  flex: 1;
}

.msp-service-showcase__empty {
  flex: 1;
  display: flex;
  align-items: center;
}

.msp-service-showcase__empty[hidden] {
  display: none !important;
}

.msp-sidebar-certs {
  flex: 1;
}

.msp-detail-full {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.msp-contact-section__top {
  width: 100%;
}

.msp-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
}

.msp-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.msp-contact-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eff6ff;
  color: #3b82f6;
  font-size: 18px;
}

.msp-contact-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.msp-contact-item__label {
  font-size: 13px;
  color: #9ca3af;
}

.msp-contact-item__value {
  font-size: 15px;
  color: #374151;
  line-height: 1.5;
  word-break: break-word;
}

.msp-contact-item__value--phone {
  font-size: 18px;
  font-weight: 700;
  color: #3b82f6;
}

.msp-contact-item__value--link {
  color: #3b82f6;
  text-decoration: none;
}

.msp-contact-item__value--link:hover {
  text-decoration: underline;
}

.msp-contact-section__actions {
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.msp-contact-section .quick-contact {
  min-width: 200px;
  max-width: none;
}

.msp-contact-section .quick-contact:disabled,
.msp-contact-section .quick-contact.is-connect-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.msp-contact-map {
  margin-top: 20px;
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.msp-contact-map__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9ca3af;
  font-size: 14px;
}

.provider-store-page .msp-effective-reviews .review-card + .review-card,
.msp-effective-reviews .msp-review-list .review-card + .review-card {
  margin-top: 16px;
}

.msp-effective-reviews .msp-section-head {
  margin-bottom: 12px;
}

.msp-effective-reviews .msp-section-head h3 {
  margin: 0;
}

.msp-section-count {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
}

.msp-review-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.msp-review-tabs::-webkit-scrollbar {
  display: none;
}

.msp-review-tabs__btn {
  flex: 0 0 auto;
  padding: 4px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.msp-review-tabs__btn:hover {
  color: #2563eb;
  border-color: #bfdbfe;
}

.msp-review-tabs__btn.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

.msp-review-tabs__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.msp-review-loading,
.msp-review-empty {
  margin: 0;
  padding: 10px 0;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

.msp-review-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.msp-review-pager__btn {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.msp-review-pager__btn:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
}

.msp-review-pager__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.msp-review-pager__info {
  font-size: 12px;
  color: #6b7280;
}

.msp-review-media {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.msp-review-media img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}

.msp-review-reply {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.msp-review-reply__time {
  margin-left: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.msp-detail-body .detail-section .quick-contact {
  max-width: none;
}

.msp-sidebar-basic {
  margin: 0;
}

.msp-sidebar-basic > div {
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.msp-sidebar-basic > div:last-child {
  border-bottom: 0;
}

.msp-sidebar-basic dt {
  margin: 0 0 4px;
  font-size: 13px;
  color: #9ca3af;
}

.msp-sidebar-basic dd {
  margin: 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  word-break: break-word;
}

.msp-sidebar-intro {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
  white-space: pre-wrap;
}

.msp-company-intro {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
  white-space: pre-wrap;
}

.msp-contact-info {
  margin-bottom: 16px;
}

.msp-empty-tip {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
}

.msp-access-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 160px;
  padding: 32px 20px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  text-align: center;
}

.msp-access-placeholder .layui-icon {
  font-size: 36px;
  color: #9ca3af;
}

.msp-access-placeholder p {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.msp-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msp-showcase {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.msp-showcase--warehouse {
  border-left: 4px solid #3b82f6;
}

.msp-showcase--logistics {
  border-left: 4px solid #10b981;
}

.msp-showcase--customs {
  border-left: 4px solid #f59e0b;
}

.msp-showcase__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.msp-showcase__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.msp-showcase__type {
  flex-shrink: 0;
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px 10px;
}

.msp-showcase__price {
  margin: 6px 0 0;
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
}

.msp-showcase__intro,
.msp-showcase__summary {
  margin: 0 0 10px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
  white-space: pre-wrap;
}

.msp-showcase__summary {
  color: #6b7280;
}

.msp-showcase__highlights {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.msp-showcase__highlights li {
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f9fafb;
}

.msp-showcase__highlight-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.msp-showcase__highlight-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.msp-showcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.msp-showcase__tag {
  font-size: 12px;
  color: #374151;
  background: #eef2ff;
  border-radius: 999px;
  padding: 4px 10px;
}

.msp-contact-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 4px 0;
}

.msp-contact-list {
  margin: 0;
}

.msp-contact-list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.msp-contact-list > div:last-child {
  border-bottom: none;
}

.msp-contact-list dt {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.msp-contact-list dd {
  margin: 0;
  font-size: 14px;
  color: #111827;
  word-break: break-word;
}

.msp-contact-list a {
  color: #2563eb;
}

.merch-store-service-tags {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.merch-store-service-tags__item {
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 12px;
  background: #f3f4f6;
  color: #374151;
}

.merch-store-service-tags__item--warehouse {
  background: #eff6ff;
  color: #1d4ed8;
}

.merch-store-service-tags__item--logistics {
  background: #ecfdf5;
  color: #047857;
}

.merch-store-service-tags__item--customs {
  background: #fffbeb;
  color: #b45309;
}

.merch-store-optional {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
}

.merch-store-required {
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
}

.merch-store-display-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.merch-store-display-service {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

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

.merch-store-display-service__image-field {
  min-width: 0;
}

.merch-store-display-service__content {
  min-width: 0;
}

.merch-store-display-service__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: start;
}

.merch-store-display-service__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.merch-store-display-service__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.merch-store-display-service__field--desc {
  margin-top: 12px;
}

.merch-store-display-service__field--desc .layui-input {
  width: 100%;
}

.merch-store-display-service__counter {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
  text-align: right;
}

.merch-store-display-service__upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.merch-store-display-service__upload:hover {
  border-color: #93c5fd;
}

.merch-store-display-service__upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #9ca3af;
}

.merch-store-display-service__upload-icon {
  font-size: 22px;
  line-height: 1;
}

.merch-store-display-service__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merch-store-display-service__upload-tip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}

.merch-store-display-service__upload.has-image:hover .merch-store-display-service__upload-tip {
  opacity: 1;
}

.merch-store-display-service__remove {
  width: 36px;
  height: 36px;
  margin-top: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.merch-store-display-service__remove:hover {
  color: #ef4444;
  border-color: #fecaca;
  background: #fef2f2;
}

.provider-store-page .service-item--showcase {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
}

.provider-store-page .service-item--showcase:not(:last-child) {
  border-bottom: 1px solid #f5f5f5;
}

.provider-store-page .service-item--showcase .service-item__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}

.provider-store-page .service-item--showcase .service-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-store-page .service-item--showcase .service-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.provider-store-page .service-item--showcase .service-item__desc {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.provider-store-page .service-item--showcase:not(:has(.service-item__thumb)) {
  grid-template-columns: 1fr;
}

.msp-service-showcase__loading {
  margin: 0 0 12px;
  color: #9ca3af;
  font-size: 14px;
}

.msp-service-showcase__pager {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 20px;
}

.msp-review-compose[hidden] {
  display: none;
}

.msp-review-compose-host[hidden] {
  display: none !important;
}

.msp-review-compose {
  margin-top: 4px;
}

.msp-review-compose__intro {
  margin: 0 0 16px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.msp-review-compose__progress {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 14px;
}

.msp-review-form__section {
  margin-bottom: 20px;
}

.msp-review-form__section h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.msp-review-form__textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
}

.msp-review-form__textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.msp-review-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.msp-review-compose .msp-rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px 16px;
}

.msp-review-compose .msp-rate-item {
  text-align: center;
}

.msp-review-compose .msp-rate-item__label {
  margin-bottom: 8px;
  font-size: 13px;
  color: #6b7280;
}

.msp-review-compose .msp-rate-item__elem {
  display: inline-flex;
  justify-content: center;
}

.msp-review-compose .msp-rate-item__elem .layui-rate {
  padding: 0;
}

.msp-review-compose .msp-rate-item__elem .layui-icon {
  font-size: 22px;
}

.msp-review-compose .msp-rate-item__result {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.msp-review-compose .msp-rate-item__result[data-level="1"] {
  color: #dc2626;
}

.msp-review-compose .msp-rate-item__result[data-level="2"] {
  color: #ea580c;
}

.msp-review-compose .msp-rate-item__result[data-level="3"] {
  color: #ca8a04;
}

.msp-review-compose .msp-rate-item__result[data-level="4"] {
  color: #2563eb;
}

.msp-review-compose .msp-rate-item__result[data-level="5"] {
  color: #16a34a;
}

.msp-review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.msp-review-images__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.msp-review-images__item {
  position: relative;
  width: 88px;
  height: 88px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}

.msp-review-images__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msp-review-images__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.msp-review-images__remove:hover {
  background: rgba(17, 24, 39, 0.9);
}

.msp-review-images__add {
  width: 88px;
  height: 88px;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: #9ca3af;
  font-size: 12px;
  background: #fafafa;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.msp-review-images__add:hover {
  border-color: #93c5fd;
  color: #3b82f6;
  background: #f8fbff;
}

.msp-review-images__add.is-uploading {
  pointer-events: none;
  opacity: 0.6;
}

.msp-review-images__add[hidden] {
  display: none;
}

.msp-review-images__add .layui-icon {
  font-size: 22px;
}

.msp-review-images__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

.msp-hero__actions .msp-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 768px) {
  .provider-store-page {
    padding: 12px 0 calc(var(--store-action-bar-height, 0px) + 24px);
  }

  .provider-store-page > .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .msp-hero {
    padding: 16px 12px 0;
  }

  .msp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 12px 0;
    gap: 8px;
  }

  .msp-stat {
    padding: 10px;
    gap: 8px;
  }

  .msp-stat__icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .msp-stat__value {
    font-size: 17px;
  }

  .msp-stat__label {
    font-size: 11px;
  }

  .msp-carousel,
  .msp-banner {
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 0;
  }

  .msp-carousel__viewport,
  .msp-banner--empty {
    border-radius: 0;
  }

  .msp-carousel__slogan {
    padding: 0 4px;
    font-size: 14px;
  }

  .merch-store-head {
    flex-direction: column;
    align-items: stretch;
  }

  .merch-store-preview-btn {
    width: 100%;
  }

  .merch-store-form__grid {
    grid-template-columns: 1fr;
  }

  .merch-store-readonly-grid {
    grid-template-columns: 1fr;
  }


  .msp-service-grid {
    grid-template-columns: 1fr;
  }

  .msp-showcase__highlights {
    grid-template-columns: 1fr;
  }

  .msp-hero__top {
    flex-direction: column;
  }

  .msp-hero__actions {
    width: 100%;
  }

  .provider-store-page .msp-detail-body {
    padding: 12px 12px 16px;
    gap: 12px;
  }

  .provider-store-page .detail-section,
  .provider-store-page .sidebar-section {
    padding: 16px 14px;
  }

  .provider-store-page .detail-section h3 {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .msp-detail-top {
    grid-template-columns: 1fr;
  }

  .msp-contact-grid {
    grid-template-columns: 1fr;
  }

  .msp-contact-map {
    height: 260px;
  }

  .merch-store-display-service__layout {
    grid-template-columns: 1fr;
  }

  .merch-store-display-service__upload {
    width: 100%;
    max-width: 200px;
    height: 140px;
  }

  .merch-store-display-service__fields {
    grid-template-columns: 1fr;
  }

  .merch-store-display-service__head {
    grid-template-columns: 1fr;
  }

  .merch-store-display-service__remove {
    margin-top: 0;
    justify-self: end;
  }
}

/* 店铺对接表单弹窗（PC / 移动统一弹框） */
.msp-connect-compose-host {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.msp-connect-compose-host:not([hidden]) {
  display: flex !important;
}

.msp-connect-compose-host .msp-review-compose-host__backdrop {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.msp-connect-compose-host .msp-review-compose-host__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.msp-connect-compose-host .msp-review-compose-host__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: min(90vh, 720px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.msp-connect-compose-host .msp-review-compose-host__body {
  overflow-y: auto;
  padding: 16px 16px 20px;
}

.msp-connect-form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.msp-connect-form__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background: #fff;
}

.msp-connect-form__input--readonly {
  background: #f9fafb;
  color: #6b7280;
}

.msp-connect-form__notice {
  margin-top: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.6;
}

.msp-connect-form__label--required::after {
  content: '*';
  margin-left: 4px;
  color: #ef4444;
}

.msp-connect-form__actions {
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 1280px) {
  .msp-connect-compose-host {
    align-items: flex-end;
    padding: 0;
  }

  .msp-connect-compose-host .msp-review-compose-host__dialog {
    width: 100%;
    max-height: min(92vh, calc(100dvh - var(--site-header-height, 88px) - 12px));
    border-radius: 16px 16px 0 0;
  }
}
