/* ==========================================================================
   名爵mj168app 内页骨架：纸本杂志 · 大字号刊头 + 横线分栏 + 线框对照
   ========================================================================== */

:root {
  --mg-paper: #fbf8f1;
  --mg-paper-2: #f2ece0;
  --mg-ink: #191919;
  --mg-ink-2: #46433c;
  --mg-muted: #7d7668;
  --mg-red: #b3261e;
  --mg-rule: #ddd4c2;
}

body.mg-page {
  background: var(--mg-paper);
  color: var(--mg-ink);
}

.mg-page .site-header { background: rgba(251, 248, 241, .95); border-bottom-color: var(--mg-rule); }
.mg-page .brand-mark { background: var(--mg-ink); color: var(--mg-paper); border-radius: 4px; box-shadow: none; }
.mg-page .brand-text em { color: var(--mg-red); }
.mg-page .site-nav a { color: var(--mg-ink-2); }
.mg-page .site-nav a:hover { color: var(--mg-ink); background: rgba(179, 38, 30, .07); }
.mg-page .site-nav a.is-active { color: var(--mg-red); background: rgba(179, 38, 30, .08); }
.mg-page .btn-login { background: var(--mg-ink); color: var(--mg-paper); border-radius: 4px; box-shadow: none; }

/* ---------------- Hero ---------------- */
.mg-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 70px;
  border-bottom: 1px solid var(--mg-rule);
  background: linear-gradient(180deg, #fdfbf6, var(--mg-paper));
}

.mg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(160, 140, 110, .09) 0 1px, transparent 1px 32px);
  opacity: .55;
  pointer-events: none;
}

.mg-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 52px;
  align-items: center;
}

.mg-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--mg-red);
}

.mg-hero h1 {
  margin: 22px 0 16px;
  font-family: var(--serif);
  font-size: clamp(33px, 4.4vw, 54px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 3px;
  text-wrap: balance;
}

.mg-hero h1 em { font-style: normal; color: var(--mg-red); }

.mg-hero .lead {
  max-width: 560px;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 2.1;
  color: var(--mg-ink-2);
  letter-spacing: .3px;
}

.mg-hero .lead strong { color: var(--mg-ink); }

.mg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.mg-actions .btn-primary { background: var(--mg-ink); color: var(--mg-paper); border-radius: 4px; }
.mg-actions .btn-primary:hover { background: #000; }
.mg-actions .btn-room {
  background: transparent;
  border: 1px solid var(--mg-rule);
  color: var(--mg-ink);
  border-radius: 4px;
  font-family: var(--serif);
}
.mg-actions .btn-room b { color: var(--mg-red); letter-spacing: 2px; }

.mg-visual {
  position: relative;
  padding: 16px;
  background: #fffdf8;
  border: 1px solid var(--mg-rule);
  box-shadow: 0 24px 48px rgba(90, 74, 50, .14);
}

.mg-visual::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(221, 212, 194, .8);
  pointer-events: none;
}

.mg-visual img { position: relative; z-index: 1; }

.mg-visual .cap {
  position: absolute;
  left: 26px;
  bottom: 22px;
  z-index: 2;
  padding: 6px 12px;
  background: var(--mg-red);
  color: #fdfbf6;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
}

/* ---------------- 通用 ---------------- */
.mg-section { padding: 80px 0; }
.mg-section.alt { background: var(--mg-paper-2); border-block: 1px solid var(--mg-rule); }

.mg-head { max-width: 720px; margin-bottom: 38px; }

.mg-head .k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--mg-red);
}

.mg-head h2 {
  margin: 12px 0 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 2px;
}

.mg-head p { font-size: 15px; line-height: 1.9; color: var(--mg-muted); }

/* ---------------- 版本沿革 ---------------- */
.chrono { border-top: 1px solid var(--mg-rule); }

.chrono-row {
  display: grid;
  grid-template-columns: 150px 1fr 190px;
  gap: 30px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--mg-rule);
  transition: background .2s;
}

.chrono-row:hover { background: rgba(179, 38, 30, .03); }

.chrono-row .yr {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--mg-red);
}

.chrono-row h3 {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.chrono-row p { font-size: 14px; line-height: 1.85; color: var(--mg-muted); }

.chrono-row .tag {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: var(--mg-muted);
}

/* ---------------- 双栏正文 ---------------- */
.mg-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: start; }

.mg-body p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.15;
  color: var(--mg-ink-2);
  letter-spacing: .3px;
}

.mg-body p + p { margin-top: 16px; }

.mg-body p.first::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-size: 60px;
  line-height: .9;
  color: var(--mg-red);
  font-weight: 700;
}

.mg-body strong { color: var(--mg-ink); }

.mg-aside {
  padding: 30px 28px;
  border: 1px solid var(--mg-rule);
  background: #fffdf8;
}

.mg-aside h3 {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mg-rule);
}

.mg-aside li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mg-muted);
  border-bottom: 1px dotted var(--mg-rule);
}

.mg-aside li:last-child { border-bottom: 0; }

.mg-aside li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--mg-red);
  font-weight: 700;
}

.mg-aside li strong { color: var(--mg-ink); }

/* ---------------- 线框对照 ---------------- */
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.cmp th,
.cmp td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--mg-rule);
  vertical-align: top;
}

.cmp thead th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--mg-muted);
  font-weight: 400;
  border-bottom: 1px solid var(--mg-ink);
}

.cmp td:first-child {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--mg-ink);
  width: 26%;
}

.cmp td { color: var(--mg-muted); line-height: 1.8; }
.cmp tr:last-child td { border-bottom: 1px solid var(--mg-rule); }
.cmp .hi { color: var(--mg-red); font-weight: 700; }

/* ---------------- 相关 ---------------- */
.mg-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--mg-rule);
  background: #fffdf8;
}

.mg-related a { padding: 26px 24px; border-right: 1px solid var(--mg-rule); transition: background .2s; }
.mg-related a:last-child { border-right: 0; }
.mg-related a:hover { background: var(--mg-paper-2); }
.mg-related .k { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--mg-red); }
.mg-related strong { display: block; margin: 10px 0 5px; font-family: var(--serif); font-size: 16.5px; letter-spacing: 1px; }
.mg-related span { font-size: 13px; color: var(--mg-muted); }

/* 入场 */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .mg-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .mg-split { grid-template-columns: 1fr; gap: 30px; }
  .chrono-row { grid-template-columns: 100px 1fr; gap: 20px; }
  .chrono-row .tag { grid-column: 2; justify-self: start; }
  .mg-related { grid-template-columns: 1fr; }
  .mg-related a { border-right: 0; border-bottom: 1px solid var(--mg-rule); }
}

@media (max-width: 640px) {
  .mg-hero { padding: 44px 0 54px; }
  .mg-hero h1 { font-size: 32px; letter-spacing: 2px; }
  .mg-actions .btn { width: 100%; }
  .mg-section { padding: 56px 0; }
  .mg-body p { font-size: 15.5px; line-height: 2; }
  .cmp th, .cmp td { padding: 12px 12px; }
  .cmp td:first-child { width: 34%; font-size: 15px; }
  .cmp thead th:nth-child(4), .cmp td:nth-child(4) { display: none; }
}
