.shop-wrap { padding-bottom: 108px; }
.hot-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 17px;
  text-align: left;
  cursor: pointer;
  color: #f6efe3;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(232,201,138,.35), transparent 55%),
    linear-gradient(125deg, #1c1916 0%, #3a2e24 42%, #8d7344 100%);
  box-shadow:
    0 12px 26px rgba(40, 28, 16, .18),
    inset 0 1px 0 rgba(255,255,255,.14);
  position: relative;
  overflow: hidden;
}
.hot-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.1) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: hot-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hot-sheen {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.hot-visual {
  flex: none;
  width: 47px;
  height: 47px;
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
  border: 1px solid rgba(240,213,154,.35);
}
.hot-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hot-copy { flex: 1; min-width: 0; }
.hot-kicker {
  display: block;
  font-size: 9px;
  letter-spacing: .24em;
  color: rgba(246,239,227,.72);
  font-weight: 650;
}
.hot-title {
  display: block;
  margin-top: 1px;
  font-family: var(--serif, Georgia, "Songti SC", serif);
  font-size: 1.12rem;
  letter-spacing: .14em;
  font-weight: 600;
  line-height: 1.2;
}
.hot-sub {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: rgba(246,239,227,.78);
  letter-spacing: .05em;
}
.hot-cta {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #f6e3b8, #e8c98a 45%, #c4a265);
  color: #1c1916;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  box-shadow: 0 5px 12px rgba(0,0,0,.16);
}
.hot-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}
.hot-sheet[hidden] { display: none !important; }
.hot-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(20,16,12,.42);
}
.hot-sheet-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(78vh, 640px);
  overflow: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #1c1916 0%, #2a221c 28%, #f6f1e8 28%);
  border-radius: 24px;
  padding: 18px 14px 22px;
  box-shadow: 0 28px 60px rgba(40,28,16,.28);
  box-sizing: border-box;
}
.hot-sheet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 16px;
  color: #f6efe3;
}
.hot-sheet-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(232, 201, 138, .88);
  font-weight: 650;
}
.hot-sheet-top h2 {
  margin: 0;
  font-family: var(--serif, Georgia, "Songti SC", serif);
  font-size: 1.35rem;
  letter-spacing: .14em;
  font-weight: 600;
  color: #fffaf3;
}
.hot-sheet-close {
  border: 0;
  background: rgba(255,255,255,.1);
  color: rgba(246,239,227,.9);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.hot-podium {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.hot-rank {
  display: grid;
  grid-template-columns: 40px 64px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: #1c1916;
  background: #fffdf9;
  border-radius: 16px;
  padding: 10px;
  border: 1px solid rgba(60, 48, 28, .08);
  box-shadow: 0 10px 22px rgba(40, 28, 16, .08);
  overflow: hidden;
}
.hot-rank .badge {
  width: 36px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.hot-rank .badge.medal svg {
  width: 36px;
  height: 40px;
  display: block;
}
.hot-rank .badge .m-ribbon { fill: #8d7344; }
.hot-rank .badge .m-disk { fill: #c4a265; }
.hot-rank .badge .m-ring { fill: none; stroke: rgba(255,248,235,.75); stroke-width: 1.6; }
.hot-rank .badge .m-num {
  fill: #2a1c12;
  font-family: Georgia, "Songti SC", serif;
  font-size: 13px;
  font-weight: 700;
}
.hot-rank.r1 .badge .m-disk { fill: #e0b24a; }
.hot-rank.r1 .badge .m-ribbon { fill: #b8862d; }
.hot-rank.r2 .badge .m-disk { fill: #c0c4cb; }
.hot-rank.r2 .badge .m-ribbon { fill: #8a9098; }
.hot-rank.r2 .badge .m-num { fill: #2c3036; }
.hot-rank.r3 .badge .m-disk { fill: #c8895a; }
.hot-rank.r3 .badge .m-ribbon { fill: #8f5a35; }
.hot-rank.r3 .badge .m-num { fill: #2a1a12; }
.hot-rank img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  background: #ece7de;
}
.hot-rank .meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.hot-rank .name {
  margin: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1c1916;
}
.hot-rank .likes {
  margin: 0;
  font-size: 12px;
  color: #6a5a48;
  font-weight: 600;
  letter-spacing: .02em;
}
.hot-rank .go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #f6efe3;
  background: linear-gradient(120deg, #3a2e24, #1c1916 55%, #5a4630);
  box-shadow: 0 4px 12px rgba(40, 28, 16, .16);
}
.hot-empty {
  margin: 18px 0 0;
  text-align: center;
  color: #6a5a48;
  font-size: 13px;
}
.shop-tip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(196, 162, 101, .45);
  background: rgba(255, 252, 247, .92);
  color: #8d7344;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(90, 55, 20, .06);
}
.shop-tip-btn .tip-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  border-bottom: 0;
  transform: translateY(1px);
}
.shop-tip-btn[aria-expanded="true"] {
  background: linear-gradient(120deg, #e8c98a, #c4a265 45%, #8d7344);
  color: #fff;
  border-color: transparent;
}
.shop-tip-btn[aria-expanded="true"] .tip-caret {
  border-top: 0;
  border-bottom: 5px solid currentColor;
  transform: translateY(-1px);
}
.shop-tip-pop {
  margin: 10px 16px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fffdf8;
  color: #3c3834;
  border: 1px solid #e4d3ae;
  font-size: .84rem;
  line-height: 1.55;
  box-shadow: 0 10px 24px rgba(90, 55, 20, .08);
}
.shop-tip-pop[hidden] { display: none !important; }
.shop-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 16px 0;
  padding: 4px;
  background: linear-gradient(180deg, #f8f1e6, #f0e2cf);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(120, 78, 36, .1);
}
.shop-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #3a2e24;
  border-radius: 999px;
  padding: 8px 2px;
  font: inherit;
  font-size: .78rem;
  font-weight: 500;
}
.shop-tabs button.on {
  background: #fff;
  font-weight: 650;
  box-shadow: 0 4px 12px rgba(90, 55, 20, .14);
}
.shop-tabs .n { color: #9a948c; font-weight: 650; }
.shop-tabs button.on .n { color: #1c1916; }
.shop-audience {
  display: flex;
  gap: 8px;
  margin: 12px 16px 0;
  padding: 2px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.shop-audience button {
  flex: none;
  border: 1px solid rgba(141, 115, 68, .22);
  background: linear-gradient(180deg, rgba(255,252,247,.96), rgba(248,241,230,.88));
  color: #6a5a48;
  border-radius: 999px;
  padding: 7px 16px;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.shop-audience button.on {
  color: #2c241c;
  border-color: transparent;
  background: linear-gradient(120deg, #f3e2c0, #e0c089 42%, #b89458);
  box-shadow: 0 6px 16px rgba(120, 78, 36, .16);
}
.shop-wrap .conflict {
  margin: 10px 16px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fffdf8;
  color: #3c3834;
  border: 1px solid #e4d3ae;
  font-size: .84rem;
  line-height: 1.55;
}
.shop-wrap .conflict[hidden] { display: none !important; }
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 0;
}
html.tryon-fhd .shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-left: 20px;
  padding-right: 20px;
}
html.tryon-fhd .shop-card .name { font-size: 15px; }
html.tryon-fhd .hot-entry { width: calc(100% - 40px); margin-left: 20px; margin-right: 20px; }
/* 平板竖屏：人气入口 / 分类 Tab / 底栏加宽加高；人气榜弹层居中 */
html.tryon-pad .shop-wrap { padding-bottom: 128px; }
html.tryon-pad .hot-entry {
  width: calc(100% - 24px);
  margin: 16px 12px 0;
  gap: 16px;
  padding: 18px 18px;
  border-radius: 22px;
}
html.tryon-pad .hot-visual {
  width: 94px;
  height: 94px;
  border-radius: 20px;
}
html.tryon-pad .hot-kicker { font-size: 12px; letter-spacing: .28em; }
html.tryon-pad .hot-title { font-size: 2rem; margin-top: 4px; letter-spacing: .16em; }
html.tryon-pad .hot-sub { font-size: 14px; margin-top: 4px; }
html.tryon-pad .hot-cta { padding: 10px 16px; font-size: 14px; }
html.tryon-pad .shop-tabs {
  gap: 8px;
  margin: 18px 12px 0;
  padding: 6px;
  border-radius: 999px;
}
html.tryon-pad .shop-tabs button {
  padding: 16px 6px;
  font-size: 1.15rem;
}
html.tryon-pad .shop-audience { margin: 16px 12px 0; gap: 10px; }
html.tryon-pad .shop-audience button {
  padding: 12px 22px;
  font-size: 1rem;
}
html.tryon-pad .shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 12px 0;
}
html.tryon-pad .shop-card .name { font-size: 1.05rem; }
html.tryon-pad .shop-bar {
  max-width: none;
  width: 100%;
  left: 0;
  right: 0;
  margin: 0;
  gap: 14px;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
}
html.tryon-pad .cart-meta strong { font-size: 1.05rem; }
html.tryon-pad .cart-meta span { font-size: .9rem; }
html.tryon-pad .shop-bar .go {
  min-width: 148px;
  min-height: 56px;
  padding: 16px 22px;
  font-size: 1.08rem;
}
html.tryon-pad .hot-sheet {
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
html.tryon-pad .hot-sheet-panel {
  width: min(720px, 100%);
  max-height: min(78vh, 760px);
  border-radius: 24px;
  padding: 22px 18px 24px;
  box-shadow: 0 28px 60px rgba(40, 28, 16, .28);
}
.shop-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 10px 24px rgba(60,48,28,.06);
}
.shop-card.on { outline: 2px solid #c4a265; outline-offset: -2px; }
.shop-card.focus {
  outline: 2px solid #8d7344;
  outline-offset: -2px;
  box-shadow: 0 14px 28px rgba(120, 78, 36, .18);
  animation: shop-focus-pulse 1.2s ease 2;
}
@keyframes shop-focus-pulse {
  0%, 100% { transform: none; }
  50% { transform: translateY(-2px); }
}
.shop-card .pic {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #ece7de;
}
.shop-card .meta { padding: 10px 10px 12px; }
.shop-card .name {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  min-height: 2.7em;
  overflow: hidden;
}
.shop-card .price {
  margin: 6px 0 10px;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 16px;
}
.shop-card .add {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 9px 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  background: linear-gradient(120deg, #e8c98a, #c4a265 45%, #8d7344);
  color: #fff;
}
.shop-card.on .add {
  background: #fff;
  color: #8d7344;
  border: 1px solid #e4d3ae;
}
.shop-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  border: 0;
  background: linear-gradient(120deg, #e8c98a, #c4a265 45%, #8d7344);
  color: #fff !important;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
  box-shadow: 0 4px 12px rgba(90, 55, 20, .16);
  white-space: nowrap;
}
.shop-link::after {
  content: "→";
  margin-left: 4px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
}
.item-top .top-actions {
  visibility: visible;
  min-width: auto;
  flex-shrink: 0;
  pointer-events: auto;
  gap: 6px;
  z-index: 2;
}
.shop-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,252,247,.96);
  box-shadow: 0 -10px 30px rgba(40,32,20,.08);
  max-width: 520px;
  margin: 0 auto;
}
.cart-meta { flex: 1; min-width: 0; }
.cart-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.cart-meta span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8a847c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-bar .go {
  flex: none;
  width: auto;
  min-width: 108px;
  margin: 0;
  padding: 12px 16px;
}
.shop-bar .go:disabled { opacity: .45; }
.page-pad { height: 24px; }

.shop-jump[hidden] { display: none !important; }
.shop-jump {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-jump button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(141, 115, 68, .28);
  border-radius: 999px;
  background: rgba(255, 252, 247, .94);
  color: #8d7344;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(60, 48, 28, .14);
  backdrop-filter: blur(6px);
}
.shop-jump button:active {
  transform: scale(.96);
  background: #fff8ef;
}
@media (max-width: 380px) {
  .shop-jump button { width: 36px; height: 36px; font-size: 15px; }
}
