﻿/* rem适配基础设置 */
html {
  font-size: 16px; /* 基准字体大小 */
  background: #000;
  color: #fff;
}
/* 根据屏幕宽度动态调整rem基准值 */
@media screen and (max-width: 768px) {
  html {
    font-size: calc(16px * (100vw / 768)); /* 动态调整字体大小 */
  }
}
@media screen and (max-width: 480px) {
  html {
    font-size: calc(16px * (100vw / 480));
  }
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  overflow-y: auto;
}
a,a:link,a:visited,a:hover,a:active{
    text-decoration: none;
    color:inherit;
}
.header {
  padding: 0 60px;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
  gap: 8px;
  background: #000;
}
.top-back-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}
.bk-back-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  object-fit: contain; /* scale full icon into 24x24 box */
}
.searchInputBox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
  height: 36px;
  border-radius: 20px;
  background: rgba(152, 152, 152, 0.20);
  gap: 8px;
  flex: 1;
}
.searchInput {
  border: none; /* 去除边框 */
  border-radius: 4px;
  flex: 1;
  outline: none; /* 去除聚焦时的轮廓 */
  background:transparent;
  color:#fff;
  width: 79.2%;
}
.searchIcon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.mobileClearIcon {
  width: 24px;
  height: 24px;
  display: none; /* 由 JS 控制显示/隐藏 */
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobileClearIcon img {
  width: 100%;
  height: 100%;
  display: block;
}
.cancelBtn {
  font-size: 14px;
  width: 30px;
}
.main {
  padding: 12px 0px;
  box-sizing: border-box;
  gap:0px 10px;
}

.pcNav {
  display: none !important;
}
.mobile-nav {
  display: none !important;
}
.pcHeader {
  display: none;
}
.grid-box {
  margin-top: 18px;
}
.top-and-banners {
  margin-bottom: 50px;
}
.pc-grid-box {
  display: none;
}
.grid-box {
  padding: 0 16px;
  box-sizing: border-box;
}
.tabBox {
  width: 100%;
  padding: 0 16px 8px;
  box-sizing: border-box;
  margin: 20px 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
}
.tabBox .tabItem {
  flex: 1;
  height: 100%;
  font-size: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.50);
}
.tabBox .tabItem .tabLine {
  width: 12px;
  height: 4px;
  background:  #EB7332;
  border-radius: 4px;
  position: absolute;
  bottom: -8px;
  display: none;
}
.tabActive {
  color: #fff !important;
}
.tabActive .tabLine {
  display: block !important;
}
@media screen and (max-width: 824px) {
  main {
    padding:0px !important;
  }
  .header{
    /* top: 6px !important; */
    padding: 0 16px !important;
  }
}

@media screen and (min-width: 768px) {
  .tabBox {
    display: none;
  }
  /* body {
    padding:  0 100px;
    box-sizing: border-box;
  } */
  .main {
    display: flex;
    justify-content: space-between;
    /* padding: 60px; */
  }
  /* PC端：三个 rankBox 等分屏幕宽度（覆盖 rankBox.css 里的 min-width: 480px） */
  .main > .rankBox {
    flex: 1 1 0;
    min-width: 0;
  }
  .pcHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 41px;
  }
  .pcHeader img {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
  }
  .pcHeader h1 {
    font-size: 30px;
  }
  .search-page-main .pc-grid-box {
    display: block;
    box-sizing: border-box;
    margin-top: 16px;
    padding-top: 12px;
  }
}

@media screen and (min-width: 1367px) {
  .pcNav {
    display: flex !important;
  }
  .header {
    display: none !important;
  }
  main.search-page-main {
    padding-top: calc(62px + 16px);
    box-sizing: border-box;
  }
}

.main .rankBox .rankList.activeList {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
}
.main .rankBox .rankList.activeList > .rankItem {
  min-width: 0;
}
@media screen and (min-width: 768px) {
  .main .rankBox .rankList.activeList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}