/* 引入公共样式 */
@import url(./base.css);

/* 内容区域content */
.rnl-cart {
  position: relative;
  z-index: 1;
  margin-top: -7.5%;
}

/* 内容头部区域 */
.rnl-cart .header {
  font-size: 1.5rem;
  font-weight: 500;
  /* font-style: italic; */
  color: var(--color-white);
  margin-bottom: 12px;
}
.rnl-cart .visitor-information-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px;
  line-height: 1.6;
  width: fit-content;
  background-color: var(--head-bg);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  color: var(--text-color);
}
.rnl-cart .visitor-information-wrap > span,
.rnl-cart .visitor-information-wrap > div > span {
  color: #ff0000;
  opacity: .9;
}
.rnl-cart .visitor-information-wrap > div {
  margin-left: 18px;
}

.content-container {
  margin-top: 28px;
  margin-bottom: 20px;
}

.cart-grid {
  display: flex;
  justify-content: space-around;
  -webkit-gap: calc(.8rem + 16px);
  gap: calc(.8rem + 16px);
}

.sidebar .rnl_card-lightblue,
.article-list .rnl-card-article {
  background: var(--card-bg);
}

.content-container .article-list {
  width: 72%;
}

.article-list .article-list-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  -webkit-gap: 20px;
  grid-gap: 20px;
  gap: 20px;
}

/* 每篇文章    */
.article-list .article-list-wrap .rnl-card-article {
  position: relative;
  overflow: hidden;
  /* width: 48%; */
  border-radius: var(--radius);
  transition: all .3s;
}

/* 文章p标签字体大小 */
.article-content {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-size: 16px;
}


/* 文章 卡片特效开始 */
.rnl-card-article:has(.article-content-wrap:hover) {
  box-shadow: 0px 8px 8px rgba(0, 0, 0, .1);
  transform: translateY(-4px);
}

.rnl-card-article .article-caver {
  overflow: hidden;
  display: block;
  width: 100%;
}

.article-caver-img {
  display: block;
  position: relative;
  background-position: 50% 50%;
  background-size: cover;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  /* object-fit: cover; */
  aspect-ratio: 16 / 9;
  transition: all .3s;
}
.article-caver-img.unset {
  object-fit: unset !important;
}

/* 封面hover */
.rnl-card-article .article-caver:hover .article-caver-img {
  transform: scale(1.1);
}
/* 隐藏 img desc */
.rnl-card-article .article-caver:hover .img-desc-wrap {
  display: none !important;
}

/* 卡片特效结束 */

.article-content-wrap {
  padding: 18px;
  min-height: 44%;
}

.article-content-wrap h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 8px 0;
  font-size: 16px;
  font-weight: 700;
}

.article-content-wrap p {
  font-size: 14px;
}

.article-content-wrap a {
  color: var(--text-color);
}

/* ______________________置顶 start______________________ */
.label_card {
  position: absolute;
  color: #fff;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 1;
  border-radius: 8px;
  padding: 4px 8px;
  line-height: 1.8;
  text-shadow: 2px 2px 10px rgba(12, 25, 50, 0.8);
  background: rgba(0, 0, 0, 0.1);
  filter: blur(0.25px);
  backdrop-filter: blur(8px);
}
.rnl-card-article .img-desc-wrap {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  min-height: 20px;
  z-index: 1;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .8) 100%);
  transition: all .3s;
}

/* 移动标签 */
.article-label {
  right: 8px;
  top: 8px;
  font-size: 12px;
}
/* 访问量 pv */
.article-pv {
  display: flex;
  gap: 3px;
  padding: 6px;
  color: #fff;
  font-size: 12px;
}

/* 置顶 */
.rnl-card-article .lstop-label {
  left: 8px;
  top: 8px;
  font-size: calc(12px + 0.25rem);
  color: rgb(255, 80, 80);
}

/* ______________________置顶 end ______________________ */

/* ______________________ 时间标签start______________________ */
.rnl_tagline {
  left: -24px;
}

.rnl_tagline {
  font-family: 'TencentSansw7';
  overflow: hidden;
  font-size: 14px;
  line-height: 2;
  height: 30px;
  display: inline-block;
  position: relative;
  border-top: 1px solid #0052D9;
  padding: 0px 30px;
  color: #0052D9;
}

.rnl_tagline:before,
.rnl_tagline--fill:before {
  content: "";
  display: block;
  position: absolute;
  left: calc(100% - 12px);
  bottom: 0px;
  width: 100%;
  border-top: 1px solid #0052D9;
  transform: rotate(-69deg) translate(-1px, 0px);
  transform-origin: 0px 0px;
}

.rnl_tagline:after,
.rnl_tagline--fill:after {
  content: "";
  display: block;
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: calc(100% - 12px);
  border-top: 1px solid #0052D9;
}

/* ______________________时间标签end ______________________ */


/* 打字代码 start */
.typewriting-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.typewriting-wrap {
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  /* justify-content: center; */
  padding: 6px 1ch;
  border-radius: 4px;
  filter: blur(0.25px);
  backdrop-filter: blur(8px);

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  min-height: 32px;
  box-sizing: border-box;
}
/* 打字代码 end */

/* load more start */
.rnl-load-more,
.rnl-load-more-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0 10px 0;
  height: 1px;
  height: fit-content;
  text-align: center;
}
.rnl-load-more {
  opacity: 0; 
}
.rnl-load-more-btn {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
}

.rnl-load-more::after, .rnl-load-more::before {
  content: "";
  flex: 1; /* 自动占满剩余空间 */
  height: 1px; /* 虚线高度 */
  max-width: 8%;
  /* 核心：用背景图实现均匀虚线（可调整间距和长度） */
  background-image: linear-gradient(to right, var(--main-border-color) 88%, transparent 12%);
  background-size: 32px 1px; /* 控制虚线单元：8px（间距+长度），1px（高度） */
  background-repeat: repeat-x; /* 水平重复 */
  margin: 0 1em; /* 与中间内容的间距 */
}
/* load more end */
