/* ============================================================
 * home-album.css — 点单大厅「俱乐部图册」：分类药丸 + 横向海报轨道
 * 原来的两列海报网格改为可横向滑动的展示带，点单页只负责好看，
 * 完整图册（价格表 / 充值档位）仍在「俱乐部图册」页里。
 * ============================================================ */

.gx-guest .home-library {
  margin-top: 18px;
}

/* ---------- 标题行 ---------- */
.home-album-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.home-album-eyebrow {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--g-ink-3, #9a9384);
  text-transform: uppercase;
}
.home-album-head h2 {
  margin: 3px 0 0;
  font-family: "Baskervville", "Songti SC", "SimSun", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--g-ink, #24241e);
}
.home-album-all {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--g-line, #e2ddd2);
  background: #fff;
  color: var(--g-brand, #ea5a32);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.home-album-all:hover {
  background: var(--g-wash, #fdf1ea);
  border-color: var(--g-brand, #ea5a32);
}
.home-album-all span {
  font-size: 14px;
  line-height: 1;
}

/* ---------- 分类药丸 ---------- */
.home-album-cats {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.home-album-cats::-webkit-scrollbar {
  display: none;
}
.home-album-cats button {
  flex: none;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--g-line, #e2ddd2);
  background: #fff;
  color: var(--g-ink-2, #57534a);
  font-size: 12.5px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.home-album-cats button[aria-pressed="true"] {
  border-color: var(--g-ink, #24241e);
  background: var(--g-ink, #24241e);
  color: #fffaf4;
  font-weight: 600;
}

/* ---------- 海报轨道 ---------- */
.home-album-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.home-album-rail::-webkit-scrollbar {
  display: none;
}

.home-poster {
  flex: none;
  width: 148px;
  scroll-snap-align: start;
}
.home-poster button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--g-bg, #f3efe6);
  box-shadow: 0 10px 22px rgba(60, 40, 20, 0.14);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.home-poster button:active {
  transform: scale(0.98);
}
.home-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 46%,
    rgba(18, 12, 8, 0.16) 66%,
    rgba(18, 12, 8, 0.74)
  );
}
.home-poster-name {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- 空态 ---------- */
.home-album-empty {
  margin: 0;
  padding: 26px 16px;
  border: 1px dashed var(--g-line, #e2ddd2);
  border-radius: 16px;
  color: var(--g-ink-3, #9a9384);
  font-size: 12.5px;
  text-align: center;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .home-poster button,
  .home-album-all,
  .home-album-cats button {
    transition: none;
  }
}
