:root {
  --primary-color: #3d86f8;
}
body {
  overflow-y: auto;
}
.g-header {
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 0.3rem;
  background: #fff;
  box-shadow: 0px 2px 15px 0px rgba(220, 220, 220, 0.9);
}
.g-header .g-header-search {
  width: 0.44rem;
  height: 0.44rem;
  background: url("https://resource.xiaoduxz.com/TLimages2023/xiaoduxz/mdownload/images/index_icon.png")
    no-repeat;
  background-position: -0.08rem -1.06rem;
  background-size: 2rem 1.5rem;
}

.g-header-nav {
  margin-top: 0.3rem;
}
.g-header-nav--active {
  position: relative;
  font-weight: bold;
}
.g-header-nav--active::after {
  display: block;
  content: "";
  position: absolute;
  left: 0.05rem;
  bottom: -0.13rem;
  width: 0.4rem;
  height: 0.06rem;
  background-color: #12a6ff;
  border-radius: 0.02rem;
}
.g-container {
  padding: 0.4rem;
}

.g-bottom-indicator {
  /* 基础布局 */
  width: 100%;
  text-align: center;
  padding: 16px 0; /* 上下间距 */

  font-size: 0.24rem;
  color: #c9c8c8;

  /* 线条样式 */
  position: relative;
}

.g-bottom-indicator::before,
.g-bottom-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%; /* 线条长度，可根据需要调整 */
  height: 1px;
  background-color: #e6e6e6; /* 浅灰色线条 */
}

.g-bottom-indicator::before {
  left: 0; /* 左侧线条 */
}

.g-bottom-indicator::after {
  right: 0; /* 右侧线条 */
}
.g-footer {
  background-color: #333333;
  padding-block: 0.3rem;
  color: #7f7f7f;
  text-align: center;
}

.g-footer p {
  margin-block: 0.15rem;
}

.g-footer-gapline {
  margin: 0 0.22rem;
  width: 1px;
  height: 0.22rem;
  margin-bottom: 0.04rem;
  background: #7f7f7f;
  display: inline-block;
  vertical-align: middle;
}

.g-text-primary {
  color: var(--primary-color);
}
.g-line-gap {
  width: 100%;
  height: 0.3rem;
  background-color: #f5f5f5;
}

/******** 搜索弹窗 ********/
.g-search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: #ffffff;
  max-width: 750px;
  margin: 0 auto;

  z-index: 99;
}
.g-search-model-close {
  width: 0.22rem;
  height: 0.4rem;
  background: url("https://resource.xiaoduxz.com/TLimages2023/xiaoduxz/mdownload/images/index_icon.png")
    no-repeat;
  background-position: -1.02rem -1.08rem;
  background-size: 2rem 1.5rem;
  cursor: pointer;
  position: relative;
}

.g-search-model-close::before {
  position: absolute;
  top: -5px;
  right: -5px;
  left: -5px;
  bottom: -5px;
  content: "";
}
.g-search-model-input-box {
  position: relative;
  width: 5.3rem;
  height: 0.76rem;
  background-color: #f1f1f1;
  border-radius: 0.5rem;
  padding-inline: 0.46rem 0.9rem;
}
.g-search-model-input-box::after {
  position: absolute;
  right: 0.4rem;
  top: 0.15rem;
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  background: url("https://resource.xiaoduxz.com/TLimages2023/xiaoduxz/mdownload/images/index_icon.png")
    no-repeat;
  background-position: -0.08rem -1.06rem;
  background-size: 2rem 1.5rem;
}
.g-search-model-input {
  width: 100%;
  height: 100%;
}
.g-search-model-input::placeholder {
  color: #b1b1b1;
  letter-spacing: 0.01rem;
  /* font-size: 0.32rem; */
}

.g-search-model-action {
  letter-spacing: 0.01rem;
  color: #787878;
}

.g-search-modal-result-empty {
  display: none;
  text-align: center;
  margin-top: 0.5rem;
}
/******** 搜索弹窗 END ********/

/******** 搜索结果 ********/
.g-search-result {
  display: flex;
  flex-wrap: wrap;
}

.g-search-result li {
  height: 0.6rem;
  background-color: #f5f6fa;
  border-radius: 0.1rem;
  margin-right: 0.14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
  padding: 0.15rem 0.3rem;
}
/******** 搜索结果 END ********/

/** 软件卡片 */

.g-software-width {
  width: 1.2rem;
  min-width: 1.2rem;
  margin-top: 0.2rem;
  margin-right: 0.42rem;
}
.g-software--span4,
.g-software--span3 {
  display: flex;
  flex-wrap: wrap;
}
.g-software--span4 .g-software-width {
  margin-right: calc((100% - 4 * 1.2rem) / 3);
}
.g-software--span4 .g-software-width:nth-of-type(4n) {
  margin-right: 0;
}
.g-software--span3 .g-software-width {
  margin-right: calc((100% - 3 * 1.2rem) / 2);
}
.g-software--span3 .g-software-width:nth-of-type(3n) {
  margin-right: 0;
}
.g-software-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.g-software-img {
  width: 1.2rem;
  height: 1.2rem;
}
.g-software-date,
.g-software-desc {
  display: inline-block;
  color: #9b9b9b;
  width: 100%;
  text-align: center;
  font-size: 0.22rem;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-software-info {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  font-size: 0.22rem;
  color: #787878;
  margin-bottom: 0.08rem;
}
.g-software-info span {
}
.g-software-info span + span::before {
  content: "";
  display: inline-block;
  width: 0.02rem;
  height: 0.15rem;
  margin: 0 0.1rem;
  background-color: #e5e5e5;
  padding-top: 2px;
}

.g-software-name {
  font-size: 0.26rem;
  color: #5c5c5c;
  width: 100%;
  margin-block: 0.1rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-software-width--horizontal .g-software-name {
  text-align: left;
  font-size: 0.32rem;
}
.g-software-width--horizontal .g-software-desc {
  text-align: left;
}
.g-software-width--horizontal {
  margin-top: 0.2rem;
}
.g-software-width--horizontal + .g-software-width--horizontal {
  border-top: 1px solid #eeeeee;
  padding-top: 0.2rem;
}
.g-software-link--horizontal {
  display: flex;
  align-items: center;
}
.g-software-content--horizontal {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  padding-left: 0.2rem;
  width: 100%;
  overflow: hidden;
}
.g-software-content-main--horizontal {
  padding-right: 0.2rem;
  flex: 1;
  overflow: hidden;
}

.g-software-rank {
  width: 0.48rem;
  height: 0.56rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.32rem;
  margin-right: 0.1rem;
  color: #a4a4a4;
}

.g-software-rank--first {
  background: url("https://resource.xiaoduxz.com/TLimages2023/xiaoduxz/mdownload/images/index_icon.png")
    no-repeat;
  background-position: -0.06rem -0.44rem;
  background-size: 2rem 1.5rem;
  color: #fff;
  margin-top: -0.04rem;
  padding-top: 0.12rem;
}
.g-software-rank--second {
  background: url("https://resource.xiaoduxz.com/TLimages2023/xiaoduxz/mdownload/images/index_icon.png")
    no-repeat;
  background-position: -0.75rem -0.44rem;
  background-size: 2rem 1.5rem;
  color: #fff;
  margin-top: -0.04rem;
  padding-top: 0.12rem;
}
.g-software-rank--third {
  background: url("https://resource.xiaoduxz.com/TLimages2023/xiaoduxz/mdownload/images/index_icon.png")
    no-repeat;
  background-position: -1.43rem -0.44rem;
  background-size: 2rem 1.5rem;
  color: #fff;
  margin-top: -0.04rem;
  padding-top: 0.12rem;
}

/** 软件卡片 END */

/* 标题 */

.g-title--text {
  display: inline-block;
  position: relative;
  z-index: 1;
  color: #2c2c2c;
  font-size: 0.4rem;
  margin-bottom: 0.2rem;
}
.g-title--text::before {
  position: absolute;
  content: "";
  left: 50%;
  bottom: -0.04rem;
  transform: translateX(-50%);
  width: calc(100% + 0.2rem);
  height: 0.2rem;
  background-image: linear-gradient(90deg, #b8f1ff 0%, #dcfabb 100%);
  background-blend-mode: normal, normal;
  border-radius: 0.1rem;
  z-index: -1;
}
/* 标题 END */

/** 按钮 */
.g-btn {
  height: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.14rem 0.35rem;
  color: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.g-btn-primary {
  background-image: linear-gradient(90deg, #40d872 0%, #01ca44 100%),
    linear-gradient(#40d872, #40d872);
}

.g-btn-more {
  background-image: linear-gradient(90deg, #ebf4f7 9%, #e8f5f9 100%),
    linear-gradient(#f5f5f5, #f5f5f5);
  color: #2993ff;
  font-size: 0.22rem;
  padding: 0.1rem 0.24rem;
  height: 0.4rem;
}
/** 按钮 END */

/** 标签 */
.g-tab {
  height: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
}
.g-tab-title {
  display: flex;
  align-items: center;
  color: #787878;
  font-size: 0.4rem;
}
.g-tab-title + .g-tab-title::before {
  display: inline-block;
  content: "";
  width: 0.02rem;
  height: 0.2rem;
  background-color: #2993ff;
  margin: 0 0.3rem;
}
.g-tab-title--active {
  color: #12a6ff;
}
.g-tab-content-item {
  display: none;
}

.g-tab-content-item--active {
  display: block;
}
/** 标签 END */

/** 分类 固定一行四列， 如后续有其他的列数在此修改*/
.g-category {
  display: flex;
  flex-wrap: wrap;
}
.g-category-title {
  width: 1.56rem;
  height: 0.6rem;
  margin-right: calc((100% - 4 * 1.56rem) / 3);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(90deg, #ebf4f7 9%, #e8f5f9 100%),
    linear-gradient(#f5f5f5, #f5f5f5);
  border-radius: 0.5rem;
  cursor: pointer;
}
.g-category .g-category-title:nth-of-type(4n) {
  margin-right: 0;
}
.g-category-title--active {
  background-image: linear-gradient(65deg, #b5efff 0%, #dffbb5 100%),
    linear-gradient(#f5f5f5, #f5f5f5);
  color: #313131;
}

.g-category-content-item {
  display: none;
}

.g-category-content-item--active {
  display: block;
}
/** 分类 END */

/** 文章卡片 */
.g-article {
  margin-top: 0.2rem;
}
.g-article + .g-article {
  border-top: 1px solid #eeeeee;
  padding-top: 0.2rem;
}
.g-article-title {
  font-size: 0.3rem;
  color: #2c2c2c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: normal;
}
.g-article-desc {
  font-size: 0.24rem;
  line-height: 0.4rem;
  color: #787878;
  margin-top: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.g-article-info {
  display: flex;
  margin-top: 0.2rem;
  color: #787878;
  font-size: 0.22rem;
  line-height: 1;
}

.g-article-date,
.g-article-author {
  display: flex;
  align-items: center;

  line-height: 1;
  margin-right: 0.4rem;
}
.g-article-date::before {
  content: "";
  display: inline-block;
  width: 0.22rem;
  height: 0.22rem;
  background: url("https://resource.xiaoduxz.com/TLimages2023/xiaoduxz/mdownload/images/index_icon.png")
    no-repeat;
  background-position: -0.12rem -0.12rem;
  background-size: 2rem 1.5rem;
  margin-right: 0.1rem;
}
.g-article-author::before {
  content: "";
  display: inline-block;
  width: 0.22rem;
  height: 0.22rem;
  background: url("https://resource.xiaoduxz.com/TLimages2023/xiaoduxz/mdownload/images/index_icon.png")
    no-repeat;
  background-position: -0.45rem -0.12rem;
  background-size: 2rem 1.5rem;
  margin-right: 0.1rem;
}
/* 文章卡片 END */

/** 合辑卡片 */
.g-collection-title {
  font-weight: normal;
  font-size: 0.3rem;
  font-stretch: normal;
  line-height: 0.42rem;
  color: #2c2c2c;
}
.g-collection-img {
  width: 6.4rem;
  height: 3.2rem;
  border-radius: 0.1rem;
  margin-top: 0.2rem;
}
.g-collection-item {
  margin-top: 0.2rem;
}
.g-collection-item + .g-collection-item {
  border-top: #eeeeee 1px solid;
  padding-top: 0.2rem;
}

/** 合辑卡片 END */

/** 面包屑导航 */
.g-navigation {
  font-size: 0.24rem;
  color: #535353;
  margin-top: 0.35rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.g-navigation span {
  margin: 0 0.1rem;
}
/** 面包屑导航  END */
/* 返回顶部 */
.g-back-top {
  width: 0.9rem;
  height: 0.9rem;
  position: fixed;
  right: 0.3rem;
  bottom: 0.9rem;
  visibility: hidden;
  margin-bottom: -200px;
  background: url("../images/back.png") no-repeat;
  background-size: 100% 100%;
  border-radius: 50%;
  z-index: 1000;
  transition: all ease-in-out 0.3s;
}

.g-back-top.show {
  visibility: visible;
  margin-bottom: 0;
}

/** 404 页面 */
.g-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 3rem;
}
.g-404-title {
  font-size: 0.3rem;
  color: #494949;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}
.g-404-img {
  width: 4rem;
}
.g-404-button {
  width: 1.77rem;
  margin: 0 0.3rem;
  font-size: 0.2rem;
  color: #fff;
  text-align: center;
  line-height: 0.5rem;
  border: #12a6ff solid 1px;
  background: #12a6ff;
  border-radius: 0.05rem;
  display: inline-block;
}
.g-404-backIndex {
  display: inline-block;
  color: #12a6ff;
  background: #f0f9ff;
}
/** 404 页面 END */
