.tab-box {
  width: 100%;
  height: 69px;
  background: #f2f3f5;
  margin-top: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.tab-box::-webkit-scrollbar {
  height: 6px;
}
.tab-box::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.tab-box::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}
.tab-box::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}
.tab-box .safe_width {
  display: flex;
  /* align-items: center;
  width: max-content; */
  height: 100%;
}
/* 固定 tab-box 样式 */
.tab-box.fixed {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 999;
  margin-top: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* 详情页的 detail-link 样式 */
.detail-link {
  background: #fff;
  z-index: 999;
  margin-top: 40px;
  margin-bottom: 20px;
  padding: 0;
  display: flex;
  /*border-bottom: 1px solid #e0e0e0;*/
}
.detail-link li {
  padding: 15px 20px;
  margin-right: 30px;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.detail-link li.active {
  color: #1885ed;
  border-bottom-color: #1885ed;
}
/* 固定时的 detail-link 样式 */
.detail-link.fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.tab-detail-box {
  margin-top: 0;
}
.tab-nav {
  display: flex;
  align-items: center;
}
.tab-nav a {
  padding: 0 24px;
  border-top: 4px solid #f2f3f5;
  font-weight: bold;
  font-size: 18px;
  white-space: nowrap;
  display: block;
  line-height: 69px;
  margin-right: 28px;
}
.tab-nav-pro a {
  border-top: 4px solid #f8f8f8;
}

.tab-detail-box a {
  border-top: none;
  border-bottom: 4px solid #f2f3f5;
}

.tab-box .tab-nav a:hover {
  border-color: #1885ed;
  color: #1885ed;
  background: #fff;
}
.tab-box .tab-nav .active a {
  border-color: #1885ed;
  color: #1885ed;
  background: #fff;
}

.hot-recommend {
  flex: 1;
  position: sticky;
  top: 128px;
  align-self: flex-start;
}

.hot-recommend h2 {
  font-weight: bold;
  font-size: 22px;
  margin-bottom: 20px;
}

.hot-content {
  padding: 38px 21px;
  background: #f7f7f7;
}

.hot-content a {
  display: block;
  font-size: 16px;
  color: #000000;
  line-height: 25px;
  margin-bottom: 27px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.hot-content a:hover {
  color: #1885ed;
}

.hot-content a:last-child {
  margin-bottom: 0;
}
@media screen and (max-width: 1400px) {
  .tab-nav a {
    padding: 0 18px;
    font-size: 18px;
    margin-right: unset;
  }
}
@media screen and (max-width: 1175px) {
  .tab-nav a {
    padding: 0 15px;

    font-size: 18px;
  }
}
@media screen and (max-width: 1038px) {
  .tab-nav a {
    padding: 0 10px;

    font-size: 18px;
  }
}

@media screen and (max-width: 768px) {
  .phone-re {
    display: flex;
    flex-direction: column-reverse;
    overflow: hidden;
  }
  .tab-box {
    height: 0.98rem;
    margin-top: 0.45rem;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
  }

  .tab-box::-webkit-scrollbar {
    display: none;
  }

  .tab-box .safe_width {
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tab-box .safe_width::-webkit-scrollbar {
    display: none;
  }

  .tab-nav {
    width: max-content;
    overflow: visible;
    white-space: nowrap;
    display: inline-flex;
  }

  .tab-nav li {
    display: inline-block;
    white-space: nowrap;
  }

  .tab-nav a {
    padding: 0 0.43rem;
    font-size: 0.34rem;
    line-height: 0.98rem;
    overflow: unset;
    text-overflow: unset;
    white-space: nowrap;
    display: block;
  }
  .phone-re .tab-detail-box {
    margin-top: 0;
  }
  /* 默认状态下：显示border-top */
  .phone-re .tab-detail-box a {
    border-top: 4px solid #f8f8f8;
    border-bottom: none;
  }

  /* 固定状态下：显示border-bottom */
  .tab-box.fixed .phone-re .tab-detail-box a {
    border-top: none;
    border-bottom: 4px solid #f8f8f8;
  }

  .tab-box .tab-nav a:hover {
    border-color: none;
    border: none;
    color: unset;
    background: unset;
  }

  /* 默认状态下：非product页面显示border-top */
  .tab-box .tab-nav:not(.tab-nav-pro) .active a {
    border-color: #1885ed;
    border-top: 4px solid #1885ed;
    border-bottom: none;
    color: #1885ed;
    background: #fff;
  }

  /* 固定状态下：非product页面显示border-bottom */
  .tab-box.fixed .tab-nav:not(.tab-nav-pro) .active a {
    border-color: #1885ed;
    border-top: none;
    border-bottom: 4px solid #1885ed;
    color: #1885ed;
    background: #fff;
  }

  /* product页面始终保持原有border-top样式 */
  .tab-box .tab-nav.tab-nav-pro .active a {
    border-color: #1885ed;
    border-top: 4px solid #1885ed;
    border-bottom: none;
    color: #1885ed;
    background: #fff;
  }

  .hot-recommend {
    position: unset;
    top: unset;
    margin-top: 0.68rem;
  }

  .hot-recommend h2 {
    font-size: 0.38rem;
    margin-bottom: 0.37rem;
  }

  .hot-content {
    padding: 0.53rem 0.37rem;
  }

  .hot-content a {
    font-size: 0.28rem;
    margin-bottom: 0.24rem;
    line-height: 0.5rem;
  }
}
