/* 一秒互联公司  www.yimiaonet.com：店铺目录页面级样式，避免继续污染其他市场页面。 */
.marketplace-store-directory-hero,
.marketplace-store-directory,
.marketplace-store-entry-band {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.marketplace-store-directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 44px 0 24px;
}

.marketplace-store-directory-title span,
.marketplace-directory-heading > div > span,
.marketplace-store-entry-band span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.marketplace-store-directory-title h1,
.marketplace-directory-heading h2 {
  margin: 8px 0 10px;
  color: #10233f;
  letter-spacing: 0;
}

.marketplace-store-directory-title p {
  max-width: 680px;
  margin: 0;
  color: #61718a;
  font-size: 14px;
  line-height: 1.75;
}

.marketplace-store-directory-hero dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 1px;
  min-width: 460px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #dbe5f0;
}

.marketplace-store-directory-hero dl div {
  min-height: 76px;
  padding: 15px 14px;
  background: #fff;
}

.marketplace-store-directory-hero dt {
  color: #162a47;
  font-size: 22px;
  font-weight: 750;
}

.marketplace-store-directory-hero dd {
  margin: 5px 0 0;
  color: #718198;
  font-size: 12px;
}

.marketplace-store-directory {
  padding: 18px 0 54px;
}

.marketplace-directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.marketplace-directory-heading h2 {
  font-size: 22px;
}

.marketplace-store-search {
  display: flex;
  align-items: center;
  width: min(360px, 100%);
  min-height: 44px;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 54, 94, .05);
}

.marketplace-store-search svg {
  width: 18px;
  height: 18px;
  color: #6b7b91;
  flex: 0 0 auto;
}

.marketplace-store-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #1d3557;
  font-size: 14px;
}

.marketplace-store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.marketplace-store-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe7f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 54, 94, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.marketplace-store-card:hover {
  transform: translateY(-3px);
  border-color: var(--store-accent, #2563eb);
  box-shadow: 0 16px 34px rgba(20, 54, 94, .12);
}

.marketplace-store-banner {
  position: relative;
  display: block;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: #e8f0f8;
}

.marketplace-store-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.marketplace-store-card:hover .marketplace-store-banner img { transform: scale(1.035); }

.marketplace-store-banner > span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 5px;
  background: rgba(13, 34, 63, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.marketplace-store-card-body {
  display: flex;
  min-height: 286px;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.marketplace-store-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.marketplace-store-avatar { width: 54px; height: 54px; flex: 0 0 54px; overflow: hidden; border: 1px solid #dbe5f0; border-radius: 10px; background: #eef4fb; color: var(--store-accent, #2563eb); display: grid; place-items: center; font-weight: 800; }
.marketplace-store-avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.marketplace-store-identity h2 { overflow: hidden; margin: 0 0 5px; color: #142b4a; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.marketplace-store-identity h2 a { color: inherit; }
.marketplace-store-identity > div > span { display: inline-flex; align-items: center; gap: 4px; color: #6e7e94; font-size: 12px; }
.marketplace-store-identity > div > span svg { width: 14px; height: 14px; color: var(--store-accent, #2563eb); }
.marketplace-store-card-body > p { display: -webkit-box; overflow: hidden; min-height: 44px; margin: 0; color: #687a92; font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.marketplace-store-types { display: flex; flex-wrap: wrap; gap: 6px; }
.marketplace-store-types span { padding: 4px 7px; border: 1px solid #d9e6f5; border-radius: 4px; background: #f5f9ff; color: #39618d; font-size: 11px; }
.marketplace-store-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 0; border-top: 1px solid #edf2f7; border-bottom: 1px solid #edf2f7; }
.marketplace-store-metrics span { min-width: 0; }
.marketplace-store-metrics strong { display: block; overflow: hidden; color: #243f62; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.marketplace-store-metrics small { display: block; margin-top: 4px; color: #8a98aa; font-size: 10px; line-height: 1.3; }
.marketplace-store-contact-flags { display: flex; flex-wrap: wrap; min-height: 22px; gap: 6px 10px; color: #5d708a; font-size: 11px; }
.marketplace-store-contact-flags span { display: inline-flex; align-items: center; gap: 4px; }
.marketplace-store-contact-flags svg { width: 14px; height: 14px; color: var(--store-accent, #2563eb); }
.marketplace-store-contact-flags .is-empty { color: #9aa8b8; }
.marketplace-store-card-body footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 2px; color: #6f7f94; font-size: 12px; }
.marketplace-store-card-body footer strong { color: #1f3c62; font-size: 16px; }
.marketplace-store-card-actions { display: inline-flex; align-items: center; gap: 10px; }
.marketplace-store-card-actions a, .marketplace-store-card-actions button { min-height: 32px; padding: 0 10px; border: 1px solid #cbdcf1; border-radius: 5px; background: #fff; color: #2160ad; cursor: pointer; font-size: 12px; }
.marketplace-store-card-actions a { display: inline-flex; align-items: center; }
.marketplace-store-card-actions a:hover, .marketplace-store-card-actions button:hover { border-color: #2563eb; background: #eff6ff; }

.marketplace-store-entry-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 56px; padding: 25px 28px; border: 1px solid #cfe0f5; border-radius: 10px; background: linear-gradient(100deg, #eff6ff, #f8fbff); }
.marketplace-store-entry-band h2 { margin: 8px 0 6px; color: #16355b; font-size: 20px; }
.marketplace-store-entry-band p { margin: 0; color: #5f7490; font-size: 13px; }
.marketplace-store-entry-band .button-light { flex: 0 0 auto; border: 1px solid #2563eb; background: #2563eb; color: #fff; }

@media (max-width: 1120px) {
  .marketplace-store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .marketplace-store-directory-hero { grid-template-columns: 1fr; }
  .marketplace-store-directory-hero dl { min-width: 0; }
  .marketplace-directory-heading { align-items: stretch; flex-direction: column; }
  .marketplace-store-search { width: 100%; }
  .marketplace-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .marketplace-store-directory-hero, .marketplace-store-directory, .marketplace-store-entry-band { width: min(100% - 24px, 520px); }
  .marketplace-store-directory-hero { padding-top: 26px; }
  .marketplace-store-directory-hero dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketplace-store-grid { grid-template-columns: 1fr; }
  .marketplace-store-entry-band { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .marketplace-store-card, .marketplace-store-banner img { transition: none; }
}
