.stage {
  position: relative;
  padding: 0 0 24px;
}
/*
 * 无轮播：导航 .lib-nav-wrap 有 margin-bottom:-30px，会把下方内容上拉。
 * 补 30px 抵消后再加栏目间距。有顶部背景时叠在 --mast-chrome-h 上，不能拿掉这段间距。
 */
.home-no-hero .page-mast {
  padding-top: calc(var(--mast-chrome-h, 0px) + 30px + 28px);
}

.home-hero {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding: 30px 0 0;
  background: var(--grey-mid);
  overflow: hidden;
  --hero-glow: #525252;
  --hero-idle: 0.6;
  --hero-active: 0.92;
}
.home-hero-wrap { min-width: 0; }
.home-hero-stage {
  position: relative;
  padding: 42px 0;
}
.home-hero-track {
  display: flex;
  width: calc(100% + 36px);
  margin: 0 -18px;
}
.home-hero-track[data-count="1"] .home-hero-card { flex: 0 0 100%; }
.home-hero-track[data-count="2"] .home-hero-card { flex: 0 0 50%; }
.home-hero-track[data-count="3"] .home-hero-card { flex: 0 0 33.3333%; }
.home-hero-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0 18px;
  box-sizing: border-box;
}
.home-hero-frame {
  position: relative;
  display: block;
}
.home-hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 124%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hero-glow);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.62);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.home-hero-card.is-active .home-hero-glow {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(0.96);
}
.home-hero-card .cover {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--bdrs-lg);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--grey-mid);
}
.home-hero-card .cover-art,
.home-hero-card .cover-letter {
  opacity: var(--hero-idle);
  transition: opacity 0.45s ease;
}
.home-hero-card.is-active .cover-art,
.home-hero-card.is-active .cover-letter {
  opacity: var(--hero-active);
}
.has-mast-veil .home-hero {
  background: transparent;
  pointer-events: none;
}
.has-mast-veil .home-hero-card {
  pointer-events: auto;
}
.home-hero-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: rgb(0 0 0 / 48%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.home-hero-card.is-active .cover::after { opacity: 0.18; }

.home-hot {
  position: relative;
  z-index: 1;
  margin-bottom: 45px;
}
.home-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}
.home-section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}
.home-section-ico { flex: none; opacity: 0.5; }
.home-section-ico.is-muted { opacity: 0.35; }
.home-section-all {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: var(--bdrs-sm);
  font-size: 12px;
  font-weight: 400;
  color: #fff;
}
.home-section-all:hover { border-color: rgb(255 255 255 / 55%); }
.home-row-band {
  --row-band: var(--grey);
  border-radius: var(--bdrs-lg);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 6%) 0%, transparent 42%),
    var(--row-band);
  margin: 0 -25px;
  padding: 20px 25px;
}
.home-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}
.home-row-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  flex: none;
  width: 265px;
  min-width: 0;
  margin-right: -80px;
  padding-right: 20px;
  color: #fff;
  text-align: left;
}
.home-row-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 6%) 0%, transparent 42%),
    var(--row-band);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent);
  pointer-events: none;
  z-index: -1;
}
.home-row-intro .home-section-ico { margin-bottom: 8px; }
.home-row-kicker {
  display: block;
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.5;
}
.home-row-intro h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
}
.home-row-intro p {
  margin: auto 0 0;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.5;
}
.home-row-scroll-wrap {
  --hero-fade: 96px;
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    rgb(0 0 0 / 18%) 28px,
    rgb(0 0 0 / 48%) 52px,
    rgb(0 0 0 / 82%) 76px,
    #000 var(--hero-fade),
    #000 calc(100% - var(--hero-fade)),
    rgb(0 0 0 / 82%) calc(100% - 76px),
    rgb(0 0 0 / 48%) calc(100% - 52px),
    rgb(0 0 0 / 18%) calc(100% - 28px),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    rgb(0 0 0 / 18%) 28px,
    rgb(0 0 0 / 48%) 52px,
    rgb(0 0 0 / 82%) 76px,
    #000 var(--hero-fade),
    #000 calc(100% - var(--hero-fade)),
    rgb(0 0 0 / 82%) calc(100% - 76px),
    rgb(0 0 0 / 48%) calc(100% - 52px),
    rgb(0 0 0 / 18%) calc(100% - 28px),
    transparent
  );
}
.home-row-scroll-wrap.is-marquee .home-hot-track {
  display: flex;
  width: max-content;
  gap: 17px;
  overflow: visible;
  animation: home-hot-scroll 96s linear infinite;
  will-change: transform;
}
@keyframes home-hot-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.home-row-card {
  flex: none;
  width: 280px;
  min-width: 0;
  border-radius: var(--bdrs-md);
  overflow: hidden;
  background: var(--card);
  color: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.home-row-card:hover {
  position: relative;
  z-index: 8;
  transform: scale(1.06);
  box-shadow: 0 18px 36px rgb(0 0 0 / 45%);
}
.home-row-card .cover {
  margin: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
}
.home-row-card .cover-art::after { content: none; }
.home-row-card-body {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 8px;
}
.home-row-card-body h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-row-card-body p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: rgb(255 255 255 / 55%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-row-card > .tags {
  height: auto;
  padding: 0 14px 14px;
  margin-top: 0;
}

.home-grid-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
  overflow: visible;
}
#heji-pack.liquid {
  position: relative;
  z-index: 1;
}

.home-focus {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  padding: 18px 22px 22px;
  background: var(--grey);
  border-radius: var(--bdrs-lg);
}
.home-focus-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}
.home-focus-ico {
  flex: none;
  color: var(--brand);
}
.home-focus-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.home-focus-line {
  flex: 1;
  height: 2px;
  background: var(--brand);
}
.home-focus-body {
  display: grid;
  grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
  gap: 22px 28px;
  align-items: center;
}
.home-focus-cover,
.home-focus-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.home-focus-cover {
  border-radius: var(--bdrs-md);
  overflow: hidden;
}
.home-focus-cover .cover {
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--bdrs-md);
}
.home-focus-cover .cover-art,
.home-focus-shots .cover-art {
  transition: opacity 0.2s ease;
}
.home-focus-cover:hover .cover-art,
.home-focus-shots a:hover .cover-art { opacity: 0.86; }
.home-focus-right h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}
.home-focus-right h3 a:hover { color: var(--brand); }
.home-focus-right p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgb(255 255 255 / 62%);
}
.home-focus-right .tags {
  height: auto;
  overflow: visible;
  margin-top: 14px;
}
.home-focus-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.home-focus-shots a {
  display: block;
  width: 100%;
  border-radius: var(--bdrs-sm);
  overflow: hidden;
}
.home-focus-shots .cover {
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--bdrs-sm);
}

@media (max-width: 999px) {
  .home-hero-stage {
    padding: 48px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .home-hero-stage::-webkit-scrollbar { display: none; }
  .home-hero-track {
    flex-direction: row;
    width: 100%;
    margin: 0;
    overflow: visible;
  }
  .home-hero-card {
    flex: 0 0 100% !important;
    width: 100%;
    padding: 0 28px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .home-row {
    flex-direction: column;
  }
  .home-row-intro {
    width: auto;
    margin-right: 0;
    padding-right: 0;
  }
  .home-row-intro::before { content: none; }
  .home-row-band {
    margin: 0;
    padding: 16px;
  }
  .home-focus-body { grid-template-columns: 1fr; }
  .home-focus-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 749px) {
  .stage { padding-bottom: 16px; }
  .home-no-hero .page-mast { padding-top: calc(var(--mast-chrome-h, 0px) + 30px + 20px); }
  .home-row-card { width: 240px; }
}
