.home {
  /*
   * 首页至少占满一屏，但高度必须能够随着句子列表增长。
   * 不能使用固定 height，否则会限制 sticky 分类栏。
   */
  min-height: calc(100vh - 60px);
}


.home-wrap {
  min-height: calc(100% - 90px);
  padding-top: 20px;
}

.home-inter-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
}

.home-body {
  flex: 1;
  margin-right: 20px;
  background-color: #fff;
  padding: 0 20px;
  margin-bottom: 20px;
}

.home-body-nav {
  color: #262626;
}

.home-sort-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 8px 2px;
  border-bottom: 1px solid #edf0f3;
}

.home-sort-toolbar__label {
  color: #8a919f;
  font-size: 13px;
  white-space: nowrap;
}

.home-sort-options {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: #f5f6f7;
}

.home-sort-option {
  min-width: 52px;
  padding: 6px 12px;
  border-radius: 7px;
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  transition:
      color 0.18s ease,
      background-color 0.18s ease,
      box-shadow 0.18s ease;
}

.home-sort-option:hover {
  color: var(--pai-brand-2-hover);
  text-decoration: none;
}

.home-sort-option--active {
  background: #fff;
  color: var(--pai-brand-1-normal);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(31, 35, 41, 0.1);
}

.navbar {
  z-index: 1030;
}



/* 首页二级分类导航 */
.home-nav-classify {
  position: sticky;
  top: 60px;
  z-index: 1020;
  background: #ffffff;
  border-bottom: 1px solid #e8e1de;
  box-shadow: 0 3px 10px rgba(90, 63, 53, 0.05);
}




.category-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.category-list {
  display: flex;
  align-items: stretch;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category--item {
  position: relative;
  flex: 0 0 auto;
  padding: 15px 0 13px;
  color: #515767;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.category--item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--pai-brand-1-normal);
  border-radius: 3px 3px 0 0;
  content: "";
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.category--item:hover {
  color: var(--pai-brand-2-hover);
  text-decoration: none;
}

.category--active {
  color: #252933;
  font-weight: 600;
}

.category--active::after {
  transform: scaleX(1);
}


.align-content-start {
  overflow-x: auto;
}

.svg-inline--fa,
svg:not(:root).svg-inline--fa {
  overflow: visible;
}

.svg-inline--fa.fa-w-16 {
  width: 1.2em;
}

.svg-inline--fa.fa-w-14 {
  width: 1em;
}

/*主要文章详情页 头部图片*/
.home-carouse-wrap {
  background-color: #346;
  padding: 20px;
}

.home-carouse-inter-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.home-carouse-item {
  width: calc((100% - 60px) * 0.25);
  transition: all 0.2s ease 0s;
  box-shadow: 0 6px 12px 0 rgb(0 0 0 / 25%);
}

.home-carouse-item img {
  width: 100%;
  height: 150px;
}

.home-carouse-item-body {
  background-color: #fff;
  padding: 20px;
  height: 160px;
}

.home-carouse-item-title {
  font-size: 18px;
  font-weight: 700;
  height: 58px;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-carouse-item-dot {
  display: inline-block;
  background-color: #a2a2a2;
  border-radius: 100%;
  height: 8px;
  width: 8px;
  margin-right: 4px;
  flex-shrink: 0;
}

.home-carouse-item-tag {
  display: flex;
  align-items: center;
  color: #a2a2a2;
  font-size: 14px;
}

.home-carouse-item-first-text {
  font-weight: 900;
  padding: 0 8px;
  align-items: center;
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.home-carouse-item-tag .home-carouse-item-first-text:not(:last-child):after {
  position: absolute;
  right: -1px;
  display: block;
  content: " ";
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #4e5969;
}

.home-carouse-item-tag .author {
  padding-left: 8px;
  color: #a2a2a2;
  display: inline-block;
  max-width: 100px;
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-carouse-item:hover {
  transform: translateY(-4px);
}

/* home 适配 */
@media screen and (max-width: 768px) {
  .home-right,
  .home-carouse-wrap {
    display: none;
  }
  .home-body {
    margin-right: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .home-wrap {
    padding-top: 0;
  }

  .home-sort-toolbar {
    min-height: 50px;
  }

  .home-sort-toolbar__label {
    display: none;
  }

  .home-sort-options {
    width: 100%;
  }

  .home-sort-option {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .user-article-item-value-text {
    -webkit-line-clamp: 3;
  }
  .home-inter-wrap {
    width: auto;
    display: block;
  }
  .user-article-img {
    width: 110px;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    right: 0;
  }
  .align-content-start {
    padding: 4px 18px;
  }
  .cdc-article-panel__operate {
    margin-left: 8px;
  }
  .article-show-wrap {
    margin-right: 8px;
  }

  .cdc-article-panel__inner:has(.user-article-img) .cdc-article-panel__media {
    max-width: 65%;
  }

  .category-wrap {
    padding-left: 16px;
    padding-right: 12px;
  }

  .category-list {
    gap: 22px;
  }

  .category--item {
    padding-top: 13px;
    padding-bottom: 11px;
    font-size: 14px;
  }



}
