.youtuo_article_top_container {
  margin-bottom: var(--component-gap-md);
}

.youtuo_article_top_container .youtuo-section-title {
  text-align: center;
}

.youtuo_article_top_container .youtuo-section-desc {
  margin-top: var(--text-gap-lg);
  text-align: center;
}

.youtuo_article_cards {
  background: var(--color-surface);
}

.youtuo_article_cards-tabs {
  background: var(--color-surface);
}

.youtuo_article_cards-tabs-head {
  position: relative;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(18, 18, 18, 0.18);
}

.youtuo_article_cards-tab-list {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--component-gap-md) + 8px);
  padding: 0;
  border: 0;
  background: transparent;
}

.youtuo_article_cards-tab {
  position: relative;
  min-width: 0;
  padding: calc(var(--text-gap-sm) - 6px) calc(var(--text-gap) + 6px);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #676868;
  font-family: var(--title-font-family);
  font-size: var(--font-size-24);
  font-weight: 500;
  line-height: 1.5;
  text-transform: capitalize;
  cursor: pointer;
  transition:
    color 0.3s ease;
}

.youtuo_article_cards-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  height: 3px;
  background: transparent;
  transition: background-color 0.3s ease;
}

.youtuo_article_cards-tab.is-active {
  color: var(--color-primary);
  font-weight: 600;
}

.youtuo_article_cards-tab.is-active::after {
  background: var(--color-primary);
}

.youtuo_article_cards-tab:hover {
  color: var(--color-primary);
}


.youtuo_article_cards-tab-panel[hidden] {
  display: none;
}

.youtuo_article_cards-slider {
  width: 100%;
  overflow: hidden;
}

.youtuo_article_cards-grid {
  display: flex;
  gap: calc(var(--text-gap) - 4px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.youtuo_article_cards-slider.swiper-initialized .youtuo_article_cards-grid {
  gap: 0;
  padding: var(--component-gap-sm) 0;
}

.youtuo_article_cards-slide.swiper-slide {
  /* width: calc((100% - ((var(--text-gap) - 4px) * 2)) / 3); */
  flex: 0 0 auto;
  height: stretch;
}

.youtuo_article_cards-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.youtuo_article_cards-media {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.youtuo_article_cards-media img {
  display: block;
  width: 100%;
  aspect-ratio: 520 / 390;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.youtuo_article_bttonm-link {
  padding: var(--text-gap) 0 var(--component-gap-lg);
  text-align: center;
}


.youtuo_article_cards-body {
  position: relative;
  z-index: 1;
  width: 88%;
  flex: 1;
  height: stretch;
  margin-top: calc(var(--text-gap-sm) * -2);
  padding: calc(var(--text-gap-lg) * 2) var(--text-gap-lg);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
  gap: var(--text-gap-lg);
  text-align: center;
  transition: all 0.35s ease;
}

.youtuo_article_cards-date {
  color: rgba(0, 0, 0, 0.7);
  font-size: var(--font-size-14);
  font-weight: 400;
  line-height: 1.5;
}

.youtuo_article_cards-title {
  margin: 0;
  color: #000;
  font-family: var(--title-font-family);
  font-size: var(--font-size-24);
  font-weight: 600;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  /* 限制最多展示 3 行 */
  overflow: hidden;
  /* 隐藏超出三行的文本 */
}

.youtuo_article_cards-link {
  color: var(--color-primary);
  font-family: var(--title-font-family);
  font-size: var(--font-size-18);
  font-weight: 600;
  line-height: 1.33;
  text-align: center;
  text-transform: capitalize;
  text-decoration: none;
}

.youtuo_article_cards-card.is-demo .youtuo_article_cards-link,
.youtuo_article_cards-card:hover .youtuo_article_cards-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.youtuo_article_cards-card.is-demo .youtuo_article_cards-body,
.youtuo_article_cards-card:hover .youtuo_article_cards-body {
  transform: translateY(calc(var(--text-gap-lg) * -1));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.youtuo_article_cards-card:hover .youtuo_article_cards-media img {
  transform: scale(1.04);
}

@media (max-width: 992px) {
  .youtuo_article_cards-slide {
    width: calc((100% - (var(--text-gap) - 4px)) / 2);
  }
}

@media (max-width: 576px) {
  .youtuo_article_cards-tab-list {
    justify-content: space-between;
    width: 100%;
    gap: 0;
  }

  .youtuo_article_cards-tab {
    min-width: 0;
    flex: 1;
  }

  .youtuo_article_cards-slide {
    width: 100%;
  }
}