/* ============================================================
   News Detail — 文章详情页
   Figma: #662:27563 News-Detail
   news-detail#section #662:27624 (1920×2900) 渐变 -46deg 白→浅蓝
   结构：面包屑 → 标题 → 日期 → 5px 分隔线 → Reading Guide 蓝底引文
         → 正文（32px #666 + 蓝色 ExtraBold 小标题）→ Previous/Next 导航
   ============================================================ */

.nd-detail {
  position: relative;
  width: 100%;
  background: linear-gradient(-46deg, #FFFFFF 0%, #ECF6FB 100%);
  padding: 0 var(--container-padding) 110px;
  overflow: hidden;
  box-sizing: border-box;
}

.nd-detail__inner {
  position: relative;
  max-width: 1600px;               /* 设计稿内容宽 1640 - 左右 padding 40 */
  margin: 0 auto;
}

/* --- 面包屑（设计稿 @54,59，18px #3EA8D9） --- */
.nd-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 120px 0 0;
}

.nd-crumb__home {
  display: inline-flex;
  align-items: center;
}

.nd-crumb__home img {
  display: block;
  width: 21px;
  height: 20px;
}

.nd-crumb__arrow {
  display: block;
  width: 7px;
  height: 14px;
}

.nd-crumb__link {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  text-decoration: none;
}

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

/* --- 标题（设计稿 @180,187，1560 宽 76px ExtraBold #3EA8D9 居中） --- */
.nd-title {
  font-family: var(--font-primary);
  font-size: min(5vw, 76px);
  font-weight: 800;
  line-height: min(5.208vw, 90px);
  letter-spacing: -0.02em;
  color: var(--color-primary);
  text-align: center;
  margin: min(2.604vw, 50px) auto 0;   /* 187-59-90 标题上缘相对面包屑的余量 */
  max-width: 1560px;
}

/* --- 日期（设计稿 @839,437，32px #666 居中） --- */
.nd-date {
  display: block;
  font-family: var(--font-primary);
  font-size: min(1.667vw, 32px);
  font-weight: 400;
  line-height: min(2.5vw, 48px);
  letter-spacing: -0.02em;
  color: var(--color-text-secondary);
  text-align: center;
  margin: min(2.6vw, 50px) auto 0;
}

/* --- 分隔线（设计稿 1640×5） --- */
.nd-rule {
  display: block;
  width: 100%;
  height: 5px;
  background: #D9D9D9;
  margin: min(4.9vw, 94px) auto 0;    /* 日期底到分隔线：581-437-44 ≈ 100 */
}

/* --- 正文容器（设计稿 @140,686） --- */
.nd-body {
  margin: min(3.65vw, 70px) auto 0;   /* 686-581-5 = 100 */
}

/* Reading Guide（设计稿 1640×238 蓝底 + 引文 @70,47 32px #666） */
.nd-guide {
  position: relative;
  width: 100%;
  aspect-ratio: 1640 / 238;
  background: url(../images/news-detail-guide-bg.png) no-repeat center / cover;
}

.nd-guide__text {
  position: absolute;
  left: 4.27%;                        /* 70/1640 */
  top: 19.75%;                        /* 47/238 */
  width: 92.87%;                      /* 1523/1640 */
  font-family: var(--font-primary);
  font-size: min(1.667vw, 32px);
  font-weight: 400;
  line-height: min(2.5vw, 48px);
  letter-spacing: -0.02em;
  color: var(--color-text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 正文（设计稿 @0,288 起，32px #666，蓝色 ExtraBold 小标题） */
.nd-copy {
  margin-top: min(5.2vw, 100px);      /* 288/2900 相对区高 */
  font-family: var(--font-primary);
  font-size: min(1.667vw, 32px);
  font-weight: 400;
  line-height: min(2.5vw, 48px);
  letter-spacing: -0.02em;
  color: var(--color-text-secondary);
}

.nd-copy p {
  margin: 0 0 1.5em;
}

.nd-copy__title {
  font-family: var(--font-primary);
  font-size: min(1.667vw, 32px);
  font-weight: 800;
  line-height: min(2.5vw, 48px);
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0 0 0.25em;
}

/* --- Previous / Next 导航（设计稿 @140,2684，1640 宽上分隔线） --- */
.nd-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: min(12vw, 230px);
  padding-top: 40px;
  border-top: 1px solid #CCCCCC;
}

.nd-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-primary);
  font-size: min(1.667vw, 32px);
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #999999;
  transition: color var(--duration-base) var(--ease-standard);
}

.nd-nav__link:hover {
  color: var(--color-secondary);
}

.nd-nav__link--next {
  flex-direction: row-reverse;
}

.nd-nav__arrow {
  display: block;
  flex-shrink: 0;
  overflow: visible;
  width: 0.93em;
  height: 0.7em;
}

.nd-nav__arrow path {
  stroke: #999999;
  transition: stroke var(--duration-base) var(--ease-standard);
}

.nd-nav__link:hover .nd-nav__arrow path {
  stroke: var(--color-secondary);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
  .nd-detail {
    padding-bottom: 80px;
  }

  .nd-title {
    font-size: 44px;
    line-height: 52px;
  }

  .nd-date {
    font-size: 20px;
    line-height: 30px;
  }

  .nd-guide__text,
  .nd-copy,
  .nd-copy__title {
    font-size: 20px;
    line-height: 34px;
  }

  .nd-nav__link {
    font-size: 20px;
    line-height: 30px;
  }
}

@media (max-width: 768px) {
  .nd-detail {
    padding-bottom: 56px;
  }

  .nd-guide {
    aspect-ratio: auto;
    min-height: 150px;
    padding: 28px 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background-size: 100% 100%;
  }

  .nd-guide__text {
    position: static;
    width: 91%;
    margin: 0 auto;
  }

  .nd-crumb {
    padding-top: 80px;
  }

  .nd-title {
    font-size: 38px;
    line-height: 46px;
  }

  .nd-date {
    font-size: 18px;
    line-height: 28px;
  }

  .nd-guide__text,
  .nd-copy,
  .nd-copy__title {
    font-size: 18px;
    line-height: 30px;
  }

  .nd-nav__link {
    font-size: 18px;
    line-height: 28px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .nd-title {
    font-size: 32px;
    line-height: 40px;
  }

  /* Previous/Next 保持与上一行两端同行排布（移动端不堆叠） */
  .nd-nav {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .nd-nav__link--next {
    flex-direction: row-reverse;
    align-self: auto;
  }
}

/* ==================== 无障碍降级 ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}