/* ============================================================
   赛思云官网 · 新闻动态详情页
   规则：common.css → news-detail.css → mobile.css（必须最后引入）
   结构参考 DuDuTalk「品牌动态详情」页，主题色统一为 #1D2088
   ============================================================ */

/* ---------- 正文区 ---------- */

.nd {
  padding: 135px 0 90px;
}

.nd__layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 70px;
}

.nd__main {
  flex: 1 1 770px;
  min-width: 0;
  max-width: 770px;
}

/* 详情内只保留一个分类入口，主题色 #1D2088 */
.nd__tabs {
  position: relative;
  display: flex;
  height: 97px;
}

.nd__tabs::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-line);
}

.nd__tabs a {
  height: 100%;
  font-size: 32px;
  font-weight: 400;
  line-height: 97px;
  color: rgba(18, 18, 18, 0.4);
}

.nd__tabs a.is-active {
  position: relative;
  color: var(--color-primary);
}

.nd__tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
}

.nd__title {
  margin-top: 80px;
  font-size: 32px;
  font-weight: 700;
  line-height: 45px;
  color: var(--color-text);
}

.nd__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  margin-bottom: 63px;
  padding-bottom: 30px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-sub);
}

.nd__meta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-line);
}

.nd__meta-tag {
  color: var(--color-primary);
  font-weight: 700;
}

.nd__meta-sep {
  color: var(--color-line);
}

.nd__content {
  color: var(--color-text);
}

.nd__content p {
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
}

.nd__content p + p {
  margin-top: 20px;
}

.nd__content h2 {
  margin: 36px 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-text);
}

.nd__content img {
  width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 12px;
}

.nd__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.nd__tags a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-sub);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nd__tags a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.nd__pager {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}

.nd__pager a {
  width: 140px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: var(--color-white);
  font-size: 14px;
  line-height: 42px;
  text-align: center;
  color: var(--color-text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nd__pager a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---------- 右侧边栏 ---------- */

.nd__side {
  flex: 0 0 360px;
  width: 360px;
  min-width: 0;
  padding-top: 46px;
}

.nd__demo,
.nd__hot-tags,
.nd__hot-posts {
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.nd__demo {
  padding: 30px 24px 24px;
  text-align: center;
}

.nd__demo p {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-primary);
}

.nd__demo a {
  display: block;
  width: 100%;
  max-width: 289px;
  height: 46px;
  margin: 24px auto 0;
  border-radius: 23px;
  background: var(--color-primary);
  font-size: 14px;
  line-height: 46px;
  text-align: center;
  color: var(--color-white);
  transition: background-color 0.2s ease;
}

.nd__demo a:hover {
  background: var(--color-primary-hover);
}

.nd__hot-tags,
.nd__hot-posts {
  margin-top: 24px;
  padding: 6px 24px 20px;
}

.nd__side h2 {
  position: relative;
  height: 60px;
  font-size: 20px;
  font-weight: 700;
  line-height: 60px;
  color: var(--color-text);
}

.nd__side h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-line);
}

.nd__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.nd__tag-list a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-sub);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nd__tag-list a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.nd__post-list {
  margin-top: 18px;
}

.nd__post-list a {
  display: block;
  margin-bottom: 24px;
}

.nd__post-list a:last-child {
  margin-bottom: 0;
}

.nd__post-list strong {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.nd__post-list a:hover strong {
  color: var(--color-primary);
}

.nd__post-list span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-sub);
}

/* ---------- CTA（与关于我们页一致） ---------- */

.nd-cta {
  background: var(--color-dark);
  padding: 80px 0;
}

.nd-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.nd-cta__title {
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  color: var(--color-white);
}

.nd-cta__desc {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  color: var(--color-white);
}

.nd-cta__actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nd-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 148px;
  height: 54px;
  padding: 0 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.nd-cta__btn--solid {
  background: var(--color-white);
  color: var(--color-primary);
}

.nd-cta__btn--solid:hover {
  background: #eceef7;
}

.nd-cta__btn--ghost {
  border: 1px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.nd-cta__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nd-cta__arrow {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ---------- 笔记本区间：保持桌面结构，只缩间距 / 字号 ---------- */

@media (min-width: 1024px) and (max-width: 1679px) {
  .nd {
    padding: 120px 0 72px;
  }

  .nd__layout {
    gap: 40px;
  }

  .nd__side {
    flex: 0 0 320px;
    width: 320px;
  }

  .nd__tabs a {
    font-size: 28px;
    line-height: 97px;
  }

  .nd__title {
    margin-top: 64px;
    font-size: 28px;
    line-height: 40px;
  }

  .nd-cta {
    padding: 64px 0;
  }
}
