/* Shared list grid pages: Blog home / category / tag / author (Figma) */
.blog-list-page {
  max-width: 1440px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}
@media screen and (min-width: 769px) {
  .blog-list-page {
    width: min(1440px, 96%) !important;
  }
}
.blog-list-page .homebody,
.blog-list-page .blog-grid-wrap {
  width: 100%;
  overflow: visible;
}

.blog-list-page > .blog_nav {
  margin: 0 0 8px;
}

.blog-list-hero {
  text-align: left;
  padding: 42px 0 30px;
}

.blog-list-hero__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.blog-list-hero__desc {
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.5;
  color: #585858;
  max-width: 1238px;
}

/* Tag 页：名称与摘要居中（Figma tag页面-PC） */
.blog-list-hero--tag {
  text-align: center;
  padding: 42px 20px 30px;
}

.blog-list-hero--tag .blog-list-hero__title {
  font-size: 24px;
}

.blog-author-hero {
  text-align: center;
  padding: 42px 0 30px;
}
.blog-author-hero__wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.blog-author-hero__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.blog-author-hero__name {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.blog-author-hero__bio {
  margin: 20px auto 0;
  max-width: 1038px;
  font-size: 16px;
  line-height: 1.4;
  color: #585858;
  
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: none;
  border: 1px solid #ECECEC;
}

.blog-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #fff;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.03);
}

.blog-card__body {
  padding: 16px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.blog-card__tags,
.blog-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

/* 设计稿：白底描边标签，非灰色填充胶囊 */
.blog-card__tag,
.blog-card__cat {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #333;
  border-radius: 4px;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #333;
  background: #fff;
  text-decoration: none;
  box-sizing: border-box;
}

a.blog-card__tag:hover {
  color: #FDAC0E;
  border-color: #FDAC0E;
  background: #FFF9EE;
}

.blog-card__title {
  margin: 0 0 8px;
  font-family: 'Poppins-Medium';
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__title a {
  color: #000;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: #FDAC0E;
}

.blog-card__excerpt {
  margin: 0 0 14px;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #747474;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* text-overflow: ellipsis;
  word-break: break-word; */
}

.blog-card__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F4F4F2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 14px;
  color: #747474;
}

.blog-card__meta-left {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

.blog-card__author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.blog-card__author-link:hover .blog-card__author {
  color: #FDAC0E;
}

.blog-card__author-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-card__author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-card__date {
  color: #747474;
  white-space: nowrap;
}

.blog-card__dot {
  color: #D7D7D7;
  flex-shrink: 0;
}

.blog-card__like {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.blog-card__like a.zbpzan,
.blog-card__like .zbpzan {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #747474 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.blog-card__like a.zbpzan:hover,
.blog-card__like a.zaned {
  color: #FDAC0E !important;
}

.blog-card__like .icon-zbpzan {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.blog-card__like .icon-zbpzan:before {
  content: '' !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 20px !important;
  -webkit-mask: url(../images/icon-zbpzan.svg) no-repeat center / contain;
  mask: url(../images/icon-zbpzan.svg) no-repeat center / contain;
  background-color: currentColor;
}
.blog-author-box {
  margin-top: 60px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
}

.blog-author-box__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.blog-author-box__avatar-link {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.blog-author-box__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}

.blog-author-box__info {
  min-width: 0;
  flex: 1;
}

.blog-author-box__name {
  display: block;
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
  font-family: 'Poppins-Medium';
}

.blog-author-box__name:hover {
  color: #FDAC0E;
}

.blog-author-box__bio {
  font-size: 14px;
  line-height: 1.2;
  color: #585858;
}

.blog-author-box__more {
  display: inline-block;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #FDAC0E;
  text-decoration: none;
}

.blog-author-box__more:hover {
  text-decoration: underline;
  color: #e09a0c;
}

/* Article meta: date/author + Follow us */
.blog-article-page .post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 10px 0 0 !important;
  text-align: left;
}

.blog-article-page .post-meta-row .post_info {
  margin: 0;
  text-align: left;
}

.post-follow-us {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.post-follow-us__label {
  font-size: 16px;
  white-space: nowrap;
}

.post-follow-us__list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-follow-us__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #585858;
  text-decoration: none;
}

.post-follow-us__list a:hover {
  background: #FDAC0E;
}

.post-follow-us__list svg {
  width: 22px;
  height: 22px;
  display: block;
}

.post-follow-us__list svg path {
  fill: #fff;
}

.blog-article-page .post_t {
  text-align: center;
}

.blog-article-page .post_t .post-meta-row {
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.blog-article-page .post_t h1 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.blog-article-page .post_author_link {
  display: inline;
  color: #8B8B8B;
  text-decoration: none;
}

.blog-article-page .post_author_link:hover {
  color: #FDAC0E;
}

@media screen and (max-width: 768px) {
  .blog-author-box {
    margin-top: 8vw;
  }

  .blog-author-box__inner {
    gap: 3.2vw;
    border-radius: 2.133vw;
  }

  .blog-author-box__avatar {
    width: 16vw;
    height: 16vw;
  }

  .blog-author-box__name {
    font-size: 3.733vw;
    margin-bottom: 0.5vw;
  }

  .blog-author-box__bio,
  .blog-author-box__more {
    font-size: 2.933vw;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    margin-bottom: 0;
  }

  .blog-author-box__bio {
    margin-bottom: 2.667vw;
  }

  .blog-article-page .post-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.667vw;
  }

  .post-follow-us {
    gap: 1.866vw;
  }

  .post-follow-us__label {
    font-size: 3.2vw;
  }

  .post-follow-us__list {
    gap: 8px;
  }

  .post-follow-us__list a {
    width: 5.333vw;
    height: 5.333vw;
  }

  .post-follow-us__list svg {
    width: 5.333vw;
    height: 5.333vw;
  }

  .blog-card__author-avatar {
    width: 5.333vw;
    height: 5.333vw;
  }
}

/* Larger pagination (design review: 翻页太小) */
.blog-list-page .pagebar,
.blog-article-page .pagebar {
  margin: 56px 0 0;
  text-align: center;
}

.blog-list-page .pagebar__track,
.blog-article-page .pagebar__track {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0;
}

.blog-list-page .pagebar a,
.blog-list-page .pagebar span,
.blog-article-page .pagebar a,
.blog-article-page .pagebar span {
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0 8px 0 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 17px;
  line-height: 40px;
  text-align: center;
  vertical-align: middle;
  font-family: 'Poppins-Medium';
  color: #000;
}

.blog-list-page .pagebar a:hover,
.blog-article-page .pagebar a:hover {
  background: #FFF9EE;
  color: #FDAC0E;
  border: none;
}

.blog-list-page .pagebar span,
.blog-article-page .pagebar span {
  background: #F5C400;
  color: #000;
  border: none;
}
.blog-list-page .pagebar a svg {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}
.blog-list-page .pagebar a:hover svg path {
  fill: #FDAC0E;
}
.blog-list-page .pagebar a svg path {
  fill: #000;
}
.blog-list-page .active_plate {
  margin-top: 30px;
}

/* Article page */
.main.blog-article-page,
.blog-article-page {
  max-width: 1440px;
  box-sizing: border-box;
}
@media screen and (min-width: 769px) {
  .main.blog-article-page, .blog-article-page {
    width: min(1440px, 96%) !important;
    /* 避免侧栏 Categories 等比主栏更高时被 .main/.wrap 裁切 */
    overflow: visible !important;
  }

  .main.blog-article-page::after {
    content: "";
    display: table;
    clear: both;
  }

  .blog-article-page .widget_catalog,
  .blog-article-page .widget_catalog ul,
  .blog-article-page .widget_tags,
  .blog-article-page .widget_tags ul,
  .blog-article-page .aside .theiaStickySidebar {
    overflow: visible !important;
  }

  .blog-article-page .widget.widget_catalog,
  .blog-article-page .widget.widget_tags {
    padding-bottom: 2px;
  }

  .blog-article-page .widget_catalog li:last-child,
  .blog-article-page .widget_tags li:last-child {
    margin-bottom: 0;
  }
}
.blog-article-page .mainbody {
  float: left;
  overflow: visible !important;
}

.blog-article-page .aside {
  display: block;
  float: right;
  overflow: visible !important;
}

/* 769–1200：全局样式把主栏和侧栏都设成 100%，侧栏会掉到推荐商品下面，滚到底部会再滑过一整块目录 */
@media screen and (min-width: 769px) and (max-width: 1200px) {
  .blog-article-page .mainbody {
    width: 68%;
    float: left;
    box-sizing: border-box;
    padding-right: 20px;
  }

  .blog-article-page .aside {
    width: 29%;
    float: right;
    box-sizing: border-box;
    margin-top: 0;
    padding: 0;
  }
}

/* .blog-article-page .article_content {
  padding-bottom: 24px;
} */

.blog-article-page .recommended-wrap {
  margin-top: 60px;
}

@media screen and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }
}

@media screen and (max-width: 768px) {
  .blog-article-page .recommended-wrap {
    margin-top: 8vw;
  }
  .blog-list-page > .blog_nav {
    margin: 0;
    padding: 4vw;
  }
  .blog-list-page,
  .blog-article-page {
    width: 100% !important;
    overflow: visible !important;
  }

  .main.blog-list-page,
  .main.main-homebody {
    overflow: visible !important;
  }

  .blog-list-hero {
    padding: 0 4vw 6vw;
  }

  .blog-list-hero__title {
    font-size: 4vw;
  }

  .blog-list-hero--tag .blog-list-hero__title {
    font-size: 4vw;
  }

  .blog-author-hero {
    padding: 0 4vw 6vw;
  }

  .blog-author-hero__avatar {
    width: 18.667vw;
    height: 18.667vw;
  }

  .blog-author-hero__name {
    font-size: 5.333vw;
  }

  .blog-author-hero__bio {
    font-size: 3.2vw;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 5.33vw;
    padding: 0 4vw;
  }

  .blog-card__body {
    padding: 3.2vw;
  }

  .blog-card__meta {
    padding-top: 3.2vw;
  }
  /* MB 分页：居中单行，形如 < 1 2 3 x x x > */
  .blog-list-page .pagebar,
  .blog-article-page .pagebar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 6.66vw 0 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .blog-list-page .pagebar::-webkit-scrollbar,
  .blog-article-page .pagebar::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  .blog-list-page .pagebar__track,
  .blog-article-page .pagebar__track {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: max-content;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .blog-list-page .pagebar a,
  .blog-list-page .pagebar span,
  .blog-article-page .pagebar a,
  .blog-article-page .pagebar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    min-width: 28px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #000;
    font-size: 13px;
    line-height: 1;
    text-align: center;
    float: none;
  }

  .blog-list-page .pagebar a:hover,
  .blog-article-page .pagebar a:hover {
    background: #FFF9EE;
    color: #FDAC0E;
  }

  .blog-list-page .pagebar span,
  .blog-article-page .pagebar span {
    background: #F5C400;
    color: #000;
  }
  .blog-list-page .pagebar a svg,
  .blog-article-page .pagebar a svg {
    width: 13px;
    height: 13px;
  }
  .blog-list-page .active_plate {
    margin: 0;
  }

  .blog-article-page .mainbody {
    float: none;
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .post-follow-us__list {
    gap: 1.333vw;
  }
  .blog-article-page .aside {
    float: none;
    width: 100%;
    display: block;
    margin-top: 8vw;
    padding: 0 4vw;
    box-sizing: border-box;
  }
  .blog-card {
    border-radius: 2.133vw;
  }
  .blog-card__media {
    border-radius: 2.133vw 2.133vw 0 0;
  }
  .blog-list-hero__desc {
    margin: 2.133vw auto 0;
    font-size: 3vw;
  }
}
