/* 主内容容器 */
.article-main-container {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 通用板块样式 */
.section-card {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* 整合后的文章主体板块 (标题、下载、正文) */
.main-article-body {
  padding: 15px;
  /* 统一内边距 */
}

/* 文章标题、时间、预览量 */
.article-header h1 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.article-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 10px;
  /* 时间和预览量之间的间距 */
  margin-bottom: 15px;
  /* 与下方下载板块的间距 */
  padding-bottom: 15px;
  /* 与下方下载板块的分隔线留白 */
  border-bottom: 1px solid #f0f0f0;
  /* 分隔线 */
}

/* 下载板块 */
.download-section {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 15px;
  background: #f5f5f5;
  padding: 10px 14px;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}

.download-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
}

.download-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 保持图片比例并填充 */
  display: block;
}

.download-info {
  flex-grow: 1;
  /* 占据剩余空间 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  /* 垂直居中 */
}

.download-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px 0;
  line-height: 1.4;
  /* 限制名称为两行 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-meta {
  font-size: 13px;
  color: #888;
  line-height: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  overflow: hidden;
  margin: 5px 0 0;
}

/* 文章正文 */
.article-content {
  line-height: 1.8;
  color: #444;
  font-size: 15px;
}

.article-content h3 {
  font-size: 18px;
  color: #333;
  margin-top: 20px;
  margin-bottom: 10px;
}

.article-content p {
  margin-bottom: 1em;
  text-align: justify;
  /* 段落两端对齐 */
}

.article-content a {
  color: revert;
  text-decoration: underline;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  /* 图片居中显示 */
  border-radius: 8px;
}

/* 相关推荐下载板块 */
.related-downloads h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 15px;
  padding: 15px 0 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.related-downloads .item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 每行4个，等宽 */
  gap: 18px 10px;
  /* 网格间距 */
  padding: 10px 6px;
  /* 网格内容上下内边距 */
}

.related-item {
  display: flex;
  flex-direction: column;
  /* 上下布局 */
  align-items: center;
  /* 内容居中 */
  text-decoration: none;
  text-align: center;
}

.related-item-image {
  width: 60px;
  /* 推荐图片固定宽度 */
  height: 60px;
  /* 推荐图片固定高度 */
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 5px;
  /* 图片与标题间距 */
}

.related-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-item-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin: 0 0 5px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  height: 22px;
  box-sizing: border-box;
  line-height: 22px;
}

.download-button-small {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 4px 21px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.download-button-small:active {
  background-color: #0056b3;
}

/* 热门资讯教程板块 */
.hot-news {
  padding-bottom: 20px;
}

.hot-news h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  padding: 15px 0 10px 0;
  border-bottom: 1px solid #f0f0f0;
  margin: 0 15px;
}

.hot-news-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
}

.hot-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hot-news-image {
  flex-shrink: 0;
  width: auto;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.hot-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hot-news-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 80px;
  /* 与图片高度一致 */
}

.hot-news-title {
  font-size: 16px;
  font-weight: normal;
  color: #333;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-news-time {
  font-size: 13px;
  color: #888;
  margin: 0;
  margin-top: 7px;
}

.g-comment-box h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  padding: 15px 0 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.g-comment-box .g-comment-showbtn {
  margin-top: 10px;
}

footer {
  margin-top: 12px;
}