#YearlySpecialTopic {
  background: var(--yst-page-bg, #faf6f0);
  min-height: calc(100vh - 58px);
  padding-bottom: 0.6rem;
}

#YearlySpecialTopic .yst-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 522;
  min-height: 3.2rem;
  background-color: #faf6f0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#YearlySpecialTopic .yst-banner__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#YearlySpecialTopic .yst-main-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  margin: 0.45rem auto 0.23rem;
  position: relative;
  z-index: 2;
}

#YearlySpecialTopic .yst-main-tab {
  min-width: 1.35rem;
  height: 0.48rem;
  line-height: 0.48rem;
  padding: 0 0.32rem;
  text-align: center;
  font-size: 0.18rem;
  color: var(--yst-btn-inactive-color, #dc9341);
  background: var(--yst-btn-inactive-bg, #f6e6cb);
  border-radius: 0.24rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  border: none;
}

#YearlySpecialTopic .yst-main-tab.active {
  color: var(--yst-btn-active-color, #985408);
  background: var(
    --yst-btn-active-bg,
    linear-gradient(180deg, #fcad6e 0%, #fed6a7 100%)
  );
  box-shadow: 0 0.04rem 0.12rem rgba(252, 173, 110, 0.35);
}

#YearlySpecialTopic .yst-content-wrap {
  width: 12rem;
  max-width: calc(100% - 0.48rem);
  margin: 0 auto;
}

#YearlySpecialTopic .yst-panel {
  display: none;
}

#YearlySpecialTopic .yst-panel.active {
  display: block;
}

/* IP应用 */
#YearlySpecialTopic .yst-ip-section {
  background: #fff;
  border-radius: 0.12rem;
  padding: 0.28rem 0.32rem 0.32rem;
  margin-bottom: 0.24rem;
  box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.04);
}

#YearlySpecialTopic .yst-ip-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.24rem;
}

#YearlySpecialTopic .yst-ip-section__title {
  font-size: 0.2rem;
  font-weight: 600;
  color: #333;
}

#YearlySpecialTopic .yst-ip-section__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.88rem;
  height: 0.32rem;
  padding: 0 0.16rem;
  font-size: 0.14rem;
  color: #666;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.16rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
  flex-shrink: 0;
}

#YearlySpecialTopic .yst-ip-section__more:hover {
  color: #333;
  border-color: #d9d9d9;
}

#YearlySpecialTopic .yst-ip-section__body {
  display: block;
  border-radius: 0.08rem;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#YearlySpecialTopic .yst-ip-section__body:hover {
  opacity: 0.92;
}

#YearlySpecialTopic .yst-ip-section__body img {
  width: 100%;
  display: block;
}

#YearlySpecialTopic .yst-ip-updating {
  margin-top: 0.08rem;
  padding: 0.32rem 0;
  text-align: center;
  font-size: 0.14rem;
  font-weight: 500;
  color: #985408;
  background: #fdfdf5;
  border-radius: 0.12rem;
}

/* 正版图案 */
#YearlySpecialTopic .yst-pattern-box {
  background: #fff;
  border-radius: 0.12rem;
  padding: 0.28rem 0.32rem 0.36rem;
  box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.04);
}

#YearlySpecialTopic .yst-sub-tabs {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  margin-bottom: 0.28rem;
}

#YearlySpecialTopic .yst-sub-tab {
  min-width: 0.7rem;
  height: 0.34rem;
  line-height: 0.34rem;
  padding: 0 0.2rem;
  text-align: center;
  font-size: 0.14rem;
  color: var(--yst-btn-inactive-color, #dc9341);
  background: var(--yst-btn-inactive-bg, #f6e6cb);
  border-radius: 0.08rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

#YearlySpecialTopic .yst-sub-tab.active {
  color: var(--yst-btn-active-color, #985408);
  background: var(
    --yst-btn-active-bg,
    linear-gradient(180deg, #fcad6e 0%, #fed6a7 100%)
  );
}

#YearlySpecialTopic .yst-sub-panel {
  display: none;
}

#YearlySpecialTopic .yst-sub-panel.active {
  display: block;
}

/* 主题：3 列卡片 */
#YearlySpecialTopic .yst-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.24rem 0.2rem;
}

#YearlySpecialTopic .yst-theme-card {
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#YearlySpecialTopic .yst-theme-card:hover {
  transform: translateY(-0.02rem);
}

#YearlySpecialTopic .yst-theme-card__img {
  border-radius: 0.08rem;
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 3 / 2;
}

#YearlySpecialTopic .yst-theme-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#YearlySpecialTopic .yst-theme-card__title {
  margin-top: 0.12rem;
  font-size: 0.16rem;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#YearlySpecialTopic .yst-theme-card__desc {
  margin-top: 0.06rem;
  font-size: 0.14rem;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 图案：5 列纯图网格 */
#YearlySpecialTopic .yst-pattern-image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.16rem;
}

#YearlySpecialTopic .yst-pattern-image-card {
  position: relative;
  border-radius: 0.08rem;
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#YearlySpecialTopic .yst-pattern-image-card:hover {
  transform: translateY(-0.02rem);
}

#YearlySpecialTopic .yst-pattern-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#YearlySpecialTopic .yst-pattern-image-card__badge {
  position: absolute;
  top: 0.08rem;
  left: 0.08rem;
  padding: 0.02rem 0.08rem;
  font-size: 0.11rem;
  color: #fff;
  background: #2858f8;
  border-radius: 0.04rem;
  line-height: 1.4;
  z-index: 1;
}

#YearlySpecialTopic .yst-pattern-image-grid__empty {
  grid-column: 1 / -1;
  padding: 0.6rem 0;
  text-align: center;
  font-size: 0.14rem;
  color: #999;
}

/* AI作品 */
#YearlySpecialTopic .yst-ai-box {
  background: #fff;
  border-radius: 0.12rem;
  padding: 0.28rem 0.32rem 0.36rem;
  box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.04);
}

#YearlySpecialTopic .yst-type-filters {
  display: none; /* 暂时隐藏 AI 类型筛选，后续恢复时删除此行 */
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.06rem;
  margin-bottom: 0.28rem;
}

#YearlySpecialTopic .yst-type-filters__label {
  font-size: 0.14rem;
  color: #696c77;
  margin-right: 0.04rem;
  flex-shrink: 0;
}

#YearlySpecialTopic .yst-type-filter {
  padding: 0.04rem 0.12rem;
  font-size: 0.14rem;
  color: #333333;
  background: transparent;
  border: none;
  border-radius: 0.04rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#YearlySpecialTopic .yst-type-filter.active {
  color: var(--yst-btn-active-color, #985408);
  background: var(
    --yst-btn-active-bg,
    linear-gradient(180deg, #fcad6e 0%, #fed6a7 100%)
  );
}

#YearlySpecialTopic .yst-ai-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.16rem;
}

#YearlySpecialTopic .yst-ai-card {
  position: relative;
  border-radius: 0.08rem;
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#YearlySpecialTopic .yst-ai-card:hover {
  transform: translateY(-0.02rem);
}

#YearlySpecialTopic .yst-ai-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#YearlySpecialTopic .yst-ai-card__badge {
  position: absolute;
  top: 0.08rem;
  left: 0.08rem;
  padding: 0.02rem 0.08rem;
  font-size: 0.11rem;
  color: #fff;
  background: #2858f8;
  border-radius: 0.04rem;
  line-height: 1.4;
}

#YearlySpecialTopic .yst-ai-grid__empty {
  grid-column: 1 / -1;
  padding: 0.6rem 0;
  text-align: center;
  font-size: 0.14rem;
  color: #999;
}

/* 分页 */
#YearlySpecialTopic .yst-paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  margin-top: 0.36rem;
  flex-wrap: wrap;
}

#YearlySpecialTopic .yst-paging__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 0.04rem;
  background: #fff;
  border: 1px solid #eee;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

#YearlySpecialTopic .yst-paging__btn:hover:not(.disabled) {
  border-color: #d4924a;
  color: #d4924a;
}

#YearlySpecialTopic .yst-paging__btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#YearlySpecialTopic .yst-paging__pages {
  display: flex;
  align-items: center;
  gap: 0.06rem;
}

#YearlySpecialTopic .yst-paging__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.36rem;
  height: 0.36rem;
  padding: 0 0.08rem;
  border-radius: 0.04rem;
  background: #fff;
  border: 1px solid #eee;
  font-size: 0.14rem;
  color: #666;
  cursor: pointer;
}

#YearlySpecialTopic .yst-paging__page.active {
  color: #2858f8;
  background: rgba(40, 88, 248, 0.08);
  border-color: rgba(40, 88, 248, 0.2);
}

#YearlySpecialTopic .yst-paging__jump {
  display: inline-flex;
  align-items: center;
  gap: 0.06rem;
  margin-left: 0.12rem;
  font-size: 0.14rem;
  color: #666;
}

#YearlySpecialTopic .yst-paging__jump input {
  width: 0.48rem;
  height: 0.32rem;
  border: 1px solid #eee;
  border-radius: 0.04rem;
  text-align: center;
  font-size: 0.14rem;
}

@media only screen and (max-width: 1366px) {
  #YearlySpecialTopic .yst-ai-grid,
  #YearlySpecialTopic .yst-pattern-image-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  #YearlySpecialTopic .yst-theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 768px) {
  #YearlySpecialTopic .yst-banner {
    min-height: 2rem;
  }

  #YearlySpecialTopic .yst-ai-grid,
  #YearlySpecialTopic .yst-pattern-image-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #YearlySpecialTopic .yst-theme-grid {
    grid-template-columns: 1fr;
  }
}
