.content {
  margin-top: 20px;
  width: 1200px;
  padding: 29px 20px 52px 30px;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.content .name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 5px;
}

.content .left {
  width: 810px;
  height: 100%;
}

/* 文章列表 */
.left .art-list {
  width: 100%;
  margin-top: 20px;
}

.left .art-list .item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 20px 0px;
  border-bottom: 1px solid #EDEDED;
}

.art-list .item .img-box {
  width: 180px;
  height: 120px;
  margin-left: 15px;
  flex-shrink: 0
}

.art-list .item img {
  width: 100%;
  height: 100%;
  margin-right: 15px;
  object-fit: cover;
}

.art-list .item .text {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.art-list .item .text .title {
  font-size: 17px;
  font-weight: bold;
  margin: 0px;
}

.art-list .item .text .text-content {
  /* 1. 设置行高，假设行高为 1.5 倍字体大小 */
  line-height: 1.5;
  /* 2. 限制最大高度为两行的高度（1.5 * 2 = 3），超出部分隐藏 */
  max-height: 3em;
  /* 3. 核心多行省略属性组合 */
  display: -webkit-box;
  /* 将对象作为弹性伸缩盒子模型显示 */
  -webkit-box-orient: vertical;
  /* 设置伸缩盒子的子元素排列方式为垂直 */
  -webkit-line-clamp: 2;
  /* 限制在一个块元素显示的文本的行数为 3 行 */
  overflow: hidden;
  /* 超出部分隐藏 */
  text-overflow: ellipsis;
  /* 文本溢出时显示省略号 */
  /* 4. 可选：防止纯英文或数字过长导致不换行 */
  word-break: break-word;
  font-size: 14px;
  color: #666666;
}

.art-list .item .text .info {
  font-size: 12px;
  color: #999999;
}



.content .right {
  width: 290px;
  height: 100%;
}

.right .classify {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 50px;
}

.classify .bg-active {
  background-color: #3377ff;
  color: white;
}

.right .classify .class-item {
  width: 132px;
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  text-align: center;
  float: left;
  border: 1px solid #EEEEEE;
  border-radius: 4px;
  margin: 0px 8px 10px 0px;
  box-sizing: border-box;
  overflow: hidden;
}

/* 热门列表 */
.right .rank-list {
  width: 100%;
  margin-top: 30px;
}

.right .rank-list .rank-item {
  margin-bottom: 20px;
}

.rank-item a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-item a .rank-num {
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  background-color: #CED2D9;
  font-size: 12px;
  border-radius: 2px;
  cursor: auto;
  color: white;
}

.rank-item a .ranktitle {
  width: 220px;
  font-size: 14px;
  color: #333333;
}

.rank-item a .read-count {
  color: #A6A6A6;
  font-size: 12px;
  flex-grow: 1;
  text-align: right;
}

/* 第1个数字是红色 */
.rank-item:nth-child(1) .rank-num {
  background-color: #ff4d4f;
}

/* 第2个数字是红色 */
.rank-item:nth-child(2) .rank-num {
  background-color: #ff7a45;
}

/* 第3个数字是红色 */
.rank-item:nth-child(3) .rank-num {
  background-color: #ffc107;
}

/* ------------------------详情页内容------------------------ */
.detail {
  width: 810px;
  box-shadow: var(--shadow-sm);
}

.detail .title {
  margin: 0 auto;
  border-bottom: 1px solid #f2f2f2;
}

.detail .title h4 {
  color: #333;
  font-size: 30px;
  text-align: center;
  line-height: 1.5em;
  width: 95%;
  margin: 0 auto;
  font-weight: 700;
}

.detail .art_info {
  clear: both;
  margin: 14px 0 12px;
  text-align: center;
}

.detail .art_info p {
  color: #787878;
  font-size: 14px;
  margin: 0 8px;
  display: inline-block;
}

.detail .title .description {
  margin-top: 20px;
  padding: 10px;
  background: #f3f3f3;
  font-size: 14px;
  line-height: 1.8em;
}

.detail .title .description span {
  font-weight: bold;
}

.detail .art-content {
  margin-top: 25px;
  font-size: 16px;
  line-height: 28px;
  color: #333;
}