/* ==========================================================================
   Taimei News Detail (文章详情) — News article detail page
   Native CSS, 1440px design, pixel-based positioning.
   共用 header / footer；页面底色 #F5F7FF，白底正文卡片 1280 宽居中。
   ========================================================================== */

:root {
  --page-width: 1440px;
  --blue: #0A47ED;
  --dark-blue: #041884;
  --text-dark: #3E3E3E;
  --light-blue: #5EA4FF;
  --white: #FFFFFF;
  --page-bg: #F5F7FF;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-cn: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 横幅以 100vw 全宽铺展，横向溢出统一由 html 裁剪。
   clip 彻底禁止横向滚动（含程序滚动），旧浏览器回退 hidden */
html {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.page {
  position: relative;
  width: var(--page-width);
  margin: 0 auto;
}

/* ==========================================================================
   Banner (NEWS)
   ========================================================================== */

.nd-banner {
  position: relative;
  height: 270px;
}

.nd-banner__bg {
  position: absolute;
  top: 0;
  left: calc(720px - 50vw);
  width: 100vw;
  height: 270px;
  object-fit: cover;
}

.nd-banner__title {
  position: absolute;
  top: 136px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 64px;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: -0.05em;
  color: var(--white);
}

/* ==========================================================================
   Article
   ========================================================================== */

.nd-article {
  position: relative;
  width: 1280px;
  margin: 0 auto;
  padding: 87px 100px 100px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nd-article__title {
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  color: var(--text-dark);
  text-align: center;
}

.nd-article__divider {
  border: none;
  border-top: 1px solid var(--page-bg);
}

.nd-article__h3 {
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  color: #000000;
}

.nd-article__p {
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: #000000;
}

.nd-article__p strong {
  font-weight: 700;
}

/* 详情正文（来自 news.content 富文本）：统一排版 */
.nd-article__content {
  font-size: 18px;
  line-height: 30px;
  color: #000000;
  word-break: break-word;
}

.nd-article__content p {
  margin: 0 0 20px;
}

.nd-article__content p:last-child {
  margin-bottom: 0;
}

.nd-article__content h3,
.nd-article__content h4 {
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  color: #000000;
}

.nd-article__content img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ==========================================================================
   窄屏 PC（980px–1439px）：修正 Banner 全屏出血层的对齐
   此时 .page（1440px）宽于视口，CSS 会把 margin:auto 解析为 0（不产生负边距），
   .page 左边缘落在 0 而非居中；上方 .nd-banner__bg 的
   left: calc(720px - 50vw) 是按「.page 居中」推导的偏移，此时无法被抵消，
   会把背景整体右移、左侧露出白边。这里直接钉在左边缘即可铺满视口；
   ≥1440px 不命中本规则，PC 效果不变。
   ========================================================================== */

@media (min-width: 980px) and (max-width: 1439px) {
  .nd-banner__bg {
    left: 0;
  }
}
