/* ===========================================================================
   Metal Muse · v1.0.0 · Halo 2.x 主题样式
   Precision Metalwork design system
   Engraved metal plate aesthetic · 3-layer edge shadow primitives
   4 aesthetics: ice / rose / night / white
   =========================================================================== */

/* ============ 1 · SCALE TOKENS ============ */
:root {
  --t-micro: 9px;
  --t-mini: 10px;
  --t-small: 11px;
  --t-body: 13px;
  --t-h4: 15px;
  --t-h3: 18px;
  --t-h2: 24px;
  --t-h1: 32px;

  --tr-wide: 0.14em;
  --tr-mid: 0.06em;
  --tr-tight: -0.02em;

  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;

  --hair: 1px;

  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-sans: "Inter Tight", "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-display: "Orbitron", "Inter Tight", "Noto Sans SC", sans-serif;

  --type: 15px;
  --shell: 1440px;
  --side: 300px;

  --shadow-card:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep),
    0 1px 2px var(--shade-1),
    0 4px 14px var(--shade-2);
  --shadow-strong:
    inset 0 1px 0 var(--edge-bright),
    inset 0 0 0 1px var(--edge-mid),
    inset 0 -1px 0 var(--edge-deep),
    0 2px 4px var(--shade-1),
    0 8px 24px var(--shade-2),
    0 24px 48px var(--shade-3);
  --shadow-inset:
    inset 0 1px 0 var(--edge-deep),
    inset 0 -1px 0 var(--edge-bright),
    inset 0 2px 4px var(--shade-1);
  --shadow-btn:
    inset 0 1px 0 var(--edge-bright),
    inset 0 -1px 0 var(--edge-deep),
    0 1px 2px var(--shade-1);
}

/* ============ 2 · AESTHETIC · ICE ============ */
:root,
[data-aesthetic="ice"] {
  --bg-0: #e8eff6;
  --bg-1: #ffffff;
  --bg-2: #f3f7fb;
  --bg-3: #e8f0f6;
  --bg-4: #dce8f0;
  --bg-inset: #e0e9f1;

  --fg-0: #1a2a36;
  --fg-1: #2a4a5e;
  --fg-2: #4a6a7e;
  --fg-3: #6a8a9e;

  --engrave: 0 1px 1px rgba(255, 255, 255, 0.7);
  --edge-bright: rgba(255, 255, 255, 0.9);
  --edge-mid: rgba(255, 255, 255, 0.5);
  --edge-deep: rgba(60, 100, 140, 0.16);
  --edge-line: rgba(60, 100, 140, 0.14);

  --accent: #5a9fd4;
  --accent-dim: #3b85bb;
  --accent-bright: #7eb8e0;
  --accent-glow: rgba(90, 159, 212, 0.32);
  --accent-ink: #ffffff;

  --good: #4d9d75;
  --warn: #d99054;
  --bad: #c85a4f;

  --shade-1: rgba(60, 100, 140, 0.05);
  --shade-2: rgba(90, 159, 212, 0.09);
  --shade-3: rgba(90, 159, 212, 0.06);

  --grid-line: rgba(90, 159, 212, 0.06);
  --band: #0c0d0f;
  --body-bg: #e8eff6;
}

/* ============ 3 · AESTHETIC · ROSE ============ */
[data-aesthetic="rose"] {
  --bg-0: #fbf2f4;
  --bg-1: #fff6f8;
  --bg-2: #fffafc;
  --bg-3: #ffffff;
  --bg-4: #ffffff;
  --bg-inset: #f0e0e6;

  --fg-0: #2a1320;
  --fg-1: #4a2535;
  --fg-2: #804e62;
  --fg-3: #a37588;

  --engrave: 0 1px 1px rgba(255, 255, 255, 0.7);
  --edge-bright: rgba(255, 255, 255, 0.95);
  --edge-mid: rgba(255, 255, 255, 0.5);
  --edge-deep: rgba(140, 40, 80, 0.16);
  --edge-line: rgba(140, 40, 80, 0.13);

  --accent: #c8497a;
  --accent-dim: #9a2f5a;
  --accent-bright: #e06a9a;
  --accent-glow: rgba(200, 73, 122, 0.25);
  --accent-ink: #ffffff;

  --good: #4d8266;
  --warn: #c8853e;
  --bad: #c84540;

  --shade-1: rgba(140, 40, 80, 0.06);
  --shade-2: rgba(200, 73, 122, 0.1);
  --shade-3: rgba(200, 73, 122, 0.06);

  --grid-line: rgba(200, 73, 122, 0.05);
  --band: #1a0c12;
  --body-bg: #fbf2f4;
}

/* ============ 4 · AESTHETIC · NIGHT ============ */
[data-aesthetic="night"] {
  --bg-0: #0c0d0f;
  --bg-1: #14161a;
  --bg-2: #1a1d22;
  --bg-3: #21252b;
  --bg-4: #2a2f36;
  --bg-inset: #0a0b0d;

  --fg-0: #f2efe8;
  --fg-1: #d4cfc2;
  --fg-2: #9a9384;
  --fg-3: #6e695c;

  --engrave: 0 1px 1px rgba(0, 0, 0, 0.35);
  --edge-bright: rgba(255, 248, 230, 0.09);
  --edge-mid: rgba(255, 248, 230, 0.05);
  --edge-deep: rgba(0, 0, 0, 0.55);
  --edge-line: rgba(255, 248, 230, 0.08);

  --accent: #c28840;
  --accent-dim: #8a5f2c;
  --accent-bright: #e0a55a;
  --accent-glow: rgba(194, 136, 64, 0.35);
  --accent-ink: #12100c;

  --good: #6db485;
  --warn: #d9a154;
  --bad: #c85a4f;

  --shade-1: rgba(0, 0, 0, 0.3);
  --shade-2: rgba(0, 0, 0, 0.38);
  --shade-3: rgba(0, 0, 0, 0.3);

  --grid-line: rgba(255, 248, 230, 0.03);
  --band: #0a0b0d;
  --body-bg: #0c0d0f;
}

/* ============ 5 · AESTHETIC · WHITE ============ */
[data-aesthetic="white"] {
  --bg-0: #fafafa;
  --bg-1: #ffffff;
  --bg-2: #f5f5f5;
  --bg-3: #ededed;
  --bg-4: #e4e4e4;
  --bg-inset: #ececec;

  --fg-0: #161616;
  --fg-1: #2e2e2e;
  --fg-2: #5a5a5a;
  --fg-3: #8a8a8a;

  --engrave: 0 1px 0 rgba(255, 255, 255, 0.6);
  --edge-bright: rgba(255, 255, 255, 0.95);
  --edge-mid: rgba(255, 255, 255, 0.5);
  --edge-deep: rgba(0, 0, 0, 0.1);
  --edge-line: rgba(0, 0, 0, 0.09);

  --accent: #3a3a3a;
  --accent-dim: #1f1f1f;
  --accent-bright: #555555;
  --accent-glow: rgba(58, 58, 58, 0.1);
  --accent-ink: #ffffff;

  --good: #4d9d75;
  --warn: #b8853e;
  --bad: #c85a4f;

  --shade-1: rgba(0, 0, 0, 0.03);
  --shade-2: rgba(0, 0, 0, 0.05);
  --shade-3: rgba(0, 0, 0, 0.03);

  --grid-line: rgba(0, 0, 0, 0.04);
  --band: #101010;
  --body-bg: #fafafa;
}

/* ============ 6 · RESET ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--body-bg);
  color: var(--fg-0);
  font-family: var(--font-sans);
  font-size: var(--type);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body ::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: var(--tr-tight);
}

p,
figure,
blockquote {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-bright);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

code,
kbd,
pre,
time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

[hidden] {
  display: none !important;
}

/* ============ 7 · PRIMITIVES ============ */
.nm-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.nm-lbl {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  border: var(--hair) solid var(--edge-deep);
  background: var(--bg-2);
  box-shadow: var(--shadow-btn);
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  font-weight: 500;
  letter-spacing: var(--tr-mid);
  color: var(--fg-2);
  text-transform: uppercase;
  transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nm-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-btn), 0 0 0 2px var(--accent-glow);
}

.nm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-xs);
  border: var(--hair) solid var(--edge-deep);
  background: var(--bg-2);
  box-shadow: var(--shadow-btn);
  color: var(--fg-1);
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nm-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card), 0 0 0 2px var(--accent-glow);
}

.nm-plate {
  background: var(--bg-1);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
}

/* ============ 8 · NAV ============ */
.nm-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--bg-1);
  border-bottom: var(--hair) solid var(--edge-line);
  box-shadow: inset 0 -1px 0 var(--edge-bright), 0 1px 2px var(--shade-1);
  transition: background-color 0.35s ease;
}

.nm-nav-in {
  max-width: var(--shell);
  margin: 0 auto;
  height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nm-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fg-0);
  white-space: nowrap;
  flex-shrink: 0;
}

.nm-brand:hover {
  color: var(--fg-0);
}

.nm-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: var(--r-xs);
  background: var(--accent);
  box-shadow: var(--shadow-btn), inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-ink);
  letter-spacing: 0;
  flex-shrink: 0;
}

.nm-brand-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nm-brand-tag {
  padding: 2px 5px;
  border-radius: var(--r-xs);
  border: var(--hair) solid var(--edge-deep);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--tr-wide);
  color: var(--fg-3);
  flex-shrink: 0;
}

.nm-spacer {
  flex: 1;
}

.nm-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nm-links a {
  display: block;
  padding: 6px 11px;
  border-radius: var(--r-xs);
  font-size: var(--t-body);
  color: var(--fg-2);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nm-links a:hover {
  color: var(--fg-0);
  background: var(--bg-2);
}

.nm-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 10px;
  border-left: var(--hair) solid var(--edge-line);
  flex-shrink: 0;
}

.nm-icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  border: var(--hair) solid transparent;
  color: var(--fg-2);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.nm-icon-btn:hover {
  color: var(--fg-0);
  background: var(--bg-2);
  border-color: var(--edge-deep);
}

.nm-icon-btn svg {
  width: 16px;
  height: 16px;
}

.nm-burger {
  display: none;
}

.nm-drawer {
  display: none;
  padding: 6px 16px 14px;
  border-top: var(--hair) solid var(--edge-line);
  background: var(--bg-1);
}

.nm-drawer a {
  display: block;
  padding: 9px 4px;
  font-size: var(--t-h4);
  color: var(--fg-1);
  border-bottom: var(--hair) solid var(--edge-line);
}

.nm-drawer a:last-child {
  border-bottom: 0;
}

.nm-nav.is-open .nm-drawer {
  display: block;
}

/* ============ 9 · BOOT SCREEN ============ */
.nm-boot {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #08090b;
  color: #cfd4dc;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.nm-boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nm-boot-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(226, 232, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.nm-boot-wm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: min(24vw, 260px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 232, 240, 0.07);
  white-space: nowrap;
  user-select: none;
}

.nm-boot-inner {
  position: relative;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
}

.nm-boot-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: rgba(207, 212, 220, 0.4);
  line-height: 1.9;
}

.nm-boot-top b {
  font-weight: 500;
  color: rgba(207, 212, 220, 0.72);
}

.nm-boot-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.nm-boot-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #eef2f7;
  text-shadow: 0 0 32px rgba(140, 190, 240, 0.18);
}

.nm-boot-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(207, 212, 220, 0.55);
}

.nm-boot-dia {
  color: var(--boot-accent, #5a9fd4);
}

.nm-boot-pulse {
  animation: nm-pulse 1.4s ease-in-out infinite;
}

@keyframes nm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.nm-boot-bot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.nm-boot-log {
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: rgba(207, 212, 220, 0.42);
  min-height: 74px;
}

.nm-boot-log i {
  color: var(--boot-accent, #5a9fd4);
  font-style: normal;
}

.nm-boot-log em {
  color: rgba(207, 212, 220, 0.9);
  font-style: normal;
}

.nm-boot-date {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  letter-spacing: 0.1em;
  color: rgba(207, 212, 220, 0.55);
}

.nm-boot-date u {
  text-decoration: none;
  color: var(--boot-accent, #5a9fd4);
  margin: 0 2px;
}

.nm-boot-date s {
  text-decoration: none;
  margin-left: 8px;
  color: rgba(207, 212, 220, 0.3);
  letter-spacing: 0.2em;
}

.nm-boot-pct {
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  letter-spacing: 0.14em;
  color: rgba(207, 212, 220, 0.62);
  text-align: right;
  margin-bottom: 8px;
}

.nm-boot-pct strong {
  font-size: var(--t-h3);
  font-weight: 500;
  color: #eef2f7;
}

.nm-boot-bar {
  width: 100%;
  height: 2px;
  background: rgba(226, 232, 240, 0.1);
  overflow: hidden;
}

.nm-boot-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--boot-accent, #5a9fd4);
  box-shadow: 0 0 12px var(--boot-accent, #5a9fd4);
  transition: width 0.2s linear;
}

.nm-boot-ver {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: rgba(207, 212, 220, 0.28);
  text-align: right;
}

.nm-boot-skip {
  position: absolute;
  right: 32px;
  bottom: 96px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: rgba(207, 212, 220, 0.32);
  border: var(--hair) solid rgba(226, 232, 240, 0.14);
  padding: 5px 9px;
  border-radius: var(--r-xs);
  cursor: pointer;
}

.nm-boot-skip:hover {
  color: rgba(226, 232, 240, 0.8);
  border-color: rgba(226, 232, 240, 0.4);
}

/* ============ 10 · FRAME ============ */
.nm-frame {
  max-width: var(--shell);
  margin: 16px auto 0;
  background: var(--bg-1);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  transition: background-color 0.35s ease;
}

.nm-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 16px;
  background: var(--bg-1);
  border-bottom: var(--hair) solid var(--edge-line);
  box-shadow: inset 0 1px 0 var(--edge-bright), inset 0 -1px 0 var(--edge-deep);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-hud-l,
.nm-hud-r {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nm-hud-id {
  color: var(--fg-2);
}

.nm-hud-sep {
  color: var(--edge-deep);
}

.nm-hud-lights {
  display: flex;
  gap: 3px;
}

.nm-hud-lights i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--edge-deep);
}

.nm-hud-lights i:first-child {
  background: var(--good);
}

.nm-hud-on {
  color: var(--good);
}

.nm-hud-scan {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge-line), transparent);
  max-width: 320px;
}

.nm-hud-code {
  color: var(--fg-2);
}

/* ============ 11 · HERO / CAROUSEL ============ */
.nm-hero {
  position: relative;
  height: clamp(320px, 34vw, 460px);
  overflow: hidden;
  background: var(--band);
}

.nm-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 0.68, 0.16, 1);
}

.nm-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
}

.nm-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 6s linear;
}

.nm-slide.is-active .nm-slide-bg {
  transform: scale(1.09);
}

.nm-slide-fb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 78% 18%, rgba(90, 159, 212, 0.28), transparent 62%), #0e1218;
}

.nm-slide-fb span {
  font-family: var(--font-display);
  font-size: clamp(160px, 22vw, 260px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  user-select: none;
}

.nm-slide-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.38) 68%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, transparent 30%, transparent 52%, rgba(0, 0, 0, 0.86) 100%);
}

.nm-slide-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 40px 30px;
  max-width: 880px;
}

.nm-slide-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.nm-slide-cat {
  padding: 3px 8px;
  border: var(--hair) solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  letter-spacing: var(--tr-mid);
}

.nm-slide-title {
  font-size: clamp(20px, 2.8vw, 34px);
  color: #fff;
  letter-spacing: var(--tr-tight);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.nm-slide-title a {
  color: inherit;
}

.nm-slide-desc {
  margin-top: 10px;
  max-width: 620px;
  font-size: var(--t-body);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nm-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: var(--r-xs);
  border: var(--hair) solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nm-slide-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.nm-c-eyebrow {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 4;
  padding: 4px 10px;
  border-left: 2px solid var(--accent);
  background: rgba(8, 12, 20, 0.55);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.nm-c-pager {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nm-c-count {
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  letter-spacing: var(--tr-wide);
  color: rgba(255, 255, 255, 0.78);
}

.nm-c-bar {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.nm-c-bar span {
  display: block;
  height: 100%;
  width: 33.33%;
  background: var(--accent);
  transition: width 0.4s ease;
}

.nm-c-arr {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  border: var(--hair) solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nm-c-arr:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.nm-c-dots {
  position: absolute;
  bottom: 22px;
  right: 24px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.nm-c-dots i {
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.nm-c-dots i.on {
  background: var(--accent);
}

/* ============ 12 · STATS ============ */
.nm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--hair) solid var(--edge-line);
  background: var(--bg-2);
}

.nm-stat {
  padding: 12px 16px;
  border-right: var(--hair) solid var(--edge-line);
  box-shadow: inset 1px 0 0 var(--edge-bright);
}

.nm-stat:last-child {
  border-right: 0;
}

.nm-stat-num {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--fg-0);
  line-height: 1.1;
}

.nm-stat-lbl {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ============ 13 · LAYOUT ============ */
.nm-body {
  padding: 24px;
}

.nm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  gap: 22px;
  align-items: start;
}

.nm-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

.nm-main {
  min-width: 0;
}

/* ============ 14 · SECTION HEAD ============ */
.nm-sec {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.nm-sec-bar {
  width: 3px;
  height: 15px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
  flex-shrink: 0;
}

.nm-sec-t {
  font-size: var(--t-h4);
  font-weight: 600;
  letter-spacing: var(--tr-mid);
  color: var(--fg-0);
  white-space: nowrap;
}

.nm-sec-en {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-left: 2px;
}

.nm-sec-line {
  flex: 1;
  height: var(--hair);
  background: var(--edge-line);
}

.nm-sec-more {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
}

.nm-sec-more:hover {
  color: var(--accent);
}

/* ============ 15 · CARDS ============ */
.nm-card {
  position: relative;
  display: block;
  height: 318px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--band);
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nm-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
  color: #fff;
}

.nm-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s cubic-bezier(0.22, 0.68, 0.16, 1);
}

.nm-card:hover .nm-card-img {
  transform: scale(1.05);
}

.nm-card-fb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(130% 100% at 76% 14%, rgba(90, 159, 212, 0.3), transparent 60%), #0e1218;
}

.nm-card-fb span {
  font-family: var(--font-display);
  font-size: 128px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  user-select: none;
}

.nm-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, transparent 38%, transparent 46%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 2;
}

.nm-card-cat {
  position: absolute;
  top: 11px;
  left: 12px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  border: var(--hair) solid rgba(255, 255, 255, 0.26);
  background: rgba(8, 12, 20, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--tr-mid);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.nm-card-no {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  color: rgba(255, 255, 255, 0.6);
}

.nm-card-glass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 13px 15px 15px;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.34) 0%, rgba(8, 12, 20, 0.56) 100%);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-top: var(--hair) solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 -2px 8px rgba(0, 0, 0, 0.25);
}

.nm-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.nm-card-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.nm-card-t {
  font-size: var(--t-h4);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nm-card-d {
  margin-top: 6px;
  font-size: var(--t-small);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nm-card--big {
  height: auto;
  min-height: 100%;
}

.nm-card--big .nm-card-glass {
  padding: 18px 20px 20px;
}

.nm-card--big .nm-card-t {
  font-size: var(--t-h3);
}

.nm-card--big .nm-card-fb span {
  font-size: 200px;
}

.nm-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.nm-featured .nm-card--big {
  grid-row: 1 / 3;
}

.nm-featured .nm-card {
  height: 100%;
  min-height: 205px;
}

.nm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.nm-grid .nm-card {
  height: 288px;
}

.nm-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ============ 15B · LAB ============ */
.nm-lab {
  padding: 4px 24px 24px;
}

.nm-lab-tag {
  padding: 2px 6px;
  border-radius: var(--r-xs);
  border: var(--hair) solid var(--edge-deep);
  background: var(--bg-2);
  box-shadow: var(--shadow-btn);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  color: var(--accent);
  white-space: nowrap;
}

.nm-lab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.nm-lab-card {
  position: relative;
  display: block;
  height: 162px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--band);
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nm-lab-card:hover {
  color: #fff;
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.nm-lab-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s cubic-bezier(0.22, 0.68, 0.16, 1);
}

.nm-lab-card:hover .nm-lab-img {
  transform: scale(1.05);
}

.nm-lab-fb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 100% at 78% 16%, var(--accent-glow), transparent 62%),
    #0e1218;
}

.nm-lab-fb span {
  font-family: var(--font-display);
  font-size: 74px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  user-select: none;
}

.nm-lab-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 42%, rgba(0, 0, 0, 0.46) 100%);
}

.nm-lab-type,
.nm-lab-idx {
  position: absolute;
  top: 10px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.nm-lab-type {
  left: 11px;
  padding: 3px 7px;
  border-radius: var(--r-xs);
  border: var(--hair) solid rgba(255, 255, 255, 0.26);
  background: rgba(8, 12, 20, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.86);
}

.nm-lab-idx {
  right: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.nm-lab-glass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 11px;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.34) 0%, rgba(8, 12, 20, 0.58) 100%);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-top: var(--hair) solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 -2px 8px rgba(0, 0, 0, 0.22);
}

.nm-lab-name {
  font-size: var(--t-h4);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nm-lab-desc {
  font-size: var(--t-small);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 16 · EMPTY ============ */
.nm-empty {
  padding: 56px 24px;
  text-align: center;
  border: var(--hair) dashed var(--edge-deep);
  border-radius: var(--r-sm);
  background: var(--bg-2);
}

.nm-empty b {
  display: block;
  font-size: var(--t-h4);
  color: var(--fg-1);
  margin-bottom: 6px;
}

.nm-empty span {
  font-family: var(--font-mono);
  font-size: var(--t-small);
  letter-spacing: var(--tr-mid);
  color: var(--fg-3);
}

/* ============ 17 · PAGINATION ============ */
.nm-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-pager a,
.nm-pager span {
  padding: 7px 13px;
  border-radius: var(--r-xs);
  border: var(--hair) solid var(--edge-deep);
  background: var(--bg-2);
  box-shadow: var(--shadow-btn);
  color: var(--fg-2);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nm-pager a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nm-pager .is-off {
  opacity: 0.4;
  box-shadow: none;
  background: transparent;
}

/* ============ 18 · SIDEBAR ============ */
.nm-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.nm-widget {
  background: var(--bg-1);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.nm-widget-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: var(--hair) solid var(--edge-line);
  box-shadow: inset 0 -1px 0 var(--edge-bright);
  background: var(--bg-2);
}

.nm-widget-hd i {
  width: 3px;
  height: 11px;
  border-radius: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.nm-widget-hd b {
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: var(--tr-mid);
}

.nm-widget-hd em {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-style: normal;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-widget-bd {
  padding: 14px;
}

.nm-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.nm-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--r-xs);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-btn);
  background: var(--bg-inset);
}

.nm-avatar-fb {
  width: 46px;
  height: 46px;
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 800;
  box-shadow: var(--shadow-btn);
}

.nm-profile-name {
  font-size: var(--t-h4);
  font-weight: 600;
  color: var(--fg-0);
}

.nm-profile-bio {
  margin-top: 2px;
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--fg-3);
}

.nm-profile-stats {
  display: flex;
  gap: 18px;
  padding: 0 14px 14px;
}

.nm-profile-stats div {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-profile-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-h4);
  letter-spacing: 0;
  color: var(--fg-1);
  margin-bottom: 2px;
}

.nm-catlist a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: var(--hair) solid var(--edge-line);
  font-size: var(--t-body);
  color: var(--fg-2);
}

.nm-catlist li:last-child a {
  border-bottom: 0;
}

.nm-catlist a:hover {
  color: var(--accent);
}

.nm-catlist b {
  font-weight: 400;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nm-catlist em {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-style: normal;
  letter-spacing: var(--tr-mid);
  color: var(--fg-3);
}

.nm-catlist i {
  width: 4px;
  height: 4px;
  background: var(--edge-deep);
  flex-shrink: 0;
}

.nm-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nm-rank li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: var(--hair) solid var(--edge-line);
}

.nm-rank li:last-child {
  border-bottom: 0;
}

.nm-rank em {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-style: normal;
  letter-spacing: var(--tr-mid);
  color: var(--accent);
  padding-top: 2px;
  flex-shrink: 0;
}

.nm-rank a {
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--fg-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ 19 · POST PAGE ============ */
.nm-post-head {
  padding: 32px 40px 26px;
  border-bottom: var(--hair) solid var(--edge-line);
  background:
    radial-gradient(120% 90% at 84% 0%, var(--accent-glow), transparent 58%),
    var(--bg-1);
  position: relative;
  overflow: hidden;
}

.nm-post-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.nm-post-head > * {
  position: relative;
  z-index: 1;
}

.nm-post-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.nm-post-title {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg-0);
  max-width: 900px;
}

.nm-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  letter-spacing: var(--tr-mid);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nm-post-meta svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.nm-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.nm-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  padding: 32px 40px 40px;
  align-items: start;
}

.nm-prose {
  min-width: 0;
  max-width: 900px;
  font-size: 15px;
  line-height: 1.82;
  color: var(--fg-1);
}

.nm-prose > * + * {
  margin-top: 18px;
}

.nm-prose h2,
.nm-prose h3,
.nm-prose h4 {
  margin-top: 34px;
  margin-bottom: 14px;
  color: var(--fg-0);
  scroll-margin-top: 80px;
}

.nm-prose h2 {
  font-size: var(--t-h2);
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.35;
}

.nm-prose h3 {
  font-size: var(--t-h3);
}

.nm-prose h4 {
  font-size: var(--t-h4);
}

.nm-prose p {
  margin-top: 16px;
}

.nm-prose a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-glow);
}

.nm-prose a:hover {
  border-bottom-color: var(--accent);
}

.nm-prose strong {
  font-weight: 600;
  color: var(--fg-0);
}

.nm-prose ul,
.nm-prose ol {
  padding-left: 22px;
  margin-top: 16px;
}

.nm-prose ul {
  list-style: none;
}

.nm-prose ul > li {
  position: relative;
  padding-left: 4px;
  margin-top: 8px;
}

.nm-prose ul > li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0.72em;
  width: 4px;
  height: 4px;
  background: var(--accent);
}

.nm-prose ol {
  list-style: decimal;
}

.nm-prose ol > li {
  margin-top: 8px;
  padding-left: 2px;
}

.nm-prose ol > li::marker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.nm-prose blockquote {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: var(--bg-2);
  box-shadow: var(--shadow-inset);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  color: var(--fg-2);
}

.nm-prose blockquote > * + * {
  margin-top: 10px;
}

.nm-prose img {
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
  margin: 22px auto;
}

.nm-prose hr {
  margin: 34px 0;
  height: var(--hair);
  border: 0;
  background: var(--edge-line);
}

.nm-prose code {
  padding: 2px 5px;
  border-radius: var(--r-xs);
  background: var(--bg-inset);
  box-shadow: var(--shadow-inset);
  font-size: 0.86em;
  color: var(--accent-dim);
}

[data-aesthetic="night"] .nm-prose code {
  color: var(--accent-bright);
}

.nm-prose pre {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--bg-inset);
  box-shadow: var(--shadow-inset);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  border: var(--hair) solid var(--edge-line);
}

.nm-prose pre code {
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--fg-1);
  font-size: inherit;
}

.nm-prose table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: var(--t-body);
  box-shadow: var(--shadow-card);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.nm-prose th,
.nm-prose td {
  padding: 9px 12px;
  border: var(--hair) solid var(--edge-line);
  text-align: left;
}

.nm-prose th {
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  font-weight: 500;
  letter-spacing: var(--tr-mid);
  text-transform: uppercase;
  color: var(--fg-2);
}

/* TOC */
.nm-toc {
  position: sticky;
  top: 76px;
  font-size: var(--t-body);
}

.nm-toc-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: var(--hair) solid var(--edge-line);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-toc-hd i {
  width: 3px;
  height: 10px;
  background: var(--accent);
}

.nm-toc ol {
  margin-top: 10px;
  border-left: var(--hair) solid var(--edge-line);
}

.nm-toc li a {
  display: block;
  padding: 5px 0 5px 12px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--fg-3);
  font-size: var(--t-small);
  line-height: 1.5;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nm-toc li a:hover {
  color: var(--fg-0);
}

.nm-toc li a.is-on {
  color: var(--accent);
  border-left-color: var(--accent);
}

.nm-toc li.lv3 a {
  padding-left: 24px;
  font-size: var(--t-mini);
}

/* post footer */
.nm-post-foot {
  margin-top: 36px;
  padding-top: 22px;
  border-top: var(--hair) solid var(--edge-line);
}

.nm-license {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--r-xs);
  background: var(--bg-2);
  box-shadow: var(--shadow-inset);
  font-size: var(--t-small);
  line-height: 1.7;
  color: var(--fg-3);
}

.nm-license a {
  color: var(--fg-2);
}

.nm-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.nm-pn {
  padding: 12px 14px;
  border-radius: var(--r-xs);
  border: var(--hair) solid var(--edge-deep);
  background: var(--bg-2);
  box-shadow: var(--shadow-btn);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.nm-pn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nm-pn em {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-style: normal;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}

.nm-pn b {
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--fg-1);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ 20 · ARCHIVE / LIST PAGE ============ */
.nm-hero-sm {
  position: relative;
  padding: 34px 40px 30px;
  border-bottom: var(--hair) solid var(--edge-line);
  background: var(--bg-1);
  overflow: hidden;
}

.nm-hero-sm::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 86% 0%, var(--accent-glow), transparent 56%);
  opacity: 0.5;
}

.nm-hero-sm::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

.nm-hero-sm > * {
  position: relative;
  z-index: 1;
}

.nm-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.nm-hero-t {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--fg-0);
  letter-spacing: -0.01em;
}

.nm-hero-d {
  margin-top: 8px;
  max-width: 640px;
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--fg-2);
}

.nm-hero-count {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-hero-count b {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  letter-spacing: 0;
  color: var(--fg-1);
  margin-right: 4px;
}

.nm-hero-wm {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  font-family: var(--font-display);
  font-size: 150px;
  font-weight: 800;
  line-height: 1;
  color: var(--fg-0);
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
}

.nm-yearblock {
  margin-bottom: 26px;
}

.nm-yearlabel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.nm-yearlabel b {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 700;
  color: var(--fg-1);
  letter-spacing: 0.02em;
}

.nm-monthlabel {
  margin: 14px 0 8px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-rowlist li {
  border-bottom: var(--hair) solid var(--edge-line);
}

.nm-rowlist li:first-child {
  border-top: var(--hair) solid var(--edge-line);
}

.nm-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 6px;
  color: var(--fg-1);
  transition: background-color 0.16s ease, padding-left 0.16s ease;
}

.nm-row:hover {
  background: var(--bg-2);
  padding-left: 12px;
  color: var(--fg-0);
}

.nm-row-d {
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  letter-spacing: var(--tr-mid);
  color: var(--fg-3);
}

.nm-row-t {
  font-size: var(--t-h4);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nm-row-v {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-catgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.nm-catcard {
  position: relative;
  display: block;
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  box-shadow: var(--shadow-card);
  color: var(--fg-1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nm-catcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  color: var(--fg-0);
}

.nm-catcard b {
  display: block;
  font-size: var(--t-h4);
  font-weight: 600;
  margin-bottom: 4px;
}

.nm-catcard span {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-catcard i {
  position: absolute;
  right: 10px;
  bottom: -12px;
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  color: var(--fg-0);
  opacity: 0.05;
}

/* ============ 21 · FOOTER ============ */
.nm-foot {
  max-width: var(--shell);
  margin: 16px auto 20px;
  padding: 26px 24px;
  background: var(--bg-1);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
  text-align: center;
  color: var(--fg-3);
  font-size: var(--t-body);
}

.nm-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.nm-foot-links a {
  color: var(--fg-3);
}

.nm-foot-links a:hover {
  color: var(--accent);
}

.nm-foot-sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  opacity: 0.8;
}

.nm-foot-sub span {
  color: var(--fg-2);
}

.nm-foot-beian {
  margin-top: 10px;
  font-size: var(--t-small);
}

.nm-foot-beian a {
  color: var(--fg-3);
}

.nm-top {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 14px;
  border-radius: var(--r-xs);
  border: var(--hair) solid var(--edge-deep);
  background: var(--bg-2);
  box-shadow: var(--shadow-btn);
  color: var(--fg-2);
}

.nm-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============ 21.5 · HERO SCANLINE ============ */
.nm-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 9;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  box-shadow: 0 0 14px 0 var(--accent-glow);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .nm-hero::after {
    animation: nm-scan 8s ease-in-out infinite;
  }
}

@keyframes nm-scan {
  0% {
    top: 0;
    opacity: 0;
  }
  8% {
    opacity: 0.62;
  }
  92% {
    opacity: 0.62;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* ============ 21.6 · AUTHOR ============ */
.nm-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px 16px;
}

.nm-author-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nm-author-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.5;
  background:
    radial-gradient(circle 1.5px at 50% 4px, var(--accent), transparent 100%),
    radial-gradient(circle 1px at 100% 60px, var(--fg-3) 60%, transparent),
    radial-gradient(circle 1px at 0% 60px, var(--fg-3) 60%, transparent),
    radial-gradient(circle 1.5px at 50% 116px, var(--accent), transparent 100%);
}

.nm-author-outer {
  position: absolute;
  inset: 10px;
  z-index: 1;
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
  opacity: 0.5;
}

.nm-author-ring {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 4px 20px var(--accent-glow),
    0 8px 32px var(--accent-glow);
}

.nm-author-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.nm-author-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-3);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.nm-author-check {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--bg-1);
  background: var(--good);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nm-author-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg-0);
  margin-bottom: 4px;
}

.nm-author-bio {
  margin-bottom: 16px;
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--fg-2);
  /* 简介支持多行：保留手动换行，避免长文本挤成一坨 */
  white-space: pre-line;
  text-wrap: pretty;
}

.nm-author-stats {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  border-top: var(--hair) solid var(--edge-line);
  border-bottom: var(--hair) solid var(--edge-line);
  box-shadow: inset 0 1px 0 var(--edge-bright), inset 0 -1px 0 var(--edge-bright);
}

.nm-author-stat {
  flex: 1;
}

.nm-author-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg-0);
}

.nm-author-stat span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-author-sep {
  width: var(--hair);
  height: 26px;
  background: var(--edge-line);
  box-shadow: 1px 0 0 var(--edge-bright);
}

/* 文章页：横向作者条 */
.nm-author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  box-shadow: var(--shadow-card);
}

.nm-author-box .nm-author-avatar-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.nm-author-box .nm-author-ring {
  width: 56px;
  height: 56px;
  padding: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 10px var(--accent-glow);
}

.nm-author-box .nm-author-outer {
  inset: 5px;
  border-width: 1px;
}

.nm-author-box .nm-author-dots {
  display: none;
}

.nm-author-box .nm-author-ph {
  font-size: 18px;
}

.nm-author-box .nm-author-name {
  margin: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nm-author-box .nm-author-bio {
  margin: 6px 0 0;
  text-align: left;
}

.nm-author-role {
  padding: 1px 6px;
  border-radius: var(--r-xs);
  border: var(--hair) solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--tr-mid);
  text-transform: uppercase;
}

.nm-author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ============ 21.7 · CATEGORY STRIP ============ */
.nm-catstrip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--bg-1);
  box-shadow: var(--shadow-card);
}

.nm-catstrip-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-right: 8px;
  padding: 5px 10px 5px 2px;
  border-right: var(--hair) solid var(--edge-line);
  box-shadow: 1px 0 0 var(--edge-bright);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-catstrip-label em {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  letter-spacing: var(--tr-mid);
  color: var(--fg-2);
}

.nm-catstrip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-xs);
  background: var(--bg-2);
  box-shadow: var(--shadow-btn);
  color: var(--fg-1);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.nm-catstrip-pill:hover {
  color: var(--accent);
  background: var(--bg-3);
}

.nm-catstrip-pill.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.nm-catstrip-count {
  font-family: var(--font-mono);
  font-size: var(--t-mini);
  color: var(--fg-3);
}

.nm-catstrip-pill.is-active .nm-catstrip-count {
  color: rgba(255, 255, 255, 0.72);
}

[data-aesthetic="night"] .nm-catstrip-pill.is-active .nm-catstrip-count {
  color: rgba(0, 0, 0, 0.55);
}

/* ============ 22 · REVEAL ============ */
@media (prefers-reduced-motion: no-preference) {
  .nm-rv {
    opacity: 0;
    transform: translateY(14px);
  }

  .nm-rv.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

/* ============ 23 · RESPONSIVE ============ */
@media (max-width: 1180px) {
  :root {
    --side: 268px;
  }

  .nm-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nm-lab-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nm-article {
    grid-template-columns: minmax(0, 1fr);
  }

  .nm-toc {
    display: none;
  }
}

@media (max-width: 980px) {
  .nm-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .nm-lab-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nm-featured {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .nm-featured .nm-card--big {
    grid-row: auto;
    min-height: 300px;
  }

  .nm-featured .nm-card {
    min-height: 260px;
  }

  .nm-post-head,
  .nm-hero-sm {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nm-article {
    padding: 24px;
  }

  .nm-slide-info {
    padding: 0 24px 26px;
  }
}

@media (max-width: 760px) {
  .nm-nav-in {
    padding: 0 14px;
    gap: 10px;
    height: 50px;
  }

  .nm-hud {
    padding: 7px 12px;
  }

  .nm-hud-scan,
  .nm-hud-r {
    display: none;
  }

  .nm-links {
    display: none;
  }

  .nm-burger {
    display: grid;
  }

  .nm-frame {
    margin: 8px 8px 0;
  }

  .nm-lab {
    padding: 4px 16px 18px;
  }

  .nm-lab-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nm-lab-card {
    height: 146px;
  }

  .nm-body {
    padding: 14px;
  }

  .nm-hero {
    height: 300px;
  }

  .nm-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .nm-stat:nth-child(2) {
    border-right: 0;
  }

  .nm-stat:nth-child(1),
  .nm-stat:nth-child(2) {
    border-bottom: var(--hair) solid var(--edge-line);
  }

  .nm-grid,
  .nm-grid--2 {
    grid-template-columns: 1fr;
  }

  .nm-grid .nm-card {
    height: 260px;
  }

  .nm-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .nm-row-v {
    display: none;
  }

  .nm-prevnext {
    grid-template-columns: 1fr;
  }

  .nm-boot-inner {
    padding: 20px 18px 18px;
  }

  .nm-boot-bot {
    grid-template-columns: 1fr;
  }

  .nm-boot-log {
    order: 2;
    min-height: 0;
  }

  .nm-boot-skip {
    right: 18px;
  }

  .nm-foot {
    margin: 8px 8px 12px;
    padding: 20px 16px;
  }

  .nm-c-bar {
    display: none;
  }
}

@media (max-width: 760px) {
  .nm-catstrip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 12px;
    scrollbar-width: none;
  }

  .nm-catstrip::-webkit-scrollbar {
    display: none;
  }

  .nm-catstrip-pill {
    flex: 0 0 auto;
  }

  .nm-catstrip-label {
    flex: 0 0 auto;
  }

  .nm-author-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .nm-brand-tag {
    display: none;
  }

  .nm-post-meta {
    gap: 10px;
  }
}

/* ============================================================================
   24 · V1.2 · 导航 / 面包屑 / 阅读进度 / 错误页 / 无障碍
   说明：本节为升级追加，统一使用既有设计令牌，不引入新的硬编码配色。
   ============================================================================ */

/* ---------- 24.1 系统配色声明（让滚动条/表单控件跟随明暗） ---------- */
html {
  color-scheme: light;
}

html[data-aesthetic="night"] {
  color-scheme: dark;
}

/* ---------- 24.2 键盘可见焦点 ---------- */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nm-nav a:focus-visible,
.nm-nav button:focus-visible {
  outline-offset: 1px;
}

.nm-skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 200;
  padding: 8px 12px;
  background: var(--bg-1);
  border: var(--hair) solid var(--accent);
  color: var(--fg-0);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  transition: top 0.18s ease;
}

.nm-skip-link:focus {
  top: 8px;
}

/* ---------- 24.3 品牌 Logo ---------- */
.nm-brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: var(--r-xs);
  flex-shrink: 0;
}

/* ---------- 24.4 面包屑 ---------- */
.nm-bc {
  border-bottom: var(--hair) solid var(--edge-line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: inset 0 1px 0 var(--edge-bright);
}

.nm-bc[hidden] {
  display: none;
}

.nm-bc-in {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  overflow: hidden;
}

.nm-bc-in::before {
  content: "";
  width: 3px;
  height: 9px;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
  flex-shrink: 0;
}

.nm-bc-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--fg-3);
  flex-shrink: 0;
}

.nm-bc-home svg {
  width: 11px;
  height: 11px;
}

.nm-bc-home:hover {
  color: var(--accent);
}

.nm-bc-sep {
  position: relative;
  width: 16px;
  height: 1px;
  background: var(--edge-deep);
  flex-shrink: 0;
}

.nm-bc-sep[hidden] {
  display: none;
}

.nm-bc-sep::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 4px;
  height: 4px;
  border-top: var(--hair) solid var(--edge-deep);
  border-right: var(--hair) solid var(--edge-deep);
  transform: rotate(45deg);
}

.nm-bc-mid {
  color: var(--accent);
  flex-shrink: 0;
}

.nm-bc-cur {
  color: var(--fg-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 24.5 文章页：正文容器 / EOF / 阅读进度 ---------- */
.nm-prose-wrap {
  min-width: 0;
}

.nm-post-eof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-post-eof span {
  flex: 1;
  height: var(--hair);
  background: linear-gradient(90deg, transparent, var(--edge-deep));
}

.nm-post-eof span:last-child {
  background: linear-gradient(90deg, var(--edge-deep), transparent);
}

.nm-post-eof b {
  font-weight: 500;
  white-space: nowrap;
}

.nm-toc-prog {
  margin-top: 20px;
  padding-top: 14px;
  border-top: var(--hair) solid var(--edge-line);
}

.nm-toc-prog-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-toc-prog-hd b {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nm-toc-prog-bar {
  margin-top: 8px;
  height: 3px;
  background: var(--bg-inset);
  box-shadow: var(--shadow-inset);
  overflow: hidden;
}

.nm-toc-prog-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.18s linear;
}

.nm-toc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.nm-toc-metrics > div {
  padding: 7px 2px 6px;
  text-align: center;
  border: var(--hair) solid var(--edge-line);
  border-radius: var(--r-xs);
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 var(--edge-bright);
}

.nm-toc-metrics b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg-0);
  font-variant-numeric: tabular-nums;
}

.nm-toc-metrics span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}

/* ---------- 24.6 评论区 ---------- */
.nm-comments {
  margin-top: 28px;
}

.nm-comment-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: var(--hair) solid var(--edge-line);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.nm-comment-hd i {
  width: 3px;
  height: 10px;
  background: var(--accent);
}

/* ---------- 24.7 轮播：置顶标记 + 图片元素化 ---------- */
.nm-slide-pin {
  padding: 3px 7px;
  border-radius: var(--r-xs);
  background: var(--accent);
  color: var(--accent-ink);
  letter-spacing: var(--tr-mid);
}

img.nm-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.nm-card-no.is-pin {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

/* ---------- 24.8 数据条：运行天数 ---------- */
/* 只在桌面宽度接管列数，避免覆盖 760px 以下的 2 列布局 */
@media (min-width: 761px) {
  .nm-stats {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }
}

.nm-stat--uptime[hidden] {
  display: none;
}

.nm-stat--uptime {
  background: linear-gradient(180deg, var(--shade-2), transparent);
}

.nm-stat--uptime .nm-stat-num {
  color: var(--accent);
}

/* ---------- 24.9 错误页 ---------- */
.nm-err {
  position: relative;
  padding: 52px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}

.nm-err::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.nm-err-code {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(88px, 17vw, 168px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: var(--hair) var(--accent);
  text-shadow: 0 0 42px var(--accent-glow);
  opacity: 0.5;
  user-select: none;
}

@media (prefers-reduced-motion: no-preference) {
  .nm-err-code {
    animation: nmErrFlicker 6s steps(1, end) infinite;
  }
}

@keyframes nmErrFlicker {
  0%,
  92%,
  100% {
    opacity: 0.5;
  }
  93% {
    opacity: 0.18;
  }
  95% {
    opacity: 0.62;
  }
  96% {
    opacity: 0.24;
  }
}

.nm-err-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 22px 24px 24px;
  border: var(--hair) solid var(--edge-deep);
  border-radius: var(--r-sm);
  background: var(--bg-1);
  box-shadow: var(--shadow-card);
}

.nm-err-panel::before,
.nm-err-panel::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: var(--hair) solid var(--accent);
  opacity: 0.7;
}

.nm-err-panel::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.nm-err-panel::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.nm-err-tag {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--bad);
  margin-bottom: 10px;
}

.nm-err-sec {
  margin-bottom: 8px;
}

.nm-err-text {
  font-size: var(--t-body);
  line-height: 1.75;
  color: var(--fg-2);
}

.nm-err-rows {
  margin-top: 16px;
  border-top: var(--hair) solid var(--edge-line);
}

.nm-err-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: var(--hair) solid var(--edge-line);
  font-family: var(--font-mono);
  font-size: var(--t-mini);
}

.nm-err-row span {
  color: var(--fg-3);
  letter-spacing: var(--tr-wide);
  flex-shrink: 0;
}

.nm-err-row b {
  font-weight: 500;
  color: var(--fg-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.nm-err-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* ---------- 24.10 响应式补充 ---------- */
@media (max-width: 1180px) {
  /* 小屏把阅读进度固定成顶部一条 2px 光带，目录列表仍隐藏 */
  .nm-toc {
    display: block;
    position: static;
  }

  .nm-toc-hd,
  .nm-toc ol {
    display: none;
  }

  .nm-toc-prog {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 90;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .nm-toc-prog-hd,
  .nm-toc-metrics {
    display: none;
  }

  .nm-toc-prog-bar {
    height: 2px;
    margin: 0;
    background: var(--bg-3);
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .nm-bc-in {
    padding: 6px 14px;
  }

  .nm-bc-mid {
    max-width: 30vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nm-err {
    padding: 36px 14px 48px;
  }

  .nm-err-panel {
    padding: 18px 16px 20px;
  }

  .nm-err-row {
    font-size: 10px;
  }
}

/* ---------- 24.11 作者页 / 作者区块 ---------- */
.nm-author-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}

.nm-author-profile .nm-post-title {
  margin: 0;
}

.nm-author-profile .nm-author-bio {
  margin-top: 8px;
  max-width: 640px;
}

.nm-stat-unit {
  margin-left: 2px;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg-3);
  vertical-align: 0.35em;
}

@media (max-width: 760px) {
  .nm-stat--uptime {
    border-right: 0;
  }
}

/* ---------- 25 外部入口（子站跳转） ---------- */
.nm-ext-arrow {
  margin-left: 4px;
  font-size: 0.86em;
  font-style: normal;
  color: var(--accent);
  opacity: 0.75;
}

.nm-links a.nm-ext {
  display: inline-flex;
  align-items: center;
}

.nm-links a.nm-ext:hover .nm-ext-arrow {
  opacity: 1;
}

.nm-drawer a.nm-ext {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- 26 作者卡联系方式 ---------- */
.nm-author-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: var(--hair) solid var(--edge-line);
}

.nm-contact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 8px;
  border: var(--hair) solid var(--edge-line);
  border-radius: var(--r-xs);
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 var(--edge-bright);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.02em;
  color: var(--fg-2);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.nm-contact em,
.nm-contact i {
  font-style: normal;
  color: var(--accent);
  flex-shrink: 0;
}

.nm-contact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nm-contact:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  color: var(--fg-0);
}
