.hmm-market {
  --hmm-text: #17232e;
  --hmm-muted: #4b5d6c;
  --hmm-line: #e0e5e9;
  --hmm-accent: #8a2426;
  --hmm-highlight: #efa600;
  --hmm-hover: #fff8e9;
  --hmm-active: #fff0ca;
  --hmm-max: 500px;
  margin: 16px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--hmm-text);
  -webkit-font-smoothing: antialiased;
}
.hmm-market *,
.hmm-market *::before,
.hmm-market *::after { box-sizing: border-box; }
.hmm-market-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 52px);
  align-items: start;
}
.hmm-market-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
  max-height: var(--hmm-max);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--hmm-accent) transparent;
}
.hmm-market-choices::-webkit-scrollbar { width: 6px; }
.hmm-market-choices::-webkit-scrollbar-track { background: transparent; }
.hmm-market-choices::-webkit-scrollbar-thumb { background: var(--hmm-accent); border-radius: 6px; opacity: .6; }
.hmm-market-choices section + section {
  padding-inline-start: 24px;
  border-inline-start: 1px solid #dce1e4;
}
.hmm-market-choices h3,
.hmm-market-feature h3 {
  margin: 0 0 7px;
  color: var(--hmm-text);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.3;
}
.hmm-market p {
  margin: 0 0 15px;
  color: var(--hmm-muted);
  font-size: 15px;
  line-height: 1.5;
}
.hmm-market ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hmm-line);
}
.hmm-market :is(.hmm-market-link, .hmm-market-all) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  padding: 11px 8px;
  text-align: left;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
  text-decoration: none;
  transition: background .16s, box-shadow .16s, transform .18s;
}
.hmm-market-link {
  border: 0;
  border-bottom: 1px solid var(--hmm-line);
  background: #fff;
  color: var(--hmm-text);
}
.hmm-market-all { color: var(--hmm-accent); margin-top: 5px; }
.hmm-market-link:hover,
.hmm-market-link:focus-visible,
.hmm-market-all:hover,
.hmm-market-all:focus-visible {
  background: var(--hmm-hover);
  transform: translateX(5px);
}
.hmm-market-link.is-previewed {
  background: var(--hmm-active);
  box-shadow: inset 3px 0 var(--hmm-highlight);
}
.hmm-market-link.is-previewed:hover,
.hmm-market-link.is-previewed:focus-visible { transform: translateX(5px); }
.hmm-market :is(a, button):focus-visible { outline: 2px solid var(--hmm-accent); outline-offset: 1px; }
.hmm-market-feature { margin: 0; min-width: 0; }
.hmm-market-feature[hidden] { display: none; }
.hmm-market-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 4px;
}
.hmm-market-feature figcaption { padding-top: 14px; }
.hmm-market-choices section > p { min-height: 3em; }

@media (max-width: 1100px) {
  .hmm-market-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hmm-market-choices { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hmm-market-choices section + section { padding-inline-start: 0; border-inline-start: 0; }
}

/* 放在 Blocksy / 其他主题的下拉菜单中时，压缩间距，避免撑开整个菜单 */
.sub-menu .hmm-market,
.mega-menu .hmm-market,
[class*="mega-menu"] .hmm-market { margin: 0; }
.sub-menu .hmm-market-inner,
.mega-menu .hmm-market-inner { gap: clamp(18px, 2.5vw, 32px); }
.sub-menu .hmm-market-choices,
.mega-menu .hmm-market-choices { gap: 18px; }
.sub-menu .hmm-market-choices section + section,
.mega-menu .hmm-market-choices section + section { padding-inline-start: 18px; }
.sub-menu .hmm-market p,
.mega-menu .hmm-market p { font-size: 14px; margin-bottom: 12px; }
.sub-menu .hmm-market :is(.hmm-market-link, .hmm-market-all),
.mega-menu .hmm-market :is(.hmm-market-link, .hmm-market-all) { min-height: 40px; padding: 9px 8px; font-size: 14px; }
.sub-menu .hmm-market-feature img,
.mega-menu .hmm-market-feature img { max-height: 220px; }
