/* ============================================
   AI领航局 - 文章详情页顶部区域样式
   渐变背景 + 悬浮缩略图 + 毛玻璃效果
   ============================================ */

.ailhj-single-header {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
  text-align: center;
}

/* 渐变背景层 */
.ailhj-single-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ailhj-blue-light);
  z-index: 1;
}

/* 白色渐变遮罩 - 从顶部透明到底部白色 */
.ailhj-single-header::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #e1eeff);
  z-index: 2;
}

/* 背景缩略图（优设风格） */
.ailhj-single-thumbnail-bg {
  position: absolute;
  left: 50%;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.ailhj-single-thumbnail-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.ailhj-single-thumbnail-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(257.4deg, var(--ailhj-blue-shadow) 2%, var(--ailhj-blue-light) 80%);
  z-index: 2;
}

.ailhj-single-thumbnail-imgbox {
  display: block;
  position: absolute;
  left: 0;
  right: -70px;
  top: 0;
  bottom: 0;
  transform: rotate(30deg);
  filter: blur(5px);
  -webkit-filter: blur(5px);
}

.ailhj-single-thumbnail-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(2);
  opacity: 0.6;
}

/* 内容区（居中，在上层） */
.ailhj-single-header-inner {
  position: relative;
  z-index: 5;
  max-width: var(--mian-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 标题 */
.ailhj-single-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ailhj-single-subtitle {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.85);
}

/* 作者信息行 */
.ailhj-single-author-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.ailhj-single-author-label,
.ailhj-single-author-name,
.ailhj-single-publish-time,
.ailhj-single-views {
  color: #fff;
}

.ailhj-single-author-label {
  opacity: 0.8;
}

.ailhj-single-author-name {
  font-weight: 500;
}

.ailhj-single-dot {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
}

.ailhj-single-views i {
  margin-right: 4px;
  opacity: 0.8;
}

/* 操作按钮 */
.ailhj-single-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ailhj-single-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ailhj-single-btn i {
  font-size: 16px;
}

/* 按钮默认状态 - 白色背景 + 深灰色文字 */
.ailhj-single-btn-favorite,
.ailhj-single-btn-like {
  border: 1px solid var(--main-border-color);
  background: #fff;
  color: var(--main-color);
}

.ailhj-single-btn-favorite:hover,
.ailhj-single-btn-like:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 按钮激活状态 - 浅红色背景 + 白色文字 */
.ailhj-single-btn-favorite.actived,
.ailhj-single-btn-like.actived {
  background: var(--ailhj-red-light);
  color: #fff;
  border-color: var(--ailhj-red-light);
}

.ailhj-single-btn-favorite.actived:hover,
.ailhj-single-btn-like.actived:hover {
  background: var(--ailhj-red);
  border-color: var(--ailhj-red);
}

/* 标签 */
.ailhj-single-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #fff !important;
}
.ailhj-single-tags a{
  color: #fff !important;
}

.ailhj-single-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ailhj-single-tag:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
}

.ailhj-single-tag i {
  font-size: 12px;
  opacity: 0.8;
}

/* 响应式 */
@media (max-width: 992px) {
  .ailhj-single-header {
    padding: 50px 0 60px;
  }

  .ailhj-single-thumbnail-img {
    opacity: 0.4;
  }

  .ailhj-single-title {
    font-size: 26px;
  }
  
  .ailhj-single-header-inner {
    padding: 0 30px;
  }
}

/* 平板设备优化 */
@media (max-width: 992px) and (min-width: 769px) {
  .ailhj-single-header {
    padding: 55px 0 70px;
  }
  
  .ailhj-single-title {
    font-size: 28px;
  }
  
  .ailhj-single-subtitle {
    font-size: 15px;
  }
  
  .ailhj-single-actions {
    gap: 14px;
  }
  
  .ailhj-single-btn {
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  .ailhj-single-header {
    padding: 40px 0 20px;
  }
  #comments .box-body{
    margin-bottom: 10px;
  }
  /* Mobile: thumbnail covers full width instead of right half */
  .ailhj-single-thumbnail-bg {
    left: 0;
  }

  /* Mobile: increase blur and reduce opacity for better readability */
  .ailhj-single-thumbnail-imgbox {
    filter: blur(5px);
    -webkit-filter: blur(5px);
  }

  .ailhj-single-thumbnail-img {
    opacity: 0.3;
  }

  /* Mobile: left align all content except buttons */
  .ailhj-single-header-inner {
    text-align: left;
  }

  .ailhj-single-title {
    font-size: 22px;
  }

  .ailhj-single-author-row {
    justify-content: flex-start;
    font-size: 13px;
    flex-wrap: wrap;
  }

  .ailhj-single-actions {
    gap: 12px;
    justify-content: center;
  }

  .ailhj-single-btn {
    padding: 10px 22px;
    font-size: 14px;
  }

  /* Mobile: hide tags */
  .ailhj-single-tags {
    display: none;
  }
}
