/* 分类页活动横幅。底图只有角标和标题。副标题、按钮、日期是 DOM，H5 和 Web 都能改。 */
.ylj-banners {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ylj-banner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 343 / 98;
  overflow: hidden;
  border-radius: 8px;
  background-color: #120c06;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  text-decoration: none;
}

.ylj-banner--yanpai {
  background-image: url("../../__base/images/youliao/banner-yanpai-h5-3x.webp");
}

.ylj-banner--guawang {
  background-image: url("../../__base/images/youliao/banner-guawang-h5-3x.webp");
}

.ylj-banner--hotspot {
  background-image: url("../../__base/images/youliao/banner-hotspot-h5-3x.webp");
}

.ylj-banner__sub {
  position: absolute;
  left: 3.5%;
  top: 55.1%;
  max-width: 68%;
  color: #ffb743;
  font-size: 0.4375rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ylj-banner__btn {
  position: absolute;
  left: 3.5%;
  top: 73.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34%;
  height: 20.4%;
  border-radius: 29px;
  background: linear-gradient(#f4c254, #ff8e10);
  color: #311509;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}

.ylj-banner__period {
  position: absolute;
  left: 76.24%;
  top: 81.63%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23.81%;
  height: 18.37%;
  color: #f8b13e;
  font-size: 0.625rem;
  overflow: hidden;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .ylj-banner {
    aspect-ratio: 644 / 184;
  }

  .ylj-banner--yanpai {
    background-image: url("../../__base/images/youliao/banner-yanpai-web-3x.webp");
  }

  .ylj-banner--guawang {
    background-image: url("../../__base/images/youliao/banner-guawang-web-3x.webp");
  }

  .ylj-banner--hotspot {
    background-image: url("../../__base/images/youliao/banner-hotspot-web-3x.webp");
  }

  .ylj-banner__sub {
    left: 3.73%;
    top: 54.35%;
    width: 54%;
    max-width: none;
    font-size: 0.75rem;
    line-height: 17px;
  }

  .ylj-banner__btn {
    left: 3.73%;
    top: 72.55%;
    width: 24.84%;
    height: 16.3%;
    font-size: 0.9375rem;
  }

  .ylj-banner__period {
    left: auto;
    top: auto;
    display: block;
    width: auto;
    height: auto;
    right: 1.86%;
    bottom: 2.7%;
    font-size: 0.75rem;
  }
}

/* 分类页壳子与首页分类列表同一套（homepage.css）。顶栏、分类条不要在这里另写。 */
#xqbj-container .xqbj-main,
#xqbj-container > .xqbj-main > .xqbj-main-container {
  margin: 0;
  max-width: none;
  min-width: none;
  width: 100%;
}
#xqbj-container .xqbj-main {
  padding: 0;
}
#xqbj-contact-container {
  max-width: var(--default-screen-max-width);
  min-width: var(--default-screen-min-width);
  margin: 0 auto;
}

@media (max-width: 959px) {
  #xqbj-container .xqbj-header {
    position: unset;
  }
}
.main-container {
  padding-top: 0;
}
.slider-content {
  display: flex;
  flex-direction: row;
  padding-bottom: 0.2rem;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  position: fixed;
  width: 100%;
  background: black;
  z-index: 98;
  max-width: 660px;
  height: 4.8rem;
  -webkit-user-drag: none;
  user-select: none;
  touch-action: pan-x;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slider-content::-webkit-scrollbar {
  display: none;
}

.slider-content.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* 分类页顶栏和首页同一套。窄屏这几行只写在 homepage.css 里，有料局不加载那份文件，不补上菜单和 AI 标会压住中间 logo */
@media screen and (max-width: 640px) {
  .slider-content {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .nav-mobile-header .nav-menu-btn img {
    padding: 0.5rem;
  }

  .nav-mobile-header__left {
    gap: 0;
  }

  .ai-logo-entry {
    margin-left: -0.5rem;
    margin-top: -0.375rem;
  }
}

.ylj-page {
  padding: 0.5rem 0.5rem 0;
}

.ylj-empty {
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  text-align: center;
}

.ylj-focus {
  position: relative;
  margin-top: 1rem;
  aspect-ratio: 343 / 150;
  background: url("../../__base/images/youliao/focus-h5-3x.webp") 0 0 / 100% 100% no-repeat;
}

.ylj-focus__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -0.0625rem;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ylj-focus,
.ylj-focus__label,
.ylj-focus__item {
  font-family: "PingFang SC", PingFangSC, -apple-system, "Helvetica Neue", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.ylj-focus__list {
  position: absolute;
  left: 9.77%;
  top: 15.78%;
  bottom: 4.89%;
  width: 86%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

a.ylj-focus__item,
a.ylj-focus__item:link,
a.ylj-focus__item:visited,
a.ylj-focus__item:hover {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 20px;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.ylj-focus__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  line-height: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ylj-focus__badge {
  flex: none;
  display: block;
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .ylj-focus {
    aspect-ratio: 644 / 185;
    background-image: url("../../__base/images/youliao/focus-web-3x.webp");
  }

  h2.ylj-focus__label {
    top: 3.24%;
    left: 6.21%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14.91%;
    height: 16.22%;
    margin: 0;
    overflow: visible;
    clip: auto;
    color: #f79004;
    font-size: 1rem;
    font-weight: 400;
    line-height: 12px;
    background: transparent;
  }

  .ylj-focus__list {
    left: 8.7%;
    top: 19.28%;
    bottom: 5.77%;
    width: 87%;
    gap: 1rem;
  }

  a.ylj-focus__item,
  a.ylj-focus__item:link,
  a.ylj-focus__item:visited,
  a.ylj-focus__item:hover {
    min-height: 24px;
    font-size: 1.125rem;
    line-height: 1.125rem;
  }

  .ylj-focus__title {
    line-height: 1.125rem;
  }

  .ylj-focus__badge {
    width: 24px;
    height: 24px;
  }
}

/* 添加到主屏幕：与首页 homepage.css 同一套。有料局只加载 youliao.css，不带这段底栏会散掉 */
.addbox {
  position: fixed;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  bottom: 0;
  left: 0;
  z-index: 3;
  display: none;
}

.addbox > div {
  background: rgba(0, 0, 0, 0.8);
  padding: 0.6rem;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  float: left;
  width: 100%;
}

.addbox > div img {
  width: 2.74rem;
  margin-left: 0.4rem;
}

.addbox > div button {
  width: 3.2rem;
  height: 1.5rem;
  color: #0a001f;
  background: rgb(243, 149, 27);
  border: none;
  margin-right: 2rem;
  border-radius: 4px;
}

.addbox > div i {
  position: absolute;
  top: 0.3rem;
  right: 0.56rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-style: unset;
}

.addbox > div > span {
  flex: 1;
  padding-left: 1rem;
}

.closeX:before,
.closeX:after {
  position: absolute;
  left: 50%;
  top: 50%;
  content: "";
  height: 1px;
  width: 15px;
  background: #fff;
  transform-origin: center;
}

.closeX:before {
  transform: rotate(45deg);
}

.closeX:after {
  transform: rotate(-45deg);
}

.van-overlay {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.bg-layout {
  position: relative;
  width: 90%;
  height: 100%;
  display: flex;
  max-width: 420px;
  top: initial;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: center;
}

.box {
  width: 100%;
  height: 45vh;
  border-radius: 1.2rem;
  background-color: rgb(43, 42, 42);
}

.box2 {
  margin-left: 10%;
  width: 80%;
  height: 100%;
}

.box2 img {
  width: 100%;
  height: 35vh;
  object-fit: cover;
}

.closebox {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 20%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.closeDilog {
  width: 2.4rem;
  height: 2.4rem;
  line-height: 2.4rem;
  text-align: center;
  background-color: rgba(43, 42, 42, 1);
  border-radius: 1.2rem;
  color: #fff;
}

.add-to-desktop-overlay .swiper-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
}

.add-to-desktop-overlay .swiper-pagination-bullet {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  box-sizing: border-box;
  border-radius: 50%;
  margin: 0 0.375rem !important;
  background-color: rgb(21, 21, 21) !important;
  opacity: 0.2;
}

.add-to-desktop-overlay .swiper-pagination-bullet-active {
  background-color: rgb(243, 149, 27) !important;
  opacity: 1 !important;
}

.add-to-desktop-overlay .swiper-slide {
  padding: 2rem 0;
  height: 100%;
  box-sizing: content-box;
}

.add-to-desktop-overlay .swiper-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 40vh;
}

@media screen and (max-width: 768px) {
  body .addbox {
    display: block;
  }
}
