:root {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  color: #ffffff;
  background: #0d0f10;
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: #0d0f10;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.h5-tabbar-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.h5-portal {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgb(255 91 80 / 11%), transparent 28%),
    linear-gradient(180deg, rgb(20 22 24 / 96%) 0%, #0d0f10 42%, #070808 100%);
  color: #ffffff;
}

.h5-portal__content {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 12px 12px 148px;
}

.h5-hero-carousel {
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 16px;
  background: rgb(255 255 255 / 4%);
  padding: 8px;
  backdrop-filter: blur(8px);
}

.h5-hero-stage {
  position: relative;
  aspect-ratio: 2.75 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: rgb(255 255 255 / 4%);
}

.h5-hero-empty {
  display: grid;
  aspect-ratio: 2.75 / 1;
  place-items: start;
  border-radius: 14px;
  background: rgb(255 255 255 / 4%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  padding: 18px;
}

.h5-hero-card {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: rgb(8 10 11 / 72%);
  cursor: pointer;
  appearance: none;
  padding: 0;
  transition: transform 0.42s cubic-bezier(.2, .8, .2, 1), opacity 0.28s ease;
}

.h5-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  object-fit: fill;
}

.h5-hero-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(4 5 10 / 5%) 0%, rgb(4 5 10 / 18%) 52%, rgb(4 5 10 / 72%) 100%);
  content: "";
}

.h5-hero-card span {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.h5-hero-card strong {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-hero-card em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgb(255 91 80 / 13%);
  color: #ff6656;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  padding: 4px 12px;
}

.h5-hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.h5-hero-dots button {
  width: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 30%);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.h5-hero-dots button.is-active {
  width: 16px;
  background: #ffffff;
}

.h5-category-nav {
  margin-top: 12px;
  border-radius: 12px;
  background: #151718;
  padding: 6px 8px;
}

.h5-category-nav > div {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.h5-category-nav > div::-webkit-scrollbar {
  display: none;
}

.h5-category-nav a,
.h5-category-nav button {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #f1f5f9;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  appearance: none;
  padding: 8px 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.h5-category-nav a.is-active,
.h5-category-nav button.is-active {
  background: rgb(255 91 80 / 10%);
  color: #ff6656;
}

.h5-category-nav a.is-active::after,
.h5-category-nav button.is-active::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  border-radius: 999px;
  background: #ff5b50;
  content: "";
}

.h5-offerwall {
  margin-top: 16px;
  border-radius: 18px;
  background: #151718;
  padding: 12px 10px;
}

.h5-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h5-section-title span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #ff5b50;
  box-shadow: 0 0 18px rgb(255 91 80 / 28%);
  color: #ffffff;
  font-size: 14px;
}

.h5-section-title strong {
  min-width: 0;
  overflow: hidden;
  color: #ff6656;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-grid-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 12px;
  margin-top: 12px;
}

.h5-grid-card {
  display: block;
  min-width: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  text-align: center;
}

.h5-grid-card span {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: rgb(2 6 23 / 30%);
  box-shadow: 0 10px 24px -18px rgb(0 0 0 / 55%);
  aspect-ratio: 1;
}

.h5-grid-card img {
  width: 100%;
  height: 100%;
  background: #ffffff;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.h5-grid-card:hover img {
  transform: scale(1.05);
}

.h5-grid-card strong {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-grid-card em {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  padding: 4px 18px;
}

.h5-grid-empty {
  margin-top: 12px;
  border-radius: 14px;
  background: #101213;
  padding: 32px 16px;
  text-align: center;
}

.h5-grid-empty strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.h5-floating-ad {
  position: fixed;
  --floating-ratio: 1;
  --floating-image-size: clamp(52px, calc(60px * var(--floating-ratio)), 92px);
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 18px;
  background: rgb(10 12 13 / 95%);
  box-shadow: 0 18px 46px rgb(0 0 0 / 42%);
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  text-align: left;
  backdrop-filter: blur(12px);
}

.h5-bottom-nav {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100% - 24px), 616px);
  margin: 0 auto;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 18px;
  background: rgb(10 12 13 / 95%);
  box-shadow: 0 18px 46px rgb(0 0 0 / 42%);
  backdrop-filter: blur(12px);
}

.h5-bottom-nav a {
  display: flex;
  min-width: 0;
  height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgb(255 255 255 / 62%);
  font-size: 11px;
  font-weight: 700;
}

.h5-bottom-nav a.is-active {
  color: #ff6656;
}

.h5-bottom-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.h5-floating-ad img {
  width: var(--floating-image-size);
  aspect-ratio: var(--floating-ratio, 1);
  flex: 0 0 auto;
  border-radius: 14px;
  background: #ffffff;
  object-fit: cover;
}

.h5-floating-ad span {
  min-width: 0;
  flex: 1 1 auto;
}

.h5-floating-ad strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-floating-ad i {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.h5-floating-ad b {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 24%);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.h5-floating-ad b.is-active {
  width: 16px;
  background: #ff6656;
}

.h5-floating-ad em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ff5b50;
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 7px 12px;
}

@media (min-width: 720px) {
  .h5-portal__content {
    padding-top: 18px;
  }

  .h5-floating-ad {
    right: calc(50% - 308px);
    left: calc(50% - 308px);
  }

  .h5-bottom-nav {
    right: calc(50% - 308px);
    left: calc(50% - 308px);
    width: 616px;
  }
}

@media (max-width: 420px) {
  .h5-portal__content {
    padding-right: 10px;
    padding-left: 10px;
  }

  .h5-grid-wall {
    gap: 14px 10px;
  }
}
