@import url("./resourceCenter.css");

.resource-center-page .rc-board {
  padding-top: 21px;
}
.resource-center-page .rc-toolbar {
    margin-bottom: 33px;
}
.resource-center-page .rc-side-box {
   margin-bottom: 53px;
}
.rc-side-box rc-hot-doc-box

/* 去掉左侧主内容区顶部“占位感”：压缩工具栏下间距 */
.resource-center-page .rc-hero-desc {
  font-size: 18px;
  color: #666666;
  line-height: 28px !important;
}

/* banner 文案：PC/移动端不同 */
.resource-center-page .rc-hero-desc-mobile {
  display: none;
}

@media (max-width: 1024px) {
  /* 移动端统一顶部间距 */
  .resource-center-page .rc-wrap.rc-board {
    padding-top: 1.2rem; /* 45px @ 1rem=37.5px */
  }
  .resource-center-page .rc-hero-desc-desktop {
    display: none;
  }
  .resource-center-page .rc-hero-desc-mobile {
    display: block;
    max-width: none;
    box-sizing: border-box;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    margin-top: 0.453rem;  /* 17px @ 1rem=37.5px */
    margin-bottom: 0.8rem !important; /* 30px @ 1rem=37.5px */
    margin-left: 0;
    margin-right: 0;
  }
}

/* 列表区：截图同款“左图右文”文章列表（PC/移动端响应式） */

.resource-center-page .rc-article-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 33px;
  padding: 24px 0;
  border-bottom: 1px solid #eeeeee;
  align-items: start;
}

.resource-center-page .rc-article-thumb {
  position: relative;
  display: block;
  height: 137px;
  font-size: 16px;
  line-height: 23px;
  text-shadow: 0px 3px 6px rgba(0,0,0,0.16);
  text-align: center;
  overflow: hidden;
  text-decoration: none;
  background: #2f76ff center center no-repeat;
  background-size: cover;
  padding: 34px 21px;
  color: #fff;
}

/* 背景图由 article.js 随机分配（相邻不重复） */

.resource-center-page .rc-article-rank {
  position: absolute;
  left: 14px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2f76ff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rc-hot-doc-box .rc-side-head {
    margin-bottom: 10px;
}

.resource-center-page .rc-article-thumb-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

.resource-center-page .rc-article-main {
  min-width: 0;
}

.resource-center-page .rc-article-title {
  margin: 3px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #333333;
}

.resource-center-page .rc-article-title a {
  text-decoration: none;
  color: inherit;
}

.resource-center-page .rc-article-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.resource-center-page .rc-article-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 4px 10px;
  background: #F0F4FC;
  color: #4983f2;
  font-size: 12px;
}

.resource-center-page .rc-article-desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 23px;
  color: #333333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.resource-center-page .rc-article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #999999;
  line-height: 1;
}

.resource-center-page .rc-clickable-item {
  cursor: pointer;
}

.resource-center-page .rc-article-date,
.resource-center-page .rc-article-view {
  display: inline-flex;
  align-items: center;
}

.resource-center-page .rc-article-date::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 3px;
  background: url("../img/knowledge-article-icon-time@2x.png") center center no-repeat;
  background-size: 16px 16px;
}

.resource-center-page .rc-article-view::before {
  content: "";
  width: 19px;
  height: 16px;
  margin-right: 3px;
  background: url("../img/knowledge-article-icon-read@2x.png") center center no-repeat;
  background-size: 19px 16px;
}

.resource-center-page .rc-article-more {
  margin-left: auto;
  text-decoration: none;
  color: #1264e2;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .resource-center-page .rc-article-list {
    border-top: 0;
    padding: 0 0.267rem; /* 左右 10px */
    box-sizing: border-box;
  }

  .resource-center-page .rc-article-item {
    grid-template-columns: 3.133rem minmax(0, 1fr); /* 117.5px */
    gap: 0.4rem;
    padding: 0.4rem 0;      /* 上下边距 15px */
    align-items: center;
  }

  .resource-center-page .rc-article-thumb {
    width: 3.133rem;   /* 117.5px */
    height: 2.147rem;  /* 80.5px */
    padding: 0;
    border-radius: 0.107rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* 让标题贴着图片上边界，meta 贴着图片下边界 */
  .resource-center-page .rc-article-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 2.147rem; /* 与缩略图高度一致，便于上下对齐 */
  }

  .resource-center-page .rc-article-rank {
    left: 0.32rem;
    top: 0.32rem;
    width: 0.64rem;
    height: 0.64rem;
    font-size: 0.373rem;
  }

  .resource-center-page .rc-article-thumb-title {
    font-size: 0.293rem;   /* 11px */
    line-height: 0.427rem; /* 16px */
    font-weight: 400;
    text-shadow: 0 0.04rem 0.08rem rgba(0, 0, 0, 0.16); /* 0 1.5px 3px */
  }

  .resource-center-page .rc-article-title {
    font-size: 0.4rem;           /* 15px */
    line-height: 0.52rem;        /* 19.5px */
    margin: 0.053rem 0 0.187rem; /* 上2px 下7px */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  /* 移动端：按截图只保留“标题 + 元信息”两行 */
  .resource-center-page .rc-article-tags,
  .resource-center-page .rc-article-desc,
  .resource-center-page .rc-article-more {
    display: none;
  }

  .resource-center-page .rc-article-meta {
    gap: 0.32rem;
    font-size: 0.32rem;
    color: #999999;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .resource-center-page .rc-article-date::before {
    width: 0.4rem;
    height: 0.4rem;
    background-size: 0.4rem 0.4rem;
    margin-right: 0.107rem;
  }
  .resource-center-page .rc-article-view::before {
    width: 0.48rem;
    height: 0.4rem;
    background-size: 0.48rem 0.4rem;
    margin-right: 0.107rem;
  }

  /* meta 图标与文本更贴合截图 */
  .resource-center-page .rc-article-date::before,
  .resource-center-page .rc-article-view::before {
    margin-right: 0.08rem;
  }
}

/* 右侧：热门文档（与截图一致） */
.resource-center-page .rc-hot-doc-box .rc-doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-center-page .rc-hot-doc-box .rc-doc-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 21px;
  align-items: center;
  padding: 10px 15px;
  border-radius: 5px;
  background: #f8f8f8;
  text-decoration: none;
  color: inherit;
}

.resource-center-page .rc-hot-doc-box .rc-doc-icon {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.resource-center-page .rc-hot-doc-box .rc-doc-info {
  min-width: 0;
}

.resource-center-page .rc-hot-doc-box .rc-doc-title {
  font-size: 14px;
  color: #333333;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-center-page .rc-hot-doc-box .rc-doc-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resource-center-page .rc-hot-doc-box .rc-doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 13px;
  border-radius: 3px;
  background: #009F1E;
  color: #fff;
  font-size: 12px;
}

.resource-center-page .rc-hot-doc-box .rc-doc-view {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #999999;
  line-height: 1;
}

.resource-center-page .rc-hot-doc-box .rc-doc-view::before {
  content: "";
  width: 19px;
  height: 16px;
  margin-right: 4px;
  background: url("../img/knowledge-article-icon-read@2x.png") center center no-repeat;
  background-size: 19px 16px;
}

/* 仅桌面端使用的 banner 描述间距，避免影响移动端 */
.resource-center-page .rc-hero-desc {
  margin-bottom: 0;
}
.resource-center-page .rc-hero-desc-desktop {
  margin-bottom: 53px;
}
.resource-center-page .rc-hero {
   background: url('../img/knowledge-article-banner-bg2@2x.png') center center no-repeat;
   background-size: cover;
}

@import url("./resourceCenter.css");

.resource-center-page .rc-board {
  padding-top: 45px;
}
.resource-center-page .rc-side-box {
   margin-bottom: 30px;
}
.rc-side-box rc-hot-doc-box

/* 去掉左侧主内容区顶部“占位感”：压缩工具栏下间距 */
.resource-center-page .rc-hero-desc {
  font-size: 18px;
  color: #666666;
  line-height: 28px !important;
}

/* banner 文案：PC/移动端不同 */
.resource-center-page .rc-hero-desc-mobile {
  display: none;
}

@media (max-width: 1024px) {
  /* 移动端统一顶部间距 */
  .resource-center-page .rc-wrap.rc-board {
    padding-top: 0.266667rem; /* 45px @ 1rem=37.5px */
  }
  .resource-center-page .rc-hero-desc-desktop {
    display: none;
  }
  .resource-center-page .rc-hero-desc-mobile {
    display: block;
    max-width: none;
    box-sizing: border-box;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    margin-top: 0.453rem;  /* 17px @ 1rem=37.5px */
    margin-bottom: 0.8rem !important; /* 30px @ 1rem=37.5px */
    margin-left: 0;
    margin-right: 0;
  }
}

/* 列表区：截图同款“左图右文”文章列表（PC/移动端响应式） */

.resource-center-page .rc-article-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 33px;
  padding: 24px 0;
  border-bottom: 1px solid #eeeeee;
  align-items: start;
}

.resource-center-page .rc-article-thumb {
  position: relative;
  display: block;
  height: 137px;
  font-size: 16px;
  line-height: 23px;
  border-radius: 5px;
  text-shadow: 0px 3px 6px rgba(0,0,0,0.16);
  text-align: center;
  overflow: hidden;
  text-decoration: none;
  background: #2f76ff center center no-repeat;
  background-size: cover;
  padding: 34px 21px;
  color: #fff;
}

/* 背景图由 article.js 随机分配（相邻不重复） */

.resource-center-page .rc-article-rank {
  position: absolute;
  left: 14px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2f76ff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rc-hot-doc-box .rc-side-head {
    margin-bottom: 10px;
}

.resource-center-page .rc-article-thumb-title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

.resource-center-page .rc-article-main {
  min-width: 0;
}

.resource-center-page .rc-article-title {
  margin: 3px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #333333;
}

.resource-center-page .rc-article-title a {
  text-decoration: none;
  color: inherit;
}

.resource-center-page .rc-article-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.resource-center-page .rc-article-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 4px 10px;
  background: #F0F4FC;
  color: #4983f2;
  font-size: 12px;
}

.resource-center-page .rc-article-desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 23px;
  color: #333333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.resource-center-page .rc-article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #999999;
  line-height: 1;
}

.resource-center-page .rc-article-date,
.resource-center-page .rc-article-view {
  display: inline-flex;
  align-items: center;
}

.resource-center-page .rc-article-date::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 3px;
  background: url("../img/knowledge-article-icon-time@2x.png") center center no-repeat;
  background-size: 16px 16px;
}

.resource-center-page .rc-article-view::before {
  content: "";
  width: 19px;
  height: 16px;
  margin-right: 3px;
  background: url("../img/knowledge-article-icon-read@2x.png") center center no-repeat;
  background-size: 19px 16px;
}

.resource-center-page .rc-article-more {
  margin-left: auto;
  text-decoration: none;
  color: #1264e2;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .resource-center-page .rc-article-list {
    border-top: 0;
    padding: 0 0.267rem; /* 左右 10px */
    box-sizing: border-box;
  }

  .resource-center-page .rc-article-item {
    grid-template-columns: 3.133rem minmax(0, 1fr); /* 117.5px */
    gap: 0.4rem;            /* 内边距清零 */
    padding: 0.4rem 0;      /* 上下边距 15px */
    align-items: center;
  }

  .resource-center-page .rc-article-thumb {
    width: 3.133rem;   /* 117.5px */
    height: 2.147rem;  /* 80.5px */
    padding: 0;
    border-radius: 0.173333rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* 让标题贴着图片上边界，meta 贴着图片下边界 */
  .resource-center-page .rc-article-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 2.147rem; /* 与缩略图高度一致，便于上下对齐 */
  }

  .resource-center-page .rc-article-rank {
    left: 0.32rem;
    top: 0.32rem;
    width: 0.64rem;
    height: 0.64rem;
    font-size: 0.373rem;
  }

  .resource-center-page .rc-article-thumb-title {
    font-size: 0.293rem;   /* 11px */
    line-height: 0.427rem; /* 16px */
    font-weight: bold;
    text-shadow: 0 0.04rem 0.08rem rgba(0, 0, 0, 0.16); /* 0 1.5px 3px */
  }

  .resource-center-page .rc-article-title {
    font-size: 0.4rem;           /* 15px */
    line-height: 0.52rem;        /* 19.5px */
    margin: 0.053rem 0 0.187rem; /* 上2px 下7px */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  /* 移动端：按截图只保留“标题 + 元信息”两行 */
  .resource-center-page .rc-article-tags,
  .resource-center-page .rc-article-desc,
  .resource-center-page .rc-article-more {
    display: none;
  }

  .resource-center-page .rc-article-meta {
    gap: 0.32rem;
    font-size: 0.32rem;
    color: #999999;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .resource-center-page .rc-article-date::before {
    width: 0.4rem;
    height: 0.4rem;
    background-size: 0.4rem 0.4rem;
    margin-right: 0.107rem;
  }
  .resource-center-page .rc-article-view::before {
    width: 0.48rem;
    height: 0.4rem;
    background-size: 0.48rem 0.4rem;
    margin-right: 0.107rem;
  }

  /* meta 图标与文本更贴合截图 */
  .resource-center-page .rc-article-date::before,
  .resource-center-page .rc-article-view::before {
    margin-right: 0.08rem;
  }
}

/* 右侧：热门文档（与截图一致） */
.resource-center-page .rc-hot-doc-box .rc-doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-center-page .rc-hot-doc-box .rc-doc-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 21px;
  align-items: center;
  padding: 10px 15px;
  border-radius: 5px;
  background: #f8f8f8;
  text-decoration: none;
  color: inherit;
}

.resource-center-page .rc-hot-doc-box .rc-doc-icon {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.resource-center-page .rc-hot-doc-box .rc-doc-info {
  min-width: 0;
}

.resource-center-page .rc-hot-doc-box .rc-doc-title {
  font-size: 14px;
  color: #333333;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-center-page .rc-hot-doc-box .rc-doc-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resource-center-page .rc-hot-doc-box .rc-doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 13px;
  border-radius: 3px;
  background: #009F1E;
  color: #fff;
  font-size: 12px;
}

.resource-center-page .rc-hot-doc-box .rc-doc-view {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #999999;
  line-height: 1;
}

.resource-center-page .rc-hot-doc-box .rc-doc-view::before {
  content: "";
  width: 19px;
  height: 16px;
  margin-right: 4px;
  background: url("../img/knowledge-article-icon-read@2x.png") center center no-repeat;
  background-size: 19px 16px;
}
/* 仅桌面端使用的 banner 描述间距，避免影响移动端 */
.resource-center-page .rc-hero-desc {
  margin-bottom: 0;
}
.resource-center-page .rc-hero-desc-desktop {
  margin-bottom: 53px;
  font-size: 18px;
  color: #666666;
  font-weight: 100;
  line-height: 28px;
}
.resource-center-page .rc-hero {
   background: url('../img/knowledge-article-banner-bg2@2x.png') center center no-repeat;
   background-size: cover;
}