html,
body {
  background: #000;
  color: #fff;
}

/* 图片地址在 OP 就绪后按阶段设置，保留占位布局。 */
img[data-src] {
  visibility: hidden;
}

body {
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  font-size: 24px;
  font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, STHeiTi, Arial, sans-serif;
  overflow-x: hidden;
}

.page {
  width: 100%;
  min-height: 100vh;
  background: #000;
  padding-bottom: 160px;
  position: relative;
}

/* header */
.page-header {
  height: 110px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a0a0a;
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  left: 24px;
  top: 0;
  width: calc(100% - 48px);
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 15px;
}

.header-left,
.header-right {
  position: relative;
  z-index: 1;
}

.header-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  flex: none;
  margin-right: 12px;
}

.header-info {
  min-width: 0;
}

.header-title-row {
  display: flex;
  align-items: center;
}

.header-name {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.header-badge {
  height: 28px;
  margin-left: 8px;
}

.header-sub {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.2;
  color: #F0C14B;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  flex: none;
}

.header-action {
  width: 72px;
  height: 86px;
  display: block;
  cursor: pointer;
}

.header-action + .header-action {
  margin-left: 22px;
}

/* announce */
.announce {
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  background: #000;
  margin-bottom: 30px;
}

.announce-icon {
  height: 60px;
  flex: none;
  margin-right: 12px;
  display: block;
}

.announce-marquee {
  flex: 1;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
}

.announce-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 24px;
  line-height: 40px;
  color: #F0C14B;
  animation: marquee 16s linear infinite;
}

.announce-track span {
  display: block;
  line-height: 40px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* banner */
.banner-viewport {
  position: relative;
  width: 100%;
  height: 860px;
  overflow: hidden;
}

.banner-track {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
  transform: translateX(11%);
}

.banner-slide {
  position: relative;
  flex: none;
  width: 78%;
  height: 100%;
  margin-right: 16px;
  border-radius: 24px;
  overflow: hidden;
  transform: scale(0.88);
  opacity: 0.78;
  transform-origin: center center;
  transition: transform 0.45s ease, opacity 0.45s ease;
  cursor: pointer;
  background: #111;
}

.banner-slide.active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 1;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.banner-slide.active::after {
  opacity: 0;
}

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

.banner-title {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 36px;
  text-align: center;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  color: #f3c45a;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 3;
}

.banner-desc {
  padding: 28px 30px 8px;
  text-align: center;
  background: #000;
}

.banner-desc p {
  font-size: 24px;
  line-height: 46px;
  color: #D8CCB5;
}

.banner-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
}

.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 12px;
  background: #5c5c5c;
  transition: width 0.35s ease, background-color 0.35s ease;
}

.banner-dots span + span {
  margin-left: 14px;
}

.banner-dots span.active {
  width: 36px;
  background: #f3c45a;
}

/* dual marquee */
.feed-marquee {
  padding: 24px 0 8px;
  background: #000;
}

.feed-row + .feed-row {
  margin-top: 28px;
}

.feed-row-title {
  padding: 0 24px 16px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.feed-row-mask {
  overflow: hidden;
  width: 100%;
}

.feed-row-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.feed-row-left {
  animation: marquee-left 22s linear infinite;
}

.feed-row-right {
  animation: marquee-right 26s linear infinite;
}

.feed-card {
  flex: none;
  margin-right: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

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

.feed-card-wide {
  width: 340px;
  height: 210px;
}

.feed-card-small {
  width: 168px;
  height: 210px;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* section */
.section {
  padding: 28px 24px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 500;
  color: #F0C14B;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 24px;
  margin-right: 10px;
  background: #F0C14B;
}

.section-more {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: #D8CCB5;
  cursor: pointer;
}

.section-more img {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.card-item {
  width: 50%;
  padding: 0 8px 22px;
  cursor: pointer;
}

.card-cover {
  position: relative;
  width: 100%;
  padding-top: 128.23%;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.card-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 72px;
  height: 36px;
  object-fit: fill;
  z-index: 2;
}

.card-score {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 72px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 600;
  color: #FFD91C;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 5px;
  background:
    linear-gradient(90deg, #0F1314, #3F342D) padding-box,
    linear-gradient(90deg, #0F1314, #3F342D) border-box;
  z-index: 2;
}

.card-update {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  height: 36px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  white-space: nowrap;
  background: #111;
  z-index: 2;
}

.card-name {
  margin-top: 12px;
  font-size: 26px;
  line-height: 36px;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* footer note */
.page-note {
  position: relative;
  padding: 20px 90px 24px;
  text-align: center;
}

.page-note p {
  font-size: 20px;
  line-height: 36px;
  color: #B7AB94;
}

.back-top {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  cursor: pointer;
}

/* bottom bar */
.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  height: 140px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  z-index: 30;
}

.bottom-btn {
  height: 80px;
  cursor: pointer;
}

.assets-ready .bottom-bar {
  background: #111 url("../img/footer-bg.js") center / cover no-repeat;
}

.card-item.assets-ready .card-update {
  background: url("../img/update-bg.js") center / 100% 100% no-repeat;
}

.bottom-btn.download {
  height: 86px;
}

.page-notice {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 85vw;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(35, 35, 35, 0.95);
  color: #fff;
  font-size: 16px;
  text-align: center;
  pointer-events: none;
  z-index: 100;
}

.banner-dots [role="button"] {
  cursor: pointer;
}

.banner-dots [role="button"]:focus-visible,
.back-top:focus-visible {
  outline: 2px solid #f3c45a;
  outline-offset: 4px;
}

/* Mobile layout: 750px design dimensions are expressed relative to viewport width. */
@media (max-width: 749px) {
  body {
    max-width: none;
    margin: 0;
    font-size: 3.2vw;
  }

  .page {
    padding-bottom: 21.3333vw;
  }

  .page-header {
    height: 14.6667vw;
    padding: 0 6.4vw;
  }

  .header-bg {
    left: 3.2vw;
    width: calc(100% - 6.4vw);
    border-radius: 2vw;
  }

  .header-logo {
    width: 10.6667vw;
    height: 10.6667vw;
    border-radius: 2.1333vw;
    margin-right: 1.6vw;
  }

  .header-name {
    font-size: 4.2667vw;
  }

  .header-badge {
    height: 3.7333vw;
    margin-left: 1.0667vw;
  }

  .header-sub {
    margin-top: 1.8667vw;
    font-size: 2.4vw;
  }

  .header-action {
    width: 9.6vw;
    height: 11.4667vw;
  }

  .header-action + .header-action {
    margin-left: 2.9333vw;
  }

  .announce {
    height: 8vw;
    padding: 0 3.2vw;
    margin-bottom: 4vw;
  }

  .announce-icon {
    height: 8vw;
    margin-right: 1.6vw;
  }

  .announce-marquee {
    height: 5.3333vw;
  }

  .announce-track,
  .announce-track span {
    font-size: 3.2vw;
    line-height: 5.3333vw;
  }

  .banner-viewport {
    height: 114.6667vw;
  }

  .banner-slide {
    margin-right: 2.1333vw;
    border-radius: 3.2vw;
  }

  .banner-slide.active {
    box-shadow: 0 2.1333vw 6.4vw rgba(0, 0, 0, 0.45);
  }

  .banner-title {
    bottom: 4.8vw;
    font-size: 6.4vw;
    text-shadow: 0 0.5333vw 2.4vw rgba(0, 0, 0, 0.55);
  }

  .banner-desc {
    padding: 3.7333vw 4vw 1.0667vw;
  }

  .banner-desc p {
    font-size: 3.2vw;
    line-height: 6.1333vw;
  }

  .banner-dots {
    margin-top: 2.9333vw;
  }

  .banner-dots span {
    width: 1.6vw;
    height: 1.6vw;
    border-radius: 1.6vw;
  }

  .banner-dots span + span {
    margin-left: 1.8667vw;
  }

  .banner-dots span.active {
    width: 4.8vw;
  }

  .feed-marquee {
    padding: 3.2vw 0 1.0667vw;
  }

  .feed-row + .feed-row {
    margin-top: 3.7333vw;
  }

  .feed-row-title {
    padding: 0 3.2vw 2.1333vw;
    font-size: 3.7333vw;
  }

  .feed-card {
    margin-right: 2.1333vw;
    border-radius: 2.1333vw;
  }

  .feed-card-wide {
    width: 45.3333vw;
    height: 28vw;
  }

  .feed-card-small {
    width: 22.4vw;
    height: 28vw;
  }

  .section {
    padding: 3.7333vw 3.2vw 0;
  }

  .section-head {
    margin-bottom: 2.4vw;
  }

  .section-title,
  .section-more {
    font-size: 3.2vw;
  }

  .section-title::before {
    width: 0.5333vw;
    height: 3.2vw;
    margin-right: 1.3333vw;
  }

  .section-more img {
    width: 2.9333vw;
    height: 2.9333vw;
    margin-left: 0.2667vw;
  }

  .card-list {
    margin: 0 -1.0667vw;
  }

  .card-item {
    padding: 0 1.0667vw 2.9333vw;
  }

  .card-cover {
    border-radius: 2.1333vw;
  }

  .card-tag {
    top: 1.3333vw;
    left: 1.3333vw;
    width: 9.6vw;
    height: 4.8vw;
  }

  .card-score {
    top: 1.3333vw;
    right: 1.3333vw;
    width: 9.6vw;
    height: 4.8vw;
    font-size: 2.6667vw;
    border-width: 0.2667vw;
    border-radius: 0.6667vw;
  }

  .card-update {
    bottom: 1.6vw;
    height: 4.8vw;
    padding: 0 2.4vw;
    font-size: 2.6667vw;
  }

  .card-name {
    margin-top: 1.6vw;
    font-size: 3.4667vw;
    line-height: 4.8vw;
  }

  .page-note {
    padding: 2.6667vw 12vw 3.2vw;
  }

  .page-note p {
    font-size: 2.6667vw;
    line-height: 4.8vw;
  }

  .back-top {
    right: 3.2vw;
    width: 8.5333vw;
    height: 8.5333vw;
  }

  .bottom-bar {
    width: 100%;
    height: 18.6667vw;
    padding: 0 4.8vw;
  }

  .bottom-btn {
    height: 10.6667vw;
  }

  .bottom-btn.download {
    height: 11.4667vw;
  }
}
