/* 新闻详情页面样式 - page-news-details.css */
.bf-header-banner {
  background: url("../../images/bytesforce/2025-09-15/home/bf-page-job-search-bg.avif") no-repeat;
  background-size: cover;
  background-position: center center;
}
/* 自定义视频容器样式 */
#news-video-container .nk-block-video {
  transition: transform 0.3s ease;
}

#news-video-container .nk-block-video:hover {
  transform: translateY(-2px);
}

/* 视频弹窗样式 */
.video-modal {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-modal .video-container {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

.video-modal .close-video {
  transition: all 0.2s ease;
}

.video-modal .close-video:hover {
  background: #f0f0f0 !important;
  transform: scale(1.1);
}

/* 新闻详情页面样式 */
.news-detail-article {
  max-width: 1000px;
  margin: 0 auto;
}

/* 返回按钮样式 */
.btn-back-news {
  background: transparent;
  border: 2px solid #3F61FF;
  color: #3F61FF;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-back-news:hover {
  background: #3F61FF;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 97, 255, 0.3);
}

.btn-back-news i {
  font-size: 14px;
}

/* 新闻标题样式 */
.news-detail-title {
  background: linear-gradient(135deg, #3F61FF, #5a7cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* 新闻标签样式 */
.news-detail-tags {
  margin-bottom: 30px;
}

.news-tag {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px 8px 4px 0;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.news-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tag-content-type {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1976d2;
  border: 1px solid #90caf9;
}

.tag-solution {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  color: #7b1fa2;
  border: 1px solid #ce93d8;
}

.tag-line-of-business {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  color: #388e3c;
  border: 1px solid #a5d6a7;
}

/* 媒体容器样式 */
/* .news-detail-media-section {
  margin: 40px 0;
} */

/* 图片容器样式 */
.news-detail-image-container {
  position: relative;
  margin-bottom: 30px;
}

.news-detail-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.news-detail-image:hover {
  transform: scale(1.02);
}

/* 视频容器样式 */
.news-detail-video-container {
  position: relative;
  margin-bottom: 30px;
}

.news-detail-video-container .nk-block-video {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.news-detail-video-container .nk-block-video:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* 视频播放器样式 */
.nk-block-video {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.nk-block-video img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.nk-block-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nk-block-video-play:hover {
  background: white;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.nk-block-video-play em {
  font-size: 24px;
  color: #3F61FF;
  margin-left: 3px;
}

/* 新闻描述样式 */
.news-detail-description {
  line-height: 1.8;
  text-align: justify;
}

.news-detail-description p {
  margin-bottom: 20px;
}

/* 视频描述样式 */
.news-video-desc {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 25px;
  border-radius: 15px;
  border-left: 5px solid #3F61FF;
}

/* 相关信息样式 */
.news-detail-info {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.news-info-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #3F61FF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.news-info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-info-item strong {
  color: #3F61FF;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

/* 右侧边栏样式 */

.news-detail-sidebar .news-detail-tags {
  margin-bottom: 30px;
}

/* 右侧边栏中的标签样式优化 */
.news-detail-sidebar .news-tag {
  display: block;
  margin: 8px 0;
  text-align: center;
  padding: 10px 12px;
  font-size: 12px;
}

.news-detail-sidebar .news-tag:hover {
  transform: translateX(5px);
}

/* 两栏布局样式 */
.news-detail-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.news-detail-main {
  flex: 1;
  min-width: 0; /* 防止flex项目溢出 */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* 当侧边栏隐藏时，主内容区域全宽显示 */
.news-detail-main.full-width {
  flex: 1;
  max-width: 100%;
}

/* 响应式设计 - 两栏布局 */
@media (max-width: 991px) {
  .news-detail-layout {
    flex-direction: column;
    gap: 30px;
  }
  
  .news-detail-sidebar .news-detail-info {
    padding: 20px;
  }
  
  .news-detail-sidebar .news-info-item {
    padding: 12px;
  }
  
  /* 在移动端，标签恢复为行内显示 */
  .news-detail-sidebar .news-tag {
    display: inline-block;
    margin: 4px 8px 4px 0;
    text-align: left;
  }
  
  .news-detail-sidebar .news-tag:hover {
    transform: translateY(-2px);
  }
  
  /* 移动端全宽模式 */
  .news-detail-main.full-width {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .news-detail-layout {
    gap: 20px;
  }
  
  .news-detail-sidebar .news-detail-info h4 {
    font-size: 14px;
  }
  
  .news-detail-sidebar .news-info-item strong {
    font-size: 13px;
  }
  
  .news-detail-article {
    padding: 0 15px;
  }
  
  .news-detail-title {
    font-size: 28px !important;
  }
  
  .btn-back-news {
    padding: 10px 20px;
    font-size: 14px;
  }

  .nk-block-video-play {
    width: 60px;
    height: 60px;
  }

  .nk-block-video-play em {
    font-size: 18px;
  }

  .news-tag {
    padding: 6px 12px;
    font-size: 11px;
    margin: 2px 4px 2px 0;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-detail-content > * {
  animation: fadeInUp 0.6s ease forwards;
}

.news-detail-content > *:nth-child(2) {
  animation-delay: 0.1s;
}

.news-detail-content > *:nth-child(3) {
  animation-delay: 0.2s;
}

.news-detail-content > *:nth-child(4) {
  animation-delay: 0.3s;
}

/* 右侧边栏样式 */
.news-detail-sidebar {
  position: sticky;
  top: 30px;
  /* right: 0; */
}

.news-detail-sidebar .news-detail-tags {
  margin-bottom: 30px;
}

.news-detail-sidebar .news-detail-info {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-radius: 15px;
  padding: 25px;
}

.news-detail-sidebar .news-detail-info h4 {
  color: #3F61FF;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-detail-sidebar .news-info-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #3F61FF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.news-detail-sidebar .news-info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-detail-sidebar .news-info-item strong {
  color: #2c3e50;
  font-weight: 600;
  font-size: 14px;
}

/* 响应式设计 - 右侧边栏 */
@media (max-width: 991px) {
  .news-detail-sidebar {
    /* position: static; */
    margin-top: 40px;
  }
  
  .news-detail-sidebar .news-detail-info {
    padding: 20px;
  }
  
  .news-detail-sidebar .news-info-item {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .news-detail-sidebar .news-detail-info h4 {
    font-size: 14px;
  }
  
  .news-detail-sidebar .news-info-item strong {
    font-size: 13px;
  }
}