/* UP主 落地页 */
/* 覆盖全局 main{padding:12px 16px!important} —— UP 页不要左右内边距 */
.up-main.up-main {
  padding: 8px 0 40px !important;
}

.up-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 0 8px;
}

/* 区块标题：中文标题 + 英文水印（自带左右内边距） */
.up-section__head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0 16px;
}

.up-section__head--center {
  justify-content: center;
}

.up-section__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f1f1f;
}

.up-section__en {
  position: relative;
  z-index: 1;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
  color: rgba(31, 31, 31, 0.12);
  text-transform: uppercase;
}

/* 大水印图（CONTRACTED ACTRESS） */
.up-section--artist {
  position: relative;
}
/* 大水印文字 CONTRACTED ACTRESS（描边，压在卡片后面） */
.up-artist__watermark {
  position: absolute;
  top: 56px;
  left: 16px;
  z-index: 0;
  font-family: "MI Lan Pro VF", "Arial Black", Arial, sans-serif;
  font-weight: 700;
  font-size: 100px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 0.7px rgba(0, 0, 0, 0.32);
  white-space: nowrap;
  pointer-events: none;
  max-width: calc(100% - 16px);
  overflow: hidden;
}
/* 卡片/标题在水印之上 */
.up-section--artist .up-section__head {
  position: relative;
  z-index: 2;
}
.up-artist-row {
  position: relative;
  z-index: 1;
}

/* ---------- 优质艺人 ---------- */
.up-artist-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  padding-bottom: 6px;
}
/* PC：第 2、4 张下移 72px，上下错开 */
.up-artist-row .up-artist-card:nth-child(even) {
  margin-top: 72px;
}

.up-artist-card {
  flex: 0 0 auto;
  width: 185px;
  box-sizing: border-box;
  text-decoration: none;
}
/* 卡片视觉框（背景/内边距）放内层，H5 的缩放也作用在它上，
   让 snap 目标 .up-artist-card 本身不变形 */
.up-artist-card__frame {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: rgba(253, 249, 248, 1);
  padding: 7.27px;
  border-radius: 8.72px;
}

.up-artist-card__cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  box-sizing: border-box;
  border: 7.27px solid rgba(242, 237, 234, 1);
  border-radius: 5.43px;
  overflow: hidden;
  background: #ece6e3;
}

.up-artist-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.up-artist-card__name {
  display: block;
  margin-top: 14.53px;
  max-width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  text-align: left;
}
.up-artist-card__works {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #9a9a9a;
  text-align: left;
}

/* ---------- 热门UP主（coverflow） ---------- */
.up-section--hot {
  padding-bottom: 12px;
}
.up-hot__carousel {
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
}
.up-hot__swiper {
  padding: 8px 0 12px;
  overflow: visible;
}
.up-hot__swiper .up-hot-slide {
  position: relative;
  width: 964px;
  max-width: 90vw;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.85;
  transition: opacity 0.35s ease;
}
.up-hot__swiper .up-hot-slide.swiper-slide-active {
  opacity: 1;
}
.up-hot-slide a {
  display: block;
}
.up-hot-slide img {
  width: 100%;
  aspect-ratio: 964 / 500;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: #ece6e3;
}
/* TOP1/2/3 描边渐变字 */
.up-hot-slide__top {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  font-family: Arial, "Arial Black", sans-serif;
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffd25a 0%, #ff8a3d 55%, #ff4b8d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
}
.up-hot__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.up-hot__btn svg {
  width: 20px;
  height: 20px;
}
.up-hot__btn--prev {
  left: -4px;
}
.up-hot__btn--next {
  right: -4px;
}
.up-hot__pagination {
  margin-top: 12px;
  text-align: center;
  --swiper-pagination-color: rgba(255, 75, 141, 1);
  --swiper-pagination-bullet-inactive-color: rgba(0, 0, 0, 0.2);
  --swiper-pagination-bullet-inactive-opacity: 1;
}
.up-hot__pagination .swiper-pagination-bullet-active {
  width: 18px !important;
  border-radius: 4px;
}

/* ---------- 热门UP主：PC 用原 Swiper coverflow，H5 用 stack 堆叠轮播（区分两端）---------- */
/* H5：隐藏原 Swiper、显示 stack */
.up-hot--mobile {
  display: none;
}
.up-hot-stack {
  display: block;
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
}
/* PC：保持原 Swiper coverflow，不显示 stack */
@media screen and (min-width: 825px) {
  .up-hot--mobile {
    display: block;
  }
  .up-hot-stack {
    display: none;
  }
}
.up-hot-stack__viewport {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.up-hot-stack__slide {
  position: absolute;
  width: 964px;
  max-width: 72%;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: scale(0.9);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.45s ease, filter 0.45s ease;
}
.up-hot-stack__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: #ece6e3;
}
.up-hot-stack__slide.is-center {
  transform: translateX(0) scale(1);
  opacity: 1;
  filter: none;
  z-index: 3;
  pointer-events: auto;
}
.up-hot-stack__slide.is-left {
  transform: translateX(-160px) scale(0.9);
  opacity: 0.6;
  filter: brightness(0.7);
  z-index: 2;
}
.up-hot-stack__slide.is-right {
  transform: translateX(160px) scale(0.9);
  opacity: 0.6;
  filter: brightness(0.7);
  z-index: 2;
}
.up-hot-stack__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.up-hot-stack__btn svg {
  width: 20px;
  height: 20px;
}
.up-hot-stack__btn--prev {
  left: -4px;
}
.up-hot-stack__btn--next {
  right: -4px;
}
.up-hot-stack__dots {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.up-hot-stack__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.up-hot-stack__dot.is-active {
  width: 18px;
  border-radius: 4px;
  background: rgba(255, 75, 141, 1);
}

@media screen and (max-width: 824px) {
  /* H5：去掉左右箭头，靠滑动切换 */
  .up-hot-stack__btn {
    display: none;
  }
  /* H5：糖心 stack —— 居中大卡 + 底部露出下一张（垂直堆叠，上下滑动切换）*/
  .up-hot-stack__viewport {
    height: 58vw;
    min-height: 200px;
    touch-action: none;
  }
  .up-hot-stack__slide {
    left: 50%;
    top: 0;
    width: 90%;
    max-width: 90%;
    height: 46vw;
    min-height: 160px;
    transform: translate(-50%, 0) scale(1);
  }
  .up-hot-stack__slide.is-center {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
    filter: none;
    z-index: 3;
  }
  /* 下一张：往下偏，底部露出（对应糖心 pos-0 的 translate(-50%,-50px)）*/
  .up-hot-stack__slide.is-right {
    transform: translate(-50%, 8vw) scale(0.95);
    opacity: 1;
    filter: brightness(0.8);
    z-index: 2;
  }
  /* 上一张：藏在中心卡后面 */
  .up-hot-stack__slide.is-left {
    transform: translate(-50%, 0) scale(0.9);
    opacity: 0;
    z-index: 1;
  }
}

/* ---------- 百万UP主 ---------- */
.up-section--million {
  text-align: center;
  padding-bottom: 36px;
}

/* 百万UP主标题：竖排居中 + 标题两侧 7px 装饰圆点 */
.up-million__head {
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.up-million__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* 圆点组 ↔ 中间文案 */
}
.up-million__dots {
  display: flex;
  align-items: center;
  gap: 10px; /* 圆点之间 */
}
.up-million__dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4b8b;
}
/* 前三：由外到内渐实；后三倒着（镜像）*/
.up-million__dots i:nth-child(1) { opacity: 0.3; }
.up-million__dots i:nth-child(2) { opacity: 0.6; }
.up-million__dots i:nth-child(3) { opacity: 1; }
.up-million__dots--rev i:nth-child(1) { opacity: 1; }
.up-million__dots--rev i:nth-child(2) { opacity: 0.6; }
.up-million__dots--rev i:nth-child(3) { opacity: 0.3; }

.up-million__count {
  margin: 6px 0 24px;
  font-size: 44px;
  font-weight: 800;
  color: #ff2e86;
  line-height: 1;
}
.up-million__count span {
  font-size: 28px;
  vertical-align: super;
}

.up-million__avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.up-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #ece6e3;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.up-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PC：百万UP主 头像在地图上高低错落散布 */
@media screen and (min-width: 825px) {
  .up-million__avatars {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    max-width: 1120px;
    margin: 8px auto 0;
    padding: 0 8px 30px;
    background: url(/static/images/new/up-world-map.png) center top / contain
      no-repeat;
    min-height: 300px;
  }
  .up-million__avatars .up-avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
  }
  /* 抛物线圆弧分布：靠中间高度变化小、靠两边变化大 */
  .up-million__avatars .up-avatar:nth-child(1) {
    margin-top: 22px;
    width: 72px;
    height: 72px;
  }
  .up-million__avatars .up-avatar:nth-child(2) {
    margin-top: 70px;
    width: 78px;
    height: 78px;
  }
  .up-million__avatars .up-avatar:nth-child(3) {
    margin-top: 108px;
    width: 84px;
    height: 84px;
  }
  .up-million__avatars .up-avatar:nth-child(4) {
    margin-top: 134px;
    width: 90px;
    height: 90px;
  }
  .up-million__avatars .up-avatar:nth-child(5) {
    margin-top: 150px;
    width: 126px;
    height: 126px;
  }
  .up-million__avatars .up-avatar:nth-child(6) {
    margin-top: 142px;
    width: 90px;
    height: 90px;
  }
  .up-million__avatars .up-avatar:nth-child(7) {
    margin-top: 120px;
    width: 84px;
    height: 84px;
  }
  .up-million__avatars .up-avatar:nth-child(8) {
    margin-top: 88px;
    width: 80px;
    height: 80px;
  }
  .up-million__avatars .up-avatar:nth-child(9) {
    margin-top: 52px;
    width: 76px;
    height: 76px;
  }
  .up-million__avatars .up-avatar:nth-child(10) {
    margin-top: 22px;
    width: 72px;
    height: 72px;
  }
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 824px) {
  /* 落地页左上显示 logo（覆盖框架非首页默认的返回按钮） */
  .up-body #mobileNavBack {
    display: none !important;
  }
  .up-body #mobileNavLogo {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .up-section {
    padding: 22px 0 6px;
  }

  .up-section__title {
    font-size: 18px;
  }
  .up-artist__watermark {
    font-size: 40px;
    top: 42px;
    -webkit-text-stroke-width: 0.5px;
  }

  /* H5：居中大卡 + 左右小卡露边 的滑动轮播 */
  .up-artist-row {
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 18vw 8px;
  }
  .up-artist-row::-webkit-scrollbar {
    display: none;
  }
  .up-artist-row .up-artist-card {
    width: 64vw;
    margin: 0 -8px;
    scroll-snap-align: center;
  }
  .up-artist-row .up-artist-card:nth-child(even) {
    margin-top: 0;
  }
  /* 缩放放内层 frame，snap 目标(.up-artist-card)保持不变形，
     避免老内核(荣耀/华为自带浏览器)对变形的 snap 目标反复重算快照导致抖闪 */
  .up-artist-row .up-artist-card__frame {
    transform: scale(0.72);
    transform-origin: center center;
    transition: transform 0.28s ease;
  }
  /* 居中那张正常大小，左右缩小 */
  .up-artist-row .up-artist-card.is-active .up-artist-card__frame {
    transform: scale(1);
  }
  .up-artist-card__cover {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .up-artist-card__name {
    max-width: 100%;
    font-size: 16px;
  }
  .up-artist-card__works {
    font-size: 13px;
  }

  .up-hot__swiper .up-hot-slide {
    width: 78vw;
  }
  .up-hot-slide__top {
    font-size: 26px;
  }
  .up-hot__btn {
    width: 32px;
    height: 32px;
  }

  .up-million__count {
    font-size: 36px;
  }

  /* H5：百万UP主 头像在地图上 2D 散布（中间大、四周围绕） */
  .up-million__avatars {
    position: relative;
    display: block;
    height: 360px;
    max-width: 360px;
    margin: 14px auto 0;
    gap: 0;
    background: url(/static/images/new/up-world-map.png) center 58% / 100% auto
      no-repeat;
  }
  .up-million__avatars .up-avatar {
    position: absolute;
    width: 62px;
    height: 62px;
    margin: 0;
  }
  .up-million__avatars .up-avatar:nth-child(1) {
    left: 50%;
    top: 34%;
    width: 100px;
    height: 100px;
    transform: translateX(-50%);
    z-index: 2;
  }
  .up-million__avatars .up-avatar:nth-child(2) {
    left: 26%;
    top: 6%;
  }
  .up-million__avatars .up-avatar:nth-child(3) {
    left: 56%;
    top: 6%;
  }
  .up-million__avatars .up-avatar:nth-child(4) {
    left: 5%;
    top: 33%;
  }
  .up-million__avatars .up-avatar:nth-child(5) {
    left: 77%;
    top: 33%;
  }
  .up-million__avatars .up-avatar:nth-child(6) {
    left: 26%;
    top: 62%;
  }
  .up-million__avatars .up-avatar:nth-child(7) {
    left: 57%;
    top: 62%;
  }
  .up-million__avatars .up-avatar:nth-child(n + 8) {
    display: none;
  }
}
