/* ========================================
   详情页样式
   ======================================== */

/* 新闻页头部 - PC端透明背景 + 绝对定位 */
.header {
  /* background: transparent; */
  /* position: absolute; */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* 主内容区域 */
.main-content .banner{
  width: 100%;
  height: 26rem;
}

.main-content .banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content{
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  transform: translateY(-6.15rem);
  margin-bottom: -6.15rem;
}

.news-content .menu{
  width: 90rem;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.news-content .menu-title{
  width: 15rem;
  background-color: rgba(176, 3, 32,.7);
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  border-top-left-radius: 2rem;
  position: relative;
}

.news-content .menu-title img{
  position: absolute;
  z-index: 9;
  width: 9rem;
  margin-left: 3rem;
  top: 1rem;
}

.news-content .menu-title div:nth-child(1){
  font-size: 1.6rem;
  font-weight: bold;
}

.news-content .menu-title div:nth-child(2){
  font-size: 1rem;
}

.news-content .menu-list{
  flex:1;
  background-color: #ffffff;
  padding: 0.2rem 0;
  text-align: center;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-top-right-radius: 2rem;
}

.news-content .menu-list div{
  padding: 0.3rem 2rem;
  font-size: 1rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.news-content .menu-list .active{
  color:var(--primary-color);
}

.news-content .menu-list div:hover{
  color: var(--primary-color);
}

.news-content .content{
  width: 100%;
  padding: 1rem 2.8rem;
  border-top: 0.3rem solid var(--gold);
  background-color: var(--bg-color);
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.breadcrumb-label {
  color: #666;
  margin-right: 0.5rem;
}

.breadcrumb-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  color: #999;
  margin: 0 0.5rem;
}

.breadcrumb-current {
  color: var(--primary-color);
}

/* 详情容器 */
.detail-container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 2rem 0;
}

/* 标题 */
.detail-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* 元信息 */
.detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  background-color: #e1e1e1;
  border-radius: 0.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.meta-label {
  color: #666;
  margin-right: 0.3rem;
}

.meta-value {
  color: var(--text-color);
}

/* 正文内容 */
.detail-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-color);
}

.detail-content p {
  margin-bottom: 1.5rem;
  text-indent: 2em;
  text-align: justify;
}

/* 详情图片 */
.detail-image {
  margin: 2rem 0;
  text-align: center;
}

.detail-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* 文章导航（上一篇下一篇） */
.article-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.nav-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.2rem;
  line-height: 1.8;
}

.nav-label {
  color: #666;
  font-size: 0.95rem;
  flex-shrink: 0;
  min-width: 5rem;
}

.nav-link {
   /*  */
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  flex: 1;
  /* padding: 0.2rem 0; */
}

.nav-label-color{
  color: var(--text-color);
}

.nav-link:hover {
  color: var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
  /* 移动端头部恢复红色渐变背景 + 相对定位 */
  .header {
    background: linear-gradient(180deg, #590110 0%, #9e031c 100%);
    position: relative;
  }

  .main-content {
    padding-top: 0;
  }

  .main-content .banner{
    width: 100%;
    height: 6rem;
  }
  
  .main-content .banner img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .news-content{
    width: 100%;
    margin: 0 auto;
    transform: translateY(-3.5rem);
    margin-bottom: -3.5rem;
  }
  .news-content .menu{
    width: 100%;
  }
  .news-content .menu-title{
    width: 8rem;
    background-color: rgba(176, 3, 32,.7);
    color: #fff;
    padding: 0.2rem 0;
    text-align: center;
    border-top-left-radius: 1rem;
    position: relative;
  }
  .news-content .menu-title img{
    position: absolute;
    z-index: 9;
    width: 6rem;
    margin-left: 1rem;
    top: 1rem;
  }

  .news-content .menu-title div:nth-child(1){
    font-size: 1rem;
    font-weight: bold;
  }

  .news-content .menu-title div:nth-child(2){
    font-size: 0.8rem;
  }

  .news-content .menu-list{
    /* flex:1; */
    background-color: #ffffff;
    padding: 0.2rem 0;
    text-align: center;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-top-right-radius: 1rem;
  }
  
  .news-content .menu-list div{
    padding: 0.3rem 0.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
    cursor: pointer;
  }
  
  .news-content .menu-list .active{
    color:var(--primary-color);
  }

  .news-content .content{
    width: 100%;
    padding: 0.5rem 0.8rem;
  }

  /* 移动端面包屑导航 */
  .breadcrumb {
    font-size: 0.8rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
  }

  .breadcrumb-label {
    margin-right: 0.3rem;
  }

  .breadcrumb-separator {
    margin: 0 0.3rem;
  }

  /* 移动端详情页 */
  .detail-container {
    padding: 1rem 0;
  }

  .detail-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .detail-meta {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.8rem;
    background-color: #e1e1e1;
  }

  .meta-item {
    font-size: 0.85rem;
  }

  .detail-content {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .detail-content p {
    margin-bottom: 1rem;
  }

  .detail-image {
    margin: 1.5rem 0;
  }

  /* 移动端文章导航 */
  .article-navigation {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .nav-item {
    flex-direction: column;
    margin-bottom: 0.8rem;
  }

  .nav-label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    min-width: auto;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.2rem 0;
  }
}
