/* ==========================================================================
   News Detail Page Styles (新闻详情页面专属样式)
   Header / Footer / 通用布局样式继承自 common.css
   配色沿用全站金色系：深金 #dca32c / #b8860b，亮金 #f5cb66
   ========================================================================== */

:root {
  --nd-gold: #d4952c;
  --nd-gold-deep: #b8860b;
  --nd-gold-bright: #f5cb66;
  --nd-ink: #221d13;
  --nd-gray: #6e6759;
  --nd-cream: #faf6ec;
  --nd-line: #e9dfc8;
}

.news-detail-page main {
  background: #ffffff;
  color: var(--nd-ink);
}

/* -------------------------------------------------------------
   Shared: Reveal Animation & Capsule Button (与全站一致)
------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1), transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.btn-primary-capsule {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 32px;
  border: 1.5px solid #dca32c;
  border-radius: 22px;
  background: #ffffff;
  color: #dca32c;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.45s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.btn-primary-capsule::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #dca32c, #f5cb66);
  transform: translateX(-101%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.btn-primary-capsule:hover::before {
  transform: translateX(0);
}

.btn-primary-capsule:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220, 163, 44, 0.35);
}

.btn-primary-capsule span,
.btn-primary-capsule i {
  position: relative;
  z-index: 2;
}

/* 导航右侧 CTA 按钮 (与列表页 header 保持一致) */
.nav-cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--nd-gold), var(--nd-gold-deep));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(212, 149, 44, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 149, 44, 0.45);
}

/* -------------------------------------------------------------
   1. Hero Banner (厂区实景 + 深色蒙版)
------------------------------------------------------------- */
.nd-hero {
  position: relative;
  min-height: clamp(320px, 38vw, 520px);
  display: flex;
  align-items: center;
  background: url("../images/buer_building.jpg") center center / cover no-repeat, #2a2418;
}

.nd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 22, 14, 0.82) 0%, rgba(26, 22, 14, 0.55) 50%, rgba(26, 22, 14, 0.25) 100%);
  pointer-events: none;
}

.nd-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(44px, 5vw, 72px);
  padding-bottom: clamp(44px, 5vw, 72px);
}

.nd-hero__title {
  margin: 0;
  font-size: clamp(40px, 4.8vw, 68px);
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--nd-gold-bright);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.nd-hero__underline {
  width: 84px;
  height: 4px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--nd-gold), var(--nd-gold-bright));
}

.nd-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
}

.nd-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nd-hero__breadcrumb a:hover {
  color: var(--nd-gold-bright);
}

.nd-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.5);
}

.nd-breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

/* -------------------------------------------------------------
   2. 文章主体
------------------------------------------------------------- */
.nd-article {
  padding: clamp(44px, 5vw, 72px) 0 0;
}

/* 发布日期 (标题上方) */
.nd-article__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nd-gray);
}

.nd-article__date i {
  color: var(--nd-gold);
}

.nd-article__shell {
  /* max-width: 940px; */
}

.nd-article__title {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--nd-ink);
}

.nd-article__lead {
  margin: 20px 0 0;
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.85;
  font-weight: 600;
  color: var(--nd-ink);
}

.nd-article__media {
  margin: clamp(26px, 3vw, 38px) 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(184, 134, 11, 0.16);
}

.nd-article__media img {
  width: 100%;
  display: block;
}

.nd-article__body p {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--nd-gray);
}

.nd-article__body p:last-child {
  margin-bottom: 0;
}

/* 社交分享 */
.nd-share {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(34px, 3.6vw, 48px);
  padding-top: 26px;
  border-top: 1px solid var(--nd-line);
}

.nd-share__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--nd-gray);
}

.nd-share__links {
  display: flex;
  gap: 12px;
}

.nd-share__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--nd-line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--nd-ink);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nd-share__links a:hover {
  background: linear-gradient(135deg, var(--nd-gold), var(--nd-gold-deep));
  border-color: var(--nd-gold);
  color: #ffffff;
  transform: translateY(-3px);
}

/* 上一篇 / 下一篇 */
.nd-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: clamp(34px, 3.6vw, 48px);
  padding: 26px 0 clamp(44px, 5vw, 64px);
  border-top: 1px solid var(--nd-line);
}

.nd-prevnext__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 32px 6px 0;
  text-decoration: none;
}

.nd-prevnext__item--next {
  align-items: flex-end;
  text-align: right;
  padding: 6px 0 6px 32px;
  border-left: 1px solid var(--nd-line);
}

.nd-prevnext__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--nd-gold);
}

.nd-prevnext__label i {
  font-size: 11px;
}

.nd-prevnext__title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--nd-ink);
  transition: color 0.3s ease;
}

.nd-prevnext__item:hover .nd-prevnext__title {
  color: var(--nd-gold-deep);
}

.nd-prevnext__date {
  font-size: 13px;
  color: var(--nd-gray);
}

/* -------------------------------------------------------------
   3. 相关推荐
------------------------------------------------------------- */
.nd-related {
  padding: clamp(48px, 5vw, 76px) 0 clamp(60px, 6vw, 92px);
  background: var(--nd-cream);
}

.nd-related__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(30px, 3.4vw, 46px);
}

.nd-related__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--nd-ink);
}

.nd-related__underline {
  width: 64px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--nd-gold-deep), var(--nd-gold-bright));
}

.nd-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
}

.nd-related-card {
  background: #ffffff;
  border: 1px solid var(--nd-line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.nd-related-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 149, 44, 0.5);
  box-shadow: 0 18px 40px rgba(184, 134, 11, 0.16);
}

.nd-related-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--nd-cream);
}

.nd-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.nd-related-card:hover .nd-related-card__media img {
  transform: scale(1.06);
}

.nd-related-card__body {
  padding: 18px 20px 22px;
}

.nd-related-card__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
}

.nd-related-card__title a {
  color: var(--nd-ink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nd-related-card:hover .nd-related-card__title a {
  color: var(--nd-gold-deep);
}

.nd-related-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--nd-gray);
}

.nd-related-card__date i {
  color: var(--nd-gold);
}

/* -------------------------------------------------------------
   Responsive (响应式适配)
------------------------------------------------------------- */
@media (max-width: 900px) {
  .nd-related__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .nd-prevnext {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .nd-prevnext__item--next {
    align-items: flex-start;
    text-align: left;
    padding: 22px 0 0;
    border-left: none;
    border-top: 1px solid var(--nd-line);
  }

  .nd-share {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1200px) {
  .nav-cta-btn {
    display: none;
  }
}
