/* 详情页顶栏与文章详情 /archives 一致：仅固定顶栏 + 返回 */
#xqbj-container .xqbj-main {
  padding-inline: 0.5rem;
}

.main-container {
  padding: 0 0 1.2rem;
}

#xqbj-container #home-main-content {
  padding-top: 0;
}

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

.ylj-only-web,
.ylj-steps__mark-img--web {
  display: none;
}

.ylj-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ylj-detail__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ylj-detail__title {
  margin: 0;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.ylj-detail__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ylj-detail__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
}

.ylj-detail__share {
  flex: none;
  width: 24px;
  height: 24px;
}

.ylj-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 122px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: normal;
}

.ylj-detail__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #ddd;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.55;
}

.ylj-detail__body p {
  margin: 0;
}

.ylj-detail__body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.ylj-detail__body img:not([src]),
.ylj-detail__body img.loading {
  content: url(../../__base/images/placeholder-article.png);
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.ylj-detail__p {
  margin: 0;
  color: #ddd;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.55;
}

.ylj-corrected {
  display: flex;
  align-items: flex-start;
  gap: 0.125rem;
  margin: 0;
  padding: 0.875rem 0.625rem;
  border-left: 3px solid #65ddb3;
  background: rgba(101, 221, 179, 0.1);
  color: #65ddb3;
  font-size: 0.75rem;
  line-height: 1.45;
}

.ylj-corrected__mark {
  flex: none;
  width: 20px;
  height: 20px;
}

.ylj-detail__hint {
  margin: 0;
  color: #ddd;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.55;
}

.ylj-steps,
.ylj-vote {
  margin: 0;
  padding: 1rem 0.625rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.ylj-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ylj-vote {
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
  padding-bottom: 1rem;
}

.ylj-steps__title,
.ylj-vote__title {
  margin: 0;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 24px;
}

.ylj-steps__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ylj-steps__item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 53px;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ylj-steps__item:last-child {
  border-bottom: 0;
}

.ylj-steps__mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
}

.ylj-steps__mark-img--h5 {
  display: block;
  width: 32px;
  height: 32px;
}

.ylj-steps__num {
  position: absolute;
  left: 12px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #ff9000;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ylj-steps__row {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  padding-right: 0.3125rem;
}

.ylj-steps__text {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 24px;
}

.ylj-steps__points {
  flex: none;
  color: #ff9000;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 24px;
}

.ylj-open-app {
  display: block;
  margin: 0;
  overflow: hidden;
  /* 切图圆角外是灰色直角底。按图的比例裁掉，窄屏也不小于上下卡片的 8px。 */
  border-radius: 8px;
  border-radius: max(8px, 2.6%) / max(8px, 14%);
}

.ylj-open-app__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border-radius: max(8px, 2.6%) / max(8px, 14%);
}

.ylj-vote__question {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.25rem 0.5rem;
  margin: 0;
  line-height: 24px;
}

.ylj-vote__qtext {
  color: #bababa;
  font-size: 0.75rem;
  font-weight: 400;
}

.ylj-vote__note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
  font-weight: 400;
}

.ylj-vote__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ylj-vote__opt {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  height: 36px;
  border: 1px solid #ff9000;
  border-radius: 8px;
  background: rgba(255, 144, 0, 0.05);
  color: #fff;
  text-decoration: none;
}

a.ylj-vote__opt:link,
a.ylj-vote__opt:visited,
a.ylj-vote__opt:hover,
a.ylj-vote__opt:focus,
a.ylj-vote__opt:active {
  color: #fff;
  text-decoration: none;
}

.ylj-vote__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  max-width: 100%;
  background: rgba(247, 147, 29, 0.2);
  pointer-events: none;
}

.ylj-rules {
  margin: 0;
}

.ylj-rules__list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ylj-rules__item {
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ylj-rules__item:last-child {
  border-bottom: 0;
}

.ylj-rules__rank {
  margin-right: 0.75rem;
  color: #ff9000;
}

.ylj-vote__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.4375rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .ylj-only-h5,
  .ylj-steps__mark-img--h5 {
    display: none;
  }

  .ylj-only-web {
    display: inline;
  }

  .ylj-detail__share.ylj-only-web,
  .ylj-steps__mark-img--web {
    display: block;
  }

  .ylj-detail {
    gap: 1.5rem;
  }

  .ylj-detail__title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: normal;
  }

  .ylj-detail__meta {
    color: #bcbcbc;
    font-size: 0.875rem;
  }

  .ylj-cover {
    height: 200px;
  }

  .ylj-detail__body,
  .ylj-detail__p,
  .ylj-detail__hint {
    font-size: 1rem;
    line-height: 1.7;
  }

  .ylj-corrected {
    align-items: center;
    font-size: 1rem;
  }

  .ylj-steps,
  .ylj-vote {
    padding: 1.875rem 1.25rem;
    border-color: rgba(255, 255, 255, 0.2);
  }

  .ylj-steps__title {
    font-size: 1.625rem;
    font-weight: 500;
  }

  .ylj-vote {
    gap: 1.25rem;
  }

  .ylj-vote__title {
    font-size: 1.375rem;
    font-weight: 500;
  }

  .ylj-steps__item {
    gap: 0.625rem;
    min-height: 76px;
  }

  .ylj-steps__mark {
    width: 56px;
    height: 56px;
  }

  .ylj-steps__mark-img--web {
    width: 56px;
    height: 56px;
  }

  .ylj-steps__num {
    left: 18px;
    top: 28px;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
  }

  .ylj-steps__text,
  .ylj-steps__points {
    font-size: 1.25rem;
  }

  .ylj-vote__qtext {
    font-size: 1rem;
  }

  .ylj-vote__note {
    font-size: 0.875rem;
  }

  .ylj-vote__question {
    gap: 0.625rem;
  }

  .ylj-vote__opt {
    height: auto;
    min-height: 56px;
  }

  .ylj-vote__label {
    padding: 1rem 1.125rem;
    font-size: 1.3125rem;
  }
}

/* 另外两个活动入口：样式与分类页三块横幅相同。详情页不加载 youliao.css，所以抄一份到这里。 */
.ylj-detail-entries {
  margin-top: 1rem;
}

.recommend-software {
  margin: 0.9rem 0 1.2rem;
}

.recommend-software-title {
  color: #fff;
  font-size: 1rem;
  text-align: center;
  margin: 1rem 0;
}

.recommend-software-list {
  display: flex;
  align-items: flex-start;
  background: #151515;
  border: solid 0.0313rem #333;
  border-radius: 0.625rem;
  padding: 0.8rem 0.3rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: wrap;
}

.recommend-software-item {
  min-width: 10%;
  max-width: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #f1f1f1;
  text-decoration: none;
  row-gap: 0.35rem;
  margin-bottom: 1rem;
}

.recommend-software-item img {
  max-width: 3rem;
  margin-bottom: 0.3rem;
  border-radius: 0.5rem;
  object-fit: cover;
  display: block;
}

.recommend-software-item img:not([src]),
.recommend-software-item img.loading {
  content: url(../../__base/images/placeholder-software.png);
  width: 3rem;
  height: 3rem;
  max-width: 3rem;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center;
}

.recommend-software-item span {
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 33.75rem) {
  .recommend-software-item {
    max-width: 20%;
    min-width: 20%;
  }
}

.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;
  }
}
