/* ============================================================
   新闻详情页 专用样式
   ============================================================ */

/* ---- 主内容区布局 ---- */
.detail-section {
  background: #f9f9f9;
  min-height: 50vh;
}

.detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 32px 0;
  box-sizing: border-box;
}

/* ---- 面包屑 ---- */
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* ---- 文章容器 ---- */
.detail-article {
  background: #fff;
  border: 1px solid var(--border);
  padding: 65px 232px 1px;
  box-sizing: border-box;
}

/* ---- 文章标题区 ---- */
.article-header {
  max-width: 896px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 0;
}

.article-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.48px;
  line-height: 60px;
  margin: 0;
}

/* ---- 文章 meta ---- */
.article-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 78px;
  flex-wrap: wrap;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #5f5e5e;
  letter-spacing: 0.7px;
  line-height: 20px;
  white-space: nowrap;
}

.article-meta-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ---- 正文 ---- */
.article-content {
  max-width: 896px;
  padding-top: 47px;
}

.article-para {
  font-size: 18px;
  font-weight: 400;
  color: #4b4d4d;
  line-height: 29.25px;
  margin: 0 0 23px;
}

.article-h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  line-height: 32px;
  margin: 0 0 23px;
  padding-left: 20px;
  border-left: 4px solid var(--red-primary);
}

.article-image-wrap {
  margin: 25px 0;
  box-shadow: 0px 10px 40px -10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.article-image {
  display: block;
  width: 100%;
  aspect-ratio: 896 / 600;
  object-fit: cover;
}

/* ---- 上一篇 / 下一篇 ---- */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 1px;
  margin-bottom: 0;
}

.article-nav-item {
  background: #f9f9f9;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.article-nav-item:hover {
  background: #fff5f5;
}

.article-nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--red-primary);
  letter-spacing: 0.7px;
  line-height: 20px;
}

.article-nav-label-right {
  justify-content: flex-end;
}

.article-nav-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.article-nav-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--dark);
  line-height: 32px;
  margin: 0;
}

.article-nav-title-right {
  text-align: right;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .detail-article {
    padding: 48px 80px 1px;
  }
  .article-title {
    font-size: 36px;
    line-height: 48px;
  }
}

@media (max-width: 900px) {
  .detail-container {
    padding: 24px 20px 0;
  }
  .detail-article {
    padding: 40px 40px 1px;
  }
  .article-title {
    font-size: 28px;
    line-height: 40px;
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav-title-right {
    text-align: left;
  }
  .article-nav-label-right {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .detail-article {
    padding: 32px 20px 1px;
  }
  .article-title {
    font-size: 22px;
    line-height: 34px;
  }
  .article-para {
    font-size: 15px;
    line-height: 26px;
  }
  .article-h2 {
    font-size: 20px;
  }
  .article-meta {
    gap: 16px;
    height: auto;
    padding: 16px 0;
  }
  .article-nav-item {
    padding: 24px 20px;
  }
  .article-nav-title {
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 480px) {
  .detail-container {
    padding: 16px 12px 0;
  }
  .detail-article {
    padding: 24px 16px 1px;
  }
}
