/* ═══════════════════════════════════════════════════════════════════════
   华映 集团门户 · 文章详情页统一样式 (千里江山图美学)
   ──────────────────────────────────────────────────────────────────────
   适用路径: /news/<slug>/index.html (集团新闻动态文章页)
            /press/<slug>/index.html (Press 发布稿)
            未来其他需要长文展示的页面

   HTML 类名约定 (按文档顺序):
     .article-page       整篇文章 wrapper (<article>)
     .article-hero       文章页头区域 (eyebrow + 时间 + 标题 + lead)
       .article-meta     元信息一行 (tag + date)
         .article-tag    分类 tag (.umbrella 朱砂 / .subsidiary 石青 / 默认绿)
         .article-date   发布日期
       .article-title    主标题 (h1)
       .article-lead     首段导引 (大字)
     .article-body       正文区域 (限定 ~760px 可读宽度)
       h2/h3             章节标题 (serif 深绿)
       p                 段落
       ul/ol/li          列表
       blockquote        引用 (朱砂左线)
       figure/img/figcaption  图片 + 说明
       hr.article-divider     千里江山三点分隔
     .article-foot       底部 (返回链接 + 媒体询问)

   写新文章: 复制 /news/2026-05-18-brand-upgrade/index.html 改文案即可,
            视觉自动统一. AI 写图文动态可直接套这套类名.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --green-main: #1F6B53;
  --green-deep: #0E3A2E;
  --green-light: #4A9B7C;
  --green-mist: #ECF4F0;
  --blue-main: #2A5D7A;
  --blue-light: #5B8AA8;
  --vermilion: #C8463A;
  --ink: #1A1A1A;
  --ink-soft: #111827;
  --gray-text: #6B7280;
  --gray-mute: #9CA3AF;
  --gray-line: rgba(0,0,0,0.08);
  --bg-base: #F5F1E8;
  --bg-white: #FFFFFF;
  --bg-paper: #FBF7EC;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', '宋体', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg-base); color: var(--ink-soft); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Nav (与首页 / Press / News 一致) ── */
.nav { max-width: 1200px; margin: 0 auto; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo svg { width: 38px; height: 38px; }
.nav-logo-text { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--green-deep); letter-spacing: 4px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a { color: var(--gray-text); font-size: 14px; letter-spacing: 1px; }
.nav-links a:hover { color: var(--green-main); }
.nav-links a.active { color: var(--green-deep); font-weight: 500; }

/* ── 文章页 wrapper ── */
.article-page {
  background: var(--bg-base);
}

/* ── Article hero (页头) ── */
.article-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 32px 48px;
}
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.article-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-main);
  background: var(--green-mist);
  padding: 5px 12px;
  border-radius: 2px;
  font-weight: 500;
}
.article-tag.subsidiary { color: var(--blue-main); background: rgba(42, 93, 122, 0.10); }
.article-tag.umbrella   { color: var(--vermilion); background: rgba(200, 70, 58, 0.10); }
.article-date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gray-text);
}
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  color: var(--green-deep);
  letter-spacing: 3px;
  line-height: 1.3;
  margin-bottom: 32px;
}
.article-lead {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 400;
  color: var(--gray-text);
  line-height: 1.85;
  max-width: 760px;
  letter-spacing: 0.5px;
}
/* Hero 收尾 — 千里江山三点朱砂题款 (lead 段后, body 前) */
.article-hero-mark {
  margin-top: 36px;
  text-align: left;
  line-height: 1;
}
.article-hero-mark::before {
  content: '·   ·   ·';
  color: var(--vermilion);
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 5px;
  opacity: 0.85;
}

/* ── Article body (正文) ── */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 32px 64px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.article-body p {
  margin: 0 0 22px;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 2.5px;
  line-height: 1.4;
  margin: 56px 0 18px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 1.5px;
  line-height: 1.5;
  margin: 36px 0 14px;
}
.article-body strong {
  color: var(--green-deep);
  font-weight: 700;
}
.article-body em {
  font-style: italic;
  color: var(--ink);
}
.article-body a {
  color: var(--green-main);
  border-bottom: 1px solid rgba(31, 107, 83, 0.25);
  transition: color 200ms, border-color 200ms;
}
.article-body a:hover {
  color: var(--vermilion);
  border-bottom-color: var(--vermilion);
}
.article-body ul,
.article-body ol {
  margin: 18px 0 26px 8px;
  padding-left: 20px;
}
.article-body li {
  margin-bottom: 8px;
  padding-left: 4px;
  list-style: disc outside;
}
.article-body ol li { list-style: decimal outside; }
.article-body li::marker { color: var(--green-light); }

.article-body blockquote {
  border-left: 3px solid var(--vermilion);
  padding: 6px 24px;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--green-deep);
  line-height: 1.8;
}
.article-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 1px;
  color: var(--gray-text);
}

.article-body figure {
  margin: 36px 0;
  text-align: center;
}
.article-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
  margin: 0 auto;
}
.article-body figure figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-text);
  letter-spacing: 1px;
  margin-top: 14px;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--green-mist);
  color: var(--green-deep);
  padding: 2px 6px;
  border-radius: 2px;
}
/* 代码块 — 宣纸底 + 朱砂左线, 跟米黄页面调性一致, 不再用深绿黑块切割视觉 */
.article-body pre {
  background: var(--bg-paper-soft);
  color: var(--green-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 18px 22px;
  border-radius: 2px;
  border-left: 2px solid var(--vermilion);
  overflow-x: auto;
  margin: 28px 0;
  line-height: 1.75;
}
.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* 千里江山三点题款分隔 (替代 hr) */
.article-body .article-divider {
  text-align: center;
  margin: 48px 0;
  border: none;
  height: auto;
}
.article-body .article-divider::before {
  content: '·    ·    ·';
  color: var(--vermilion);
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 6px;
}

/* 附录 / 引用块 (与正文区分开的 small print 段) */
.article-body .article-aside {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--bg-paper);
  border-left: 2px solid var(--green-light);
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.85;
}
.article-body .article-aside h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-main);
  margin-bottom: 10px;
  font-weight: 500;
}

/* ── Article nav (上一篇 / 下一篇 互联导航) ──
   两栏: 左 = 较新 (上一篇, 时间靠前), 右 = 较旧 (下一篇, 时间靠后);
   各自一张宣纸卡, 跟首页 biz-card 同语汇. */
.article-nav {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.article-nav .ann-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-paper-soft) 100%);
  border: 1px solid rgba(31, 107, 83, 0.14);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 14px rgba(58, 48, 28, 0.03);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 360ms, border-color 360ms;
  color: inherit;
  text-decoration: none;
}
.article-nav .ann-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 107, 83, 0.24);
  box-shadow: 0 12px 28px rgba(14, 58, 46, 0.07);
}
.article-nav .ann-prev { border-left: 3px solid var(--green-light); }
.article-nav .ann-next { border-right: 3px solid var(--vermilion); text-align: right; align-items: flex-end; }
.article-nav .ann-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--green-main);
  text-transform: uppercase;
}
.article-nav .ann-next .ann-label { color: var(--vermilion); }
.article-nav .ann-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--green-deep);
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.55;
}
.article-nav .ann-prev .ann-label::before { content: '←  '; transition: transform 200ms ease; display: inline-block; }
.article-nav .ann-prev:hover .ann-label::before { transform: translateX(-3px); }
.article-nav .ann-next .ann-label::after { content: '  →'; transition: transform 200ms ease; display: inline-block; }
.article-nav .ann-next:hover .ann-label::after { transform: translateX(3px); }

/* prev 或 next 缺位时 (首末篇), 单卡占满全宽 */
.article-nav.is-only-prev,
.article-nav.is-only-next { grid-template-columns: 1fr; }

/* ── Article foot (返回链接 + 媒体询问) — 顶部由 1px 灰线改为千里江山三点朱砂题款 ── */
.article-foot {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-mute);
  letter-spacing: 1.5px;
}
.article-foot::before {
  content: '·    ·    ·';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--vermilion);
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 6px;
  pointer-events: none;
  opacity: 0.85;
}
.article-foot a {
  color: var(--green-deep);
  border-bottom: 1px solid rgba(31, 107, 83, 0.25);
  transition: color 200ms, border-color 200ms;
}
.article-foot a:hover {
  color: var(--vermilion);
  border-bottom-color: var(--vermilion);
}
.article-foot .article-back::before {
  content: '←  ';
  display: inline-block;
  transition: transform 200ms ease;
}
.article-foot .article-back:hover::before {
  transform: translateX(-4px);
}

/* ── Footer mini (跨页一致) ── */
.footer-mini {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px;
  border-top: 1px solid var(--gray-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-mute);
  letter-spacing: 1px;
}

/* ── 响应式 ── */
@media (max-width: 768px) {
  .nav { padding: 20px 16px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; }
  .article-hero { padding: 48px 20px 32px; }
  .article-body { padding-left: 20px; padding-right: 20px; }
  .article-nav { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px 0; }
  .article-nav .ann-next { text-align: left; align-items: flex-start; }
  .article-foot { padding: 48px 20px 24px; flex-direction: column; align-items: flex-start; }
  .footer-mini { padding: 32px 20px; }
}
