/* Homepage hero — 图文分离；比例对齐原 .banner；Tab 改为独立 Tag 导航 */
.blog-home-hero {
  width: 100%;
  position: relative;
  background: #1a1a1a;
}

.blog-home-hero__media {
  width: 100%;
  line-height: 0;
}

.blog-home-hero__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1920 / 395;
  object-fit: cover;
}

.blog-home-hero__media img.mb {
  display: none;
}

.blog-home-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  max-width: 1440px;
  width: min(1440px, 92%);
  margin: 0 auto;
  /* padding: 12px 0 8px; */
  pointer-events: none;
}

.blog-home-hero__title {
  margin: 0 0 12px;
  font-size: 53px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  pointer-events: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.blog-home-hero__title span {
  color: #FFC842;
}

.blog-home-hero__desc {
  margin: 0;
  max-width: 773px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  pointer-events: auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* —— 首页 Tag 导航（替代原分类 Tab）—— */
.blog-home-tags-sentinel {
  position: relative;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.blog-home-tags {
  position: sticky;
  top: 79px;
  z-index: 40;
  height: 75px;
  box-sizing: border-box;
  background: #fff;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-home-tags__inner {
  display: flex;
  align-items: stretch;
  max-width: 1440px;
  width: min(1440px, 96%);
  height: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 12px;
  gap: 24px;
  border-bottom: 1px solid #ECECEC;
  justify-content: center;
}

.blog-home-tags__track {
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.blog-home-tags__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0 40px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  width: max-content;
}

.blog-home-tags__item {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.blog-home-tags__link {
  display: block;
  white-space: nowrap;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0 25px;
}

.blog-home-tags__link:hover {
  color: #FDAC0E;
}
.blog-home-tags__item.is-active .blog-home-tags__link {
  font-weight: 600;
  color: #000;
}

.blog-home-tags__item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: #FDAC0E;
}

/* OTHERS 下拉（超出宽度时显示） */
.blog-home-tags__others {
  position: relative;
  flex: 0 0 auto;
  display: none;
  align-items: center;
  height: 100%;
}

.blog-home-tags__others.is-visible {
  display: flex;
}

.blog-home-tags__others-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Poppins-Regular", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  padding: 0 25px;
}

.blog-home-tags__others-btn:hover,
.blog-home-tags__others.is-open .blog-home-tags__others-btn,
.blog-home-tags__others.has-active .blog-home-tags__others-btn {
  color: #ffc842;
}

.blog-home-tags__others-caret {
  display: block;
  transition: transform 0.2s ease;
}

.blog-home-tags__others.is-open .blog-home-tags__others-caret {
  transform: rotate(180deg);
}

.blog-home-tags__others-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  min-width: 220px;
  max-width: min(360px, 80vw);
  max-height: 360px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 50;
}

.blog-home-tags__others.is-open .blog-home-tags__others-menu {
  display: block;
}

.blog-home-tags__others-menu .blog-home-tags__item {
  display: block;
  height: auto;
  width: 100%;
}

.blog-home-tags__others-menu .blog-home-tags__link {
  display: block;
  padding: 10px 16px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  text-shadow: none;
}

.blog-home-tags__others-menu .blog-home-tags__link:hover,
.blog-home-tags__others-menu .blog-home-tags__item.is-active .blog-home-tags__link {
  color: #fdac0e;
  background: #fafafa;
}

.blog-home-tags__others-menu .blog-home-tags__item.is-active::after {
  display: none;
}

/* banner 滚过后吸顶样式（白底深字） */
.blog-home-tags.is-stuck {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.blog-home-tags.is-stuck .blog-home-tags__link,
.blog-home-tags.is-stuck .blog-home-tags__others-btn {
  color: #333;
}

.blog-home-tags.is-stuck .blog-home-tags__link:hover,
.blog-home-tags.is-stuck .blog-home-tags__others-btn:hover,
.blog-home-tags.is-stuck .blog-home-tags__others.is-open .blog-home-tags__others-btn,
.blog-home-tags.is-stuck .blog-home-tags__others.has-active .blog-home-tags__others-btn {
  color: #fdac0e;
}

.blog-home-tags.is-stuck .blog-home-tags__item.is-active::after {
  background: #fdac0e;
}

@media screen and (max-width: 1024px) {
  .blog-home-hero__title {
    font-size: 32px;
  }

  .blog-home-hero__desc {
    font-size: 13px;
    max-width: 420px;
  }

  .blog-home-tags__list {
    gap: 0 32px;
  }

  .blog-home-tags__link,
  .blog-home-tags__others-btn {
    font-size: 16px;
  }

  .blog-home-tags__inner {
    gap: 16px;
  }
}

@media screen and (max-width: 980px) {
  .blog-home-tags {
    top: 39px;
  }
}

@media screen and (max-width: 768px) {
  .blog-home-hero__media img.pc {
    display: none;
  }

  .blog-home-hero__media img.mb {
    display: block;
    aspect-ratio: 750 / 420;
  }

  .blog-home-hero__content {
    width: 90.2vw;
    text-align: center;
    top: 1.733vw;
    bottom: auto;
  }

  .blog-home-hero__title {
    margin-bottom: 0.5vw;
    font-size: 7.06vw;
    max-width: none;
    line-height: 1.2;
    text-shadow: 0 1px 1.06vw rgba(0, 0, 0, 0.35);
  }

  .blog-home-hero__desc {
    font-size: 2.67vw;
    line-height: 1.2;
    text-shadow: 0 1px 0.8vw rgba(0, 0, 0, 0.35);
    max-width: 100%;
  }

  .blog-home-tags {
    height: 10vw;
  }

  .blog-home-tags__inner {
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 3vw;
  }

  .blog-home-tags__list {
    gap: 0 2vw;
  }

  .blog-home-tags__link,
  .blog-home-tags__others-btn {
    font-size: 3.733vw;
    padding: 0 1.33vw;
  }

  .blog-home-tags__item.is-active::after {
    height: 0.66vw;
    bottom: 1vw;
  }

  .blog-home-tags__others-menu {
    min-width: 42vw;
    max-height: 50vh;
  }

  .blog-home-tags__others-menu .blog-home-tags__link {
    font-size: 3.2vw;
    padding: 2.4vw 3.2vw;
  }
}
@media (max-width: 767px) {
    .blog-home-tags__track {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        flex: 1;
        min-width: 0;
    }
    
    .blog-home-tags__track::-webkit-scrollbar {
        display: none;
    }
    
    .blog-home-tags__list {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        padding: 4px 16px;
        min-width: max-content;
    }
    
    .blog-home-tags__item {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .blog-home-tags__fade {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        pointer-events: none;
        z-index: 2;
        display: none;
    }
    
    .blog-home-tags__fade--left {
        left: 0;
        background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
    }
    
    .blog-home-tags__fade--right {
        right: 0;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
    }
    .blog-home-tags__others {
        display: none !important;
    }
}

/* —— 分类页 Banner（复用首页 Hero 图文分离）—— */
.blog-cate-banner-top {
  max-width: 1440px;
  width: min(1440px, 96%);
  margin: 0 auto;
  box-sizing: border-box;
  padding-top: 8px;
}

.blog-cate-banner-top > .blog_nav {
  margin: 0 0 8px;
}

.blog-cate-hero {
  margin-bottom: 0;
}

/* 分类 Banner 文案默认黑色（可被分类后台色号覆盖）；去掉首页白字阴影 */
.blog-cate-hero .blog-home-hero__title,
.blog-cate-hero .blog-home-hero__desc {
  color: #000000;
  text-shadow: none;
}
.blog-cate-hero .blog-home-hero__title span {
  color: inherit;
}

/* Banner 下方紧接列表区：覆盖全局 .main { margin-top: 100px } */
.blog-cate-hero + .main.blog-list-page {
  margin-top: 20px;
}

.blog-cate-hero__subcate {
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

@media screen and (max-width: 768px) {
  .blog-cate-banner-top {
    width: 90.2vw;
    padding-top: 2vw;
  }

  .blog-cate-hero {
    margin-bottom: 0;
  }

  /* MB：完整显示图片，避免 object-fit:cover + 固定比例裁切；文案仍叠在图上 */
  .blog-cate-hero .blog-home-hero__media img.mb {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center;
  }

  .blog-cate-hero + .main.blog-list-page {
    margin-top: 3vw;
  }
}



