* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: #000;
}
body {
  --bg-color: #ecf2ff;
  --border-color: #dfe6f5;
  --portal-bg: #f3f7ff;
  --panel-bg: #ffffff;
  --panel-border: #dfe6f5;
  --tab-color: #000000e3;
  --tab-active: #2196F3;
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(180deg, var(--bg-color) 0%, #f3f7ff 100%);
  color: #33394a;
}
.container {
  max-width: 500px;
  margin: 0 auto;
  background: url("../img/BG.bin");
  background-size: contain;
  padding-bottom: 110px;
}
.portal-content {
  /* padding: 0 10px; */
}
.portal-content >img {
  display: block;
}
.promo-banner {
  --promo-u: min(calc(100vw / 750), calc(500px / 750));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(20 * var(--promo-u));
  width: 100%;
  height: calc(110 * var(--promo-u));
  padding: 0 calc(20 * var(--promo-u));
  border: 0;
  background: transparent;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: calc(38 * var(--promo-u));
  font-weight: 900;
  font-style: italic;
  line-height: 1.25;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.promo-banner span {
  flex: 0 0 auto;
  padding: 0 0.2em 0 0.04em;
  white-space: nowrap;
  color: #5bb7ff;
  background: linear-gradient(180deg, #c6ebff, #80cfff 40%, #369aff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 calc(2 * var(--promo-u)) calc(1 * var(--promo-u)) #10233d);
}
.tips {
  color: #FF005C;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 0;
  text-align: center;
}
.header {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 48px 58px;
  align-items: center;
  position: sticky;
  top: 0px;
  z-index: 99999;
  background-image: radial-gradient(
    transparent 1px,
    rgba(255, 255, 255, 0.16) 3px
  );
  padding: calc(8px + env(safe-area-inset-top)) 0 8px;
  background: url('../img/top.bin');
  background-size: contain;
  min-height: 60px;
  padding: 8px;
}
.header >img {
  grid-column: 1;
  grid-row: 1;
  width: 45px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}
.header >div {
  display: contents;
}
.header p {
  grid-column: 2;
  grid-row: 1;
  margin-left: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.header p:nth-of-type(2) {
  grid-row: 2;
  font-size: 10px;
  color: #3DA7F1;
  margin-top: 3px;
}
.header-action {
  grid-column: 3;
  grid-row: 1;
  display: block;
  width: 48px;
}
.header-action + .header-action {
  grid-column: 4;
  margin-left: 10px;
}
.header-action img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 2px 10px;
  background: url('../img/top.bin');
  background-size: cover;
  max-width: 500px;
}
.f-t {
  display: block;
}
.f-t p {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.f-b {
  margin-top: 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.f-b img {
  display: block;
  width: 140px;
  max-width: calc((100% - 12px) / 2);
  height: auto;
}
.banner-slider {
  position: relative;
  width: calc(100% - 0);
  margin: 16px auto 0;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.18);
  background: #fff;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.banner-slider .swiper-wrapper {
  display: flex;
  align-items: stretch;
  will-change: transform;
}
.banner-slider .swiper-slide {
  position: relative;
  flex: 0 0 100%;
  height: 50vw;
  max-height: 250px;
  overflow: hidden;
}
.banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.banner-slide img[src$="s3.bin"] {
  object-position: center bottom;
  transform: scale(1.06);
  transform-origin: 58% 100%;
}
@supports (aspect-ratio: 2 / 1) {
  .banner-slider .swiper-slide {
    height: auto;
    max-height: none;
    aspect-ratio: 2 / 1;
  }
}
.banner-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  pointer-events: none;
}
.banner-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  pointer-events: auto;
  backdrop-filter: blur(4px);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.banner-nav:hover {
  background: #3e74f8;
}
.banner-nav:active {
  background: #3e74f8;
}
.banner-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.banner-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.banner-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    width 0.25s ease;
}
.banner-dot.is-active {
  width: 20px;
  background: #3e74f8;
}
.banner-pagination .banner-dot {
  margin: 0;
}
.banner-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.banner-slider:active {
  cursor: grabbing;
}
.notice-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1200px, calc(100% - 0));
  padding: 12px 0;
  border-radius: 18px;
  overflow: hidden;
  user-select: none;
}
.notice-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff9558 0%, #ff612d 100%);
}
.notice-marquee {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.notice-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.notice-item {
  flex-shrink: 0;
  margin-right: 44px;
  color: #3f4557;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.notice-item:hover {
  color: #1f2937;
}
@media (max-width: 768px) {
  .banner-slider {
    width: calc(100% - 0);
    margin-top: 0;
  }
  .banner-controls {
    bottom: 10px;
    gap: 12px;
  }
  .banner-nav {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .notice-bar {
    width: calc(100% - 0);
    gap: 10px;
    padding: 10px 0;
    border-radius: 14px;
  }
  .notice-badge {
    padding: 4px 10px;
    font-size: 14px;
  }
  .notice-item {
    margin-right: 28px;
    font-size: 15px;
  }
}
.site-list ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.site-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  line-height: 1.2;
  color: #33394a;
}
.site-list li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.site-list2 ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.site-list2 li {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  /* box-shadow: 0 18px 40px #618bed75; */
  border-radius: 10px;
}
.site-list2 ul li:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    #618bed75,
    #3e70dd75 15%,
    #c2d1f675 45%,
    #fff
  );
  box-shadow: 0 20px 20px #3e70dd47;
  pointer-events: none;
  z-index: 1;
}
.site-list2 ul li img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  position: relative;
  z-index: 999;
}
.site-list2-item-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  line-height: 1.2;
  color: #33394a;
  position: relative;
  z-index: 999;
}
.site-list2-item-title h3 {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  color: #33394a;
}
.site-list2-item-title span:first-child {
  font-weight: 600;
}
.site-list2-item-title span:last-child {
  font-weight: 400;
}
.site-list2-item-btn {
  position: absolute;
  right: 10px;
  top: 30%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  margin-top: 0;
  padding: 2px 4px;
  border-radius: 999px;
  font-size: 8px;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(90deg, #ff6f5bfa, #ef5b56);
  z-index: 1000;
}

.portal-footer {
  padding: 0 6px 8px;
}
.portal-footer p {
  margin:60px 0 20px;
  text-align: center;
  color: #8b95ab;
  font-size: 8px;
  line-height: 1.2;
}

/* Category tabs and native bin lists from agent-baidu-3. */
.portal-categories {
  --u: min(calc(100vw / 750), calc(500px / 750));
  position: relative;
  z-index: 0;
  background: #000;
}
.portal-categories button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.h5-tabs {
    position: relative;
    z-index: 22;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 calc(84 * var(--u));
    min-height: calc(84 * var(--u));
    padding: calc(5 * var(--u));
    border: calc(2 * var(--u)) solid transparent;
    border-radius: calc(24 * var(--u));
    background:
        linear-gradient(180deg, #001325, #000b18 50%, #001325) padding-box,
        linear-gradient(180deg, #b9f3ff, #00c6ff 50%, #b9f3ff) border-box;
    box-shadow:
        0 0 calc(4 * var(--u)) #00c6ff,
        0 0 calc(10 * var(--u)) rgba(0, 198, 255, 0.55),
        inset 0 0 calc(12 * var(--u)) rgba(0, 198, 255, 0.40);
}

.h5-tabs::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: calc(2 * var(--u));
    border: calc(1 * var(--u)) solid #d7f7ff;
    border-radius: calc(21 * var(--u));
    box-shadow:
        0 0 calc(3 * var(--u)) #00c6ff,
        inset 0 0 calc(8 * var(--u)) rgba(0, 198, 255, 0.45);
}

.h5-tab {
    position: relative;
    z-index: 1;
    flex: 1 1 16.666%;
    height: calc(70 * var(--u));
    border: 0;
    border-radius: calc(18 * var(--u));
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: calc(28 * var(--u));
    font-weight: 700;
    letter-spacing: calc(1 * var(--u));
    text-shadow: 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.h5-tab.is-active {
    background: linear-gradient(180deg, #f5fcff 0%, #a2e3ff 38%, #12b5f5 100%);
    color: #fff;
    text-shadow: 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(0, 116, 181, 0.20);
    box-shadow:
        0 0 calc(3 * var(--u)) rgba(0, 198, 255, 0.50),
        inset 0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(255, 255, 255, 0.75);
}


.h5-list-scroll {
  flex: 1 0 120px;
  min-height: 120px;
  margin-top: calc(10 * var(--u));
  overflow: visible;
  background: #000;
}
.h5-list-panel { display: none; width: 100%; padding: 0; border: 0; background: #000; text-align: left; }
.h5-list-panel.is-active { display: block; }
.h5-list-panel img { width: 100%; height: auto; pointer-events: none; }

.h5-list-panel img { display: block; }
