/* ==========================================================================
   月面工坊：标签页、购买数量、滚动列表与商品卡片
   ========================================================================== */

.shop{
  height:var(--h);min-height:680px;display:flex;flex-direction:column;overflow:hidden;
  background:linear-gradient(165deg,rgba(13,32,34,.95),rgba(5,16,19,.97));
}
.shop-head{padding:23px 22px 15px;border-bottom:1px solid var(--line);flex:none}
.shop-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.shop-heading h2{font-family:var(--serif);font-size:28px;font-weight:500;letter-spacing:.08em;line-height:1;margin:0;color:#f1f0df}
.shop-heading .eyebrow{margin:0 0 7px}
.tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:11px;background:rgba(0,0,0,.17)}
.tab{
  position:relative;flex:1;padding:8px 6px;border:0;border-radius:8px;background:transparent;
  color:var(--faint);font-size:13px;letter-spacing:.12em;cursor:pointer;transition:.18s ease;
}
.tab:hover{color:var(--ink)}
.tab.active{color:var(--sage2);background:rgba(184,220,196,.1);box-shadow:inset 0 0 0 1px rgba(184,220,196,.09)}
.tab-dot{position:absolute;top:6px;right:8px;width:4px;height:4px;border-radius:50%;background:var(--gold);box-shadow:0 0 8px var(--gold)}
.panel-view{flex:1;min-height:0;display:flex;flex-direction:column}
.tab-panel{display:flex;flex:1;min-height:0;flex-direction:column}
.panel-bar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 22px;color:var(--faint);font-size:10.5px;letter-spacing:.04em;line-height:1.4;flex:none;
}
.buy-modes{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:rgba(0,0,0,.15);flex:none}
.buy-modes button{
  padding:5px 8px;border:0;border-left:1px solid var(--line);background:transparent;
  color:var(--faint);font-size:11px;cursor:pointer;transition:.15s ease;
}
.buy-modes button:first-child{border-left:0}
.buy-modes button:hover{color:var(--ink)}
.buy-modes button.active{color:var(--sage2);background:rgba(184,220,196,.1)}
.scroll-list{
  flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;
  padding:0 16px 16px 22px;display:flex;flex-direction:column;gap:7px;
  scrollbar-width:thin;scrollbar-color:rgba(184,220,196,.15) transparent;
}
.scroll-list::-webkit-scrollbar{width:5px}
.scroll-list::-webkit-scrollbar-thumb{background:rgba(184,220,196,.15);border-radius:99px}
.scroll-list::-webkit-scrollbar-track{background:transparent}

/* ---------- 商品卡片 ---------- */
.shop-card{
  position:relative;display:grid;grid-template-columns:39px minmax(0,1fr) 78px;gap:10px;align-items:center;
  width:100%;padding:10px 11px;border:1px solid rgba(203,225,207,.095);border-radius:12px;
  background:linear-gradient(112deg,rgba(255,255,255,.034),rgba(255,255,255,.012));
  color:var(--ink);text-align:left;cursor:pointer;overflow:hidden;font-family:var(--sans);
  transition:border-color .18s,background .18s,transform .18s;
}
.shop-card:hover{
  border-color:rgba(184,220,196,.22);
  background:linear-gradient(112deg,rgba(184,220,196,.07),rgba(255,255,255,.016));
  transform:translateX(2px);
}
.shop-card.can-buy{border-color:rgba(184,220,196,.22)}
.shop-card.can-buy::after{
  content:"";position:absolute;left:0;top:18%;width:2px;height:64%;border-radius:99px;
  background:var(--sage);box-shadow:0 0 10px rgba(184,220,196,.55);opacity:.85;
}
.shop-card.unaffordable{opacity:.76}
.shop-card.unaffordable .price strong{color:var(--muted)}
.shop-card.maxed{opacity:.56}
.shop-glyph{
  width:39px;height:39px;display:grid;place-items:center;border-radius:10px;
  border:1px solid rgba(184,220,196,.12);background:rgba(184,220,196,.055);
  color:var(--sage);font-family:var(--serif);font-size:20px;line-height:1;
}
.shop-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.shop-name{
  display:flex;align-items:center;gap:6px;font-family:var(--serif);font-size:16.5px;
  letter-spacing:.05em;color:#eeefdf;white-space:nowrap;
}
.owned-tag{
  font-family:var(--sans);font-size:10px;color:var(--sage);
  background:rgba(184,220,196,.08);border:1px solid rgba(184,220,196,.1);
  border-radius:999px;padding:1px 5px;letter-spacing:.03em;
}
.owned-tag.is-zero{color:var(--faint);background:transparent;border-color:transparent;padding-left:0}
.level-tag{font-family:var(--sans);font-size:10px;color:var(--faint);letter-spacing:.04em;font-weight:400}
.shop-desc{font-size:11.5px;line-height:1.35;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shop-meta{display:flex;align-items:center;gap:6px;font-size:10.5px;line-height:1.2;color:var(--muted);white-space:nowrap;overflow:hidden}
.shop-meta [data-rate],.shop-meta [data-effect]{color:var(--sage);opacity:.82}
.meta-dot{width:2px;height:2px;border-radius:50%;background:var(--faint);opacity:.7;flex:none}
.pips{display:inline-flex;gap:2px;margin-left:auto;flex:none}
.pips i{display:block;width:9px;height:2px;border-radius:99px;background:rgba(255,255,255,.12)}
.pips i.on{background:var(--sage);box-shadow:0 0 6px rgba(184,220,196,.4)}
.price{
  display:flex;flex-direction:column;align-items:flex-end;justify-content:center;
  min-width:0;font-variant-numeric:tabular-nums;
}
.price .qty{
  font-size:9px;color:var(--faint);height:12px;letter-spacing:.06em;white-space:nowrap;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;
}
.price strong{font-family:var(--serif);font-size:18px;font-weight:500;color:var(--sage2);white-space:nowrap;line-height:1.2}
.price em{font-style:normal;font-size:9px;color:var(--faint);letter-spacing:.12em}
.shop-card.bought{animation:bought .42s ease}
.shop-card.deny{animation:deny .32s ease}
