/* ==========================================================================
   稽山动态 · 栏目专属样式 NEWS COLUMN
   延续全站深色电影质感 + 金色主色
   详情页采用「微信原貌画布」:375px 原生宽度原样渲染公众号原文
   ========================================================================== */

/* ---------- 栏目头 ---------- */
.nx-head {
  position: relative;
  padding: 132px 0 72px;
  background:
    linear-gradient(180deg, rgba(10,10,10,.97) 0%, rgba(10,10,10,.86) 62%, rgba(10,10,10,1) 100%),
    url('/images/hero/front-night.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.nx-head h1 { margin-top: 14px; }
.nx-head .lede { max-width: 640px; margin-top: 22px; }

/* ---------- 通用标签 ---------- */
.nx-cat {
  display: inline-block;
  padding: 4px 12px;
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
}
.nx-cat.is-mkt {
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: var(--gold);
  font-weight: 600;
}

/* ---------- 营销活动主打 ---------- */
.nx-feat {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.nx-feat:hover { border-color: rgba(200,169,106,.45); transform: translateY(-4px); }
.nx-feat__media { position: relative; min-height: 320px; background: #0d0d0d; overflow: hidden; }
.nx-feat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.nx-feat:hover .nx-feat__media img { transform: scale(1.04); }
.nx-feat__body { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.nx-feat__title {
  font-family: var(--font-serif-cn), var(--font-serif-en);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.42;
  margin: 20px 0 16px;
  color: var(--text);
}
.nx-feat__desc { color: var(--text-dim); font-size: .95rem; line-height: 1.9; margin: 0 0 26px; }
.nx-feat__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; border-top: 1px dashed var(--line);
  font-size: .78rem; color: var(--text-muted); letter-spacing: .06em;
}
.nx-feat__go { color: var(--gold); font-weight: 500; }
.nx-feat:hover .nx-feat__go { color: var(--gold-bright); }

/* ---------- 分类切换 ---------- */
.nx-tabs {
  position: sticky; top: 78px; z-index: 40;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nx-tabs .container { display: flex; gap: 6px; overflow-x: auto; padding: 0; }
.nx-tabs a {
  flex: none;
  padding: 16px 20px;
  font-size: .86rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.nx-tabs a span { font-size: .7rem; color: var(--text-muted); margin-left: 4px; opacity: .7; }
.nx-tabs a:hover { color: var(--text); }
.nx-tabs a.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.nx-tabs a.is-active span { color: var(--gold); }

/* ---------- 卡片网格 ---------- */
.nx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.nx-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.nx-card:hover { border-color: rgba(200,169,106,.45); transform: translateY(-5px); }
.nx-card__media { position: relative; aspect-ratio: 16 / 10; background: #0d0d0d; overflow: hidden; }
.nx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.nx-card:hover .nx-card__media img { transform: scale(1.05); }
.nx-card__media .nx-cat { position: absolute; left: 14px; top: 14px; }
.nx-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.nx-card__date {
  font-size: .72rem; color: var(--text-muted); letter-spacing: .12em;
  font-family: var(--font-sans-en);
}
.nx-card__title {
  font-family: var(--font-serif-cn), var(--font-serif-en);
  font-size: 1.18rem; line-height: 1.55; color: var(--text);
  margin: 12px 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nx-card__desc {
  font-size: .84rem; color: var(--text-muted); line-height: 1.85; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nx-card__go { margin-top: auto; font-size: .8rem; color: var(--gold); letter-spacing: .08em; }
.nx-card:hover .nx-card__go { color: var(--gold-bright); }

/* ---------- 分页 ---------- */
.nx-pager { display: flex; justify-content: center; gap: 8px; margin-top: 52px; flex-wrap: wrap; }
.nx-pager a {
  min-width: 42px; height: 42px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--text-dim); font-size: .88rem;
  transition: all .35s var(--ease);
}
.nx-pager a:hover { border-color: var(--gold); color: var(--gold); }
.nx-pager a.is-active { background: var(--gold); border-color: var(--gold); color: #0a0a0a; font-weight: 600; }

/* ---------- 空态 ---------- */
.nx-empty { text-align: center; padding: 86px 24px; border: 1px dashed var(--line); background: var(--bg-2); }
.nx-empty__icon { font-size: 2.6rem; opacity: .45; margin-bottom: 16px; }
.nx-empty p { margin: 14px 0 0; font-size: .9rem; }
.nx-empty a { color: var(--gold); border-bottom: 1px solid rgba(200,169,106,.4); }

/* ==========================================================================
   文章详情
   ========================================================================== */
.nx-article { padding: 108px 0 96px; }

/* 面包屑 */
.nx-crumbs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .78rem; color: var(--text-muted); letter-spacing: .06em;
  margin-bottom: 38px;
}
.nx-crumbs a { color: var(--text-muted); transition: color .3s var(--ease); }
.nx-crumbs a:hover { color: var(--gold); }
.nx-crumbs .sep { opacity: .4; }
.nx-crumbs .is-cur { color: var(--gold); }

/* 主体两栏 */
.nx-detail {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 330px);
  gap: 56px;
  align-items: start;
  justify-content: center;
}
.nx-detail__main { min-width: 0; }

/* 文章标题区 */
.nx-art-head { margin-bottom: 34px; }
.nx-art-title {
  font-size: clamp(1.5rem, 2.9vw, 2.15rem);
  line-height: 1.44; margin: 16px 0 18px; color: var(--text);
  font-family: var(--font-serif-cn), var(--font-serif-en);
  font-weight: 600;
}
.nx-art-meta {
  display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap;
  font-size: .78rem; color: var(--text-muted); letter-spacing: .08em;
}
.nx-art-meta span { display: inline-flex; align-items: center; gap: 7px; }
.nx-art-meta span + span::before {
  content: ''; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); opacity: .7; margin-right: 14px;
}
.nx-art-lead {
  margin: 22px 0 0; padding: 16px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(200,169,106,.05);
  color: var(--text-dim); font-size: .92rem; line-height: 1.95;
}

/* ---------- 微信原貌画布 ---------- */
.nx-canvas-wrap {
  position: relative;
  padding: 26px 0 34px;
}
.nx-canvas-wrap::before {
  content: '';
  position: absolute; left: 50%; top: -10px;
  width: 620px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(50% 46% at 50% 38%, rgba(200,169,106,.17), rgba(200,169,106,0) 72%);
  pointer-events: none;
}
.nx-canvas-label {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .16em; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 16px;
}
.nx-canvas-label::before {
  content: ''; width: 22px; height: 1px; background: var(--gold); opacity: .7;
}

/* 375px = 微信正文标准宽度,原样渲染即可与手机中所见一致 */
.nx-canvas {
  position: relative;
  width: 375px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  color: #3e3e3e;
  font-size: 17px;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  border-radius: 3px;
  box-shadow:
    0 30px 80px rgba(0,0,0,.62),
    0 2px 10px rgba(0,0,0,.4),
    0 0 0 1px rgba(200,169,106,.16);
  -webkit-font-smoothing: antialiased;
  text-align: left;
  word-break: break-word;
}
/* 画布内所有文字强制左对齐:微信编辑器残留的 text-align:justify 在窄列里会撑出难看的字距 */
.nx-canvas p,
.nx-canvas section,
.nx-canvas div { text-align: left; }
.nx-canvas img { max-width: 100%; }
.nx-canvas a { color: #576b95; }
.nx-canvas table { max-width: 100%; }

/* 摘要降级（仅标题/摘要/封面） */
.nx-summary-only {
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: var(--bg-2);
}
.nx-summary-only p { font-size: 1rem; line-height: 2; color: var(--text); margin: 0 0 18px; }
.nx-summary-only span { font-size: .82rem; color: var(--text-muted); line-height: 1.8; }

/* ---------- 文末 ---------- */
.nx-art-foot {
  margin-top: 46px; padding-top: 30px;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.nx-art-foot .nx-src-note { font-size: .76rem; color: var(--text-muted); letter-spacing: .06em; }

/* ---------- 侧栏 ---------- */
.nx-detail__side { min-width: 0; position: sticky; top: 104px; display: grid; gap: 20px; }
.nx-side-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 26px 26px 28px;
}
.nx-side-card h3 {
  font-family: var(--font-serif-cn), var(--font-serif-en);
  font-size: 1rem; font-weight: 600; color: var(--text);
  margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.nx-side-card h3::before {
  content: ''; width: 3px; height: 14px; background: var(--gold); display: inline-block;
}
.nx-side-card--mkt { border-color: rgba(200,169,106,.32); background: rgba(200,169,106,.05); }
.nx-side-card--mkt h3 { color: var(--gold); border-bottom-color: rgba(200,169,106,.24); }
.nx-kp { list-style: none; margin: 0; padding: 0; }
.nx-kp li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: .87rem; line-height: 1.8; color: var(--text-dim);
  border-bottom: 1px dashed rgba(255,255,255,.07);
}
.nx-kp li:last-child { border-bottom: none; }
.nx-kp li::before {
  content: ''; position: absolute; left: 2px; top: 17px;
  width: 6px; height: 6px; transform: rotate(45deg);
  background: var(--gold); opacity: .8;
}
.nx-side-card p { font-size: .87rem; line-height: 1.9; color: var(--text-dim); margin: 0 0 14px; }
.nx-side-card .nx-tel {
  font-family: var(--font-serif-cn); font-size: 1.32rem; color: var(--gold);
  letter-spacing: .04em; display: block; margin-bottom: 4px;
}
.nx-side-card .nx-side-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: .82rem; color: var(--gold); letter-spacing: .08em;
  border-bottom: 1px solid rgba(200,169,106,.4); padding-bottom: 3px;
}
.nx-rel { list-style: none; margin: 0; padding: 0; }
.nx-rel li { border-bottom: 1px dashed rgba(255,255,255,.07); }
.nx-rel li:last-child { border-bottom: none; }
.nx-rel a {
  display: block; padding: 12px 0;
  font-size: .86rem; line-height: 1.7; color: var(--text-dim);
  transition: color .3s var(--ease);
}
.nx-rel a:hover { color: var(--gold); }
.nx-rel time { display: block; font-size: .7rem; color: var(--text-muted); letter-spacing: .1em; margin-top: 5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nx-detail { grid-template-columns: minmax(0, 1fr); gap: 46px; }
  .nx-detail__side { position: static; max-width: 620px; margin: 0 auto; width: 100%; }
}
@media (max-width: 980px) {
  .nx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-feat { grid-template-columns: 1fr; }
  .nx-feat__media { min-height: 240px; }
  .nx-feat__body { padding: 34px 30px; }
}
@media (max-width: 640px) {
  .nx-head { padding: 104px 0 54px; }
  .nx-grid { grid-template-columns: 1fr; }
  .nx-tabs { top: 64px; }
  .nx-article { padding: 88px 0 64px; }
  /* 画布通栏,避免 375px 宽度被容器内边距挤窄 */
  .nx-canvas-wrap { margin-left: -20px; margin-right: -20px; }
  .nx-canvas-label { margin-left: 20px; }
  .nx-canvas { box-shadow: 0 18px 50px rgba(0,0,0,.6); }
}
@media (max-width: 374px) {
  .nx-canvas { zoom: .94; }
}
