/* ==========================================================================
   小鸟平台 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }

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

img, svg, video { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --paper-50: #FBF8F1;
  --paper-100: #F2EDE2;
  --ink-900: #16211E;
  --ink-700: #33423D;
  --grass-600: #1E8A6E;
  --grass-700: #17705A;
  --grass-200: #BFE3D6;
  --dune-500: #E08A3C;
  --sky-400: #7EB8D8;
  --line-300: #D9D2C2;
  --alert-600: #B4453A;

  --shell: 1200px;
  --gutter: 20px;
  --header-h: 68px;

  --radius-s: 4px;
  --radius-m: 14px;
  --radius-l: 26px;

  --shadow-soft: 0 18px 40px -30px rgba(22, 33, 30, .45);
  --shadow-lift: 0 26px 54px -30px rgba(22, 33, 30, .55);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
html { scroll-behavior: smooth; }

body {
  background-color: var(--paper-50);
  background-image:
    radial-gradient(circle at 14% 6%, rgba(191, 227, 214, .40), rgba(191, 227, 214, 0) 42%),
    radial-gradient(circle at 86% 2%, rgba(126, 184, 216, .24), rgba(126, 184, 216, 0) 38%),
    radial-gradient(circle at 70% 78%, rgba(224, 138, 60, .10), rgba(224, 138, 60, 0) 46%);
  background-repeat: no-repeat;
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.01em;
}

strong, b { font-weight: 700; color: var(--ink-900); }

::selection { background: var(--grass-200); color: var(--ink-900); }

#main-content { display: block; scroll-margin-top: calc(var(--header-h) + 20px); }

:focus-visible {
  outline: 2px solid var(--grass-600);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

/* ---------- 4. 布局容器 ---------- */
.nx-shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.nx-editorial {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px;
  align-items: start;
}

.nx-grid { display: grid; gap: 24px; }
.nx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.nx-section { position: relative; padding: 72px 0; }
.nx-section:first-of-type { padding-top: 48px; }

.nx-hr {
  height: 1px;
  border: 0;
  margin: 48px 0;
  background: var(--line-300);
}

/* ---------- 5. 跳过链接 ---------- */
.nx-skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink-900);
  color: var(--paper-50);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  transition: top .2s var(--ease);
}
.nx-skip:focus { top: 0; }

/* ---------- 6. 页头 ---------- */
.nx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .22s var(--ease), border-color .22s var(--ease);
}
.nx-header[data-scrolled="true"] {
  background: rgba(251, 248, 241, .94);
  border-bottom-color: var(--line-300);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
}

.nx-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.nx-header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--grass-600), var(--dune-500));
  border-radius: 2px;
  transition: width .1s linear;
}

/* 品牌 */
.nx-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}
.nx-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--grass-600);
  color: var(--paper-50);
  border-radius: 12px 12px 12px 5px;
  box-shadow: 0 10px 22px -14px rgba(30, 138, 110, .95);
  transition: background-color .2s var(--ease);
}
.nx-brand__mark svg { width: 22px; height: 22px; fill: currentColor; }
.nx-brand:hover .nx-brand__mark { background: var(--grass-700); }

.nx-brand__text { display: flex; flex-direction: column; line-height: 1.18; }
.nx-brand__name { font-size: 18px; font-weight: 800; color: var(--ink-900); letter-spacing: .01em; }
.nx-brand__tagline { font-size: 12px; color: var(--ink-700); opacity: .78; letter-spacing: .03em; }

/* 导航 */
.nx-nav { margin: 0; }

.nx-nav__list {
  counter-reset: nav-index;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nx-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-s);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nx-nav__link::before {
  counter-increment: nav-index;
  content: counter(nav-index, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--grass-600);
  opacity: .7;
}
.nx-nav__link:hover { color: var(--grass-600); background: rgba(191, 227, 214, .34); }
.nx-nav__link[aria-current="page"] { color: var(--grass-600); }
.nx-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grass-600);
}

/* 页头右侧与移动按钮 */
.nx-header__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nx-header__cta { white-space: nowrap; }

.nx-nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line-300);
  border-radius: 999px;
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nx-nav-toggle:hover { border-color: var(--grass-600); color: var(--grass-600); }
.nx-nav-toggle[aria-expanded="true"] { border-color: var(--grass-600); color: var(--grass-600); }

.nx-nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nx-nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nx-nav-toggle[aria-expanded="true"] .nx-nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nx-nav-toggle[aria-expanded="true"] .nx-nav-toggle__bar:nth-child(2) { opacity: 0; }
.nx-nav-toggle[aria-expanded="true"] .nx-nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. 按钮 ---------- */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.nx-btn--primary { background: var(--grass-600); color: #FFFFFF; }
.nx-btn--primary:hover { background: var(--grass-700); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.nx-btn--dune { background: var(--dune-500); color: #FFFFFF; }
.nx-btn--dune:hover { background: #C9762C; transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.nx-btn--ghost { background: transparent; border-color: var(--line-300); color: var(--ink-900); }
.nx-btn--ghost:hover { border-color: var(--grass-600); color: var(--grass-600); transform: translateY(-2px); }

.nx-btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------- 8. 标签 ---------- */
.nx-tagrow { display: flex; flex-wrap: wrap; gap: 8px; }

.nx-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-s);
  background: var(--grass-200);
  color: #14513F;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.nx-tag--sky { background: #DCEAF4; color: #26566F; }
.nx-tag--dune { background: #F6E2CD; color: #8A4E15; }

.nx-tagbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border: 1px solid var(--line-300);
  border-radius: 999px;
  background: var(--paper-100);
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.nx-tagbtn:hover { border-color: var(--grass-600); color: var(--grass-600); }
.nx-tagbtn[aria-pressed="true"] { background: var(--grass-600); border-color: var(--grass-600); color: #FFFFFF; }

/* ---------- 9. 章节头 ---------- */
.nx-sec-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 32px;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid var(--line-300);
  margin-bottom: 36px;
}
.nx-sec-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--grass-600);
}
.nx-sec-title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
.nx-sec-note { font-size: 14px; line-height: 1.7; color: var(--ink-700); }

/* ---------- 10. 卡片 ---------- */
.nx-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--paper-100);
  border: 1px solid var(--line-300);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.nx-card:hover { transform: translateY(-2px); border-color: var(--grass-600); box-shadow: var(--shadow-lift); }

.nx-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--grass-600);
}
.nx-card__title { font-size: 20px; font-weight: 800; color: var(--ink-900); }
.nx-card__text { font-size: 15px; line-height: 1.75; color: var(--ink-700); }
.nx-card__meta { font-family: var(--font-mono); font-size: 13px; color: var(--ink-700); opacity: .8; }
.nx-card__link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--grass-600);
  text-decoration: none;
  border-bottom: 1px solid var(--grass-200);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nx-card__link:hover { color: var(--grass-700); border-bottom-color: var(--grass-600); }

/* ---------- 11. 图片容器 ---------- */
.nx-figure { margin: 0; }

.nx-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  background:
    linear-gradient(140deg, var(--grass-200) 0%, var(--paper-100) 55%, #DCEAF4 100%);
}
.nx-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nx-media--wide { aspect-ratio: 16 / 9; }
.nx-media--square { aspect-ratio: 1 / 1; }
.nx-media--tall { aspect-ratio: 3 / 4; }
.nx-media--cut { border-radius: var(--radius-l) var(--radius-l) var(--radius-s) var(--radius-l); }

.nx-media__cap { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-700); }

/* ---------- 12. 有机装饰色块 ---------- */
.nx-blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: .6;
}
.nx-blob--grass { background: radial-gradient(circle at 32% 30%, rgba(191, 227, 214, .95), rgba(191, 227, 214, 0) 70%); }
.nx-blob--dune { background: radial-gradient(circle at 40% 40%, rgba(224, 138, 60, .40), rgba(224, 138, 60, 0) 70%); }
.nx-blob--sky { background: radial-gradient(circle at 50% 50%, rgba(126, 184, 216, .48), rgba(126, 184, 216, 0) 72%); }

/* ---------- 13. 时间轴 ---------- */
.nx-timeline {
  position: relative;
  padding-left: 30px;
  border-left: 1px solid var(--line-300);
}
.nx-timeline__item { position: relative; padding-bottom: 32px; }
.nx-timeline__item:last-child { padding-bottom: 0; }
.nx-timeline__dot {
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dune-500);
  border: 2px solid var(--paper-50);
}
.nx-timeline__date {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-700);
}
.nx-timeline__card {
  padding: 20px 22px;
  background: var(--paper-100);
  border: 1px solid var(--line-300);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nx-timeline__card:hover { transform: translateY(-2px); border-color: var(--grass-600); box-shadow: var(--shadow-lift); }

/* ---------- 14. 折叠面板 ---------- */
.nx-acc { border-top: 1px solid var(--line-300); }
.nx-acc__item { border-bottom: 1px solid var(--line-300); }

.nx-acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  background: none;
  border: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.nx-acc__btn:hover { color: var(--grass-600); }

.nx-acc__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-300);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--grass-600);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.nx-acc__item[data-open="true"] .nx-acc__icon {
  background: var(--grass-600);
  border-color: var(--grass-600);
  color: #FFFFFF;
  transform: rotate(45deg);
}

.nx-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s var(--ease);
}
.nx-acc__item[data-open="true"] .nx-acc__panel { grid-template-rows: 1fr; }
.nx-acc__panel-inner { overflow: hidden; }
.nx-acc__panel-inner > * { padding-bottom: 20px; font-size: 15px; line-height: 1.8; color: var(--ink-700); }

/* ---------- 15. 筛选 ---------- */
.nx-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nx-filter__status {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-700);
  margin-inline-start: auto;
}
.nx-filter__reset {
  padding: 7px 4px;
  background: none;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--grass-600);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.nx-filter__reset:hover { color: var(--grass-700); }

/* ---------- 16. 章节目录轨 ---------- */
.nx-rail { position: sticky; top: calc(var(--header-h) + 28px); }
.nx-rail__link {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line-300);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-700);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nx-rail__link:hover { color: var(--grass-600); }
.nx-rail__link[aria-current="true"] {
  color: var(--grass-600);
  border-left-color: var(--grass-600);
  font-weight: 600;
}

/* ---------- 17. 长文排印 ---------- */
.nx-prose { max-width: 38em; font-size: 17px; line-height: 1.8; color: var(--ink-700); }
.nx-prose > * + * { margin-top: 1.1em; }
.nx-prose h2 { font-size: 24px; margin-top: 2em; }
.nx-prose h3 { font-size: 19px; margin-top: 1.6em; }
.nx-prose ul, .nx-prose ol { padding-left: 1.3em; list-style: disc; }
.nx-prose li + li { margin-top: .5em; }
.nx-prose a { color: var(--grass-600); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 18. 面包屑 ---------- */
.nx-breadcrumb { padding: 20px 0 0; }
.nx-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-700);
}
.nx-breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.nx-breadcrumb__item[aria-current="page"] { color: var(--grass-600); font-weight: 600; }
.nx-breadcrumb__link {
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid var(--line-300);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nx-breadcrumb__link:hover { color: var(--grass-600); border-bottom-color: var(--grass-600); }
.nx-breadcrumb__sep { color: var(--line-300); }

/* ---------- 19. 返回顶部（由 site.js 注入） ---------- */
.nx-totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--paper-100);
  border: 1px solid var(--line-300);
  border-radius: 50%;
  color: var(--ink-900);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease),
              visibility .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.nx-totop[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.nx-totop:hover { border-color: var(--grass-600); color: var(--grass-600); }

/* ---------- 20. 进场 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .24s ease-out, transform .24s ease-out;
}
[data-reveal][data-revealed="true"] { opacity: 1; transform: none; }

/* ---------- 21. 页脚 ---------- */
.nx-footer {
  position: relative;
  margin-top: 72px;
  background: var(--paper-100);
  color: var(--ink-900);
  border-top: 1px solid var(--line-300);
}
.nx-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 96px;
  height: 3px;
  background: var(--grass-600);
  border-radius: 0 0 3px 0;
}

.nx-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.8fr;
  gap: 40px 28px;
  padding: 56px 0 40px;
}

.nx-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.nx-footer__name { font-size: 20px; font-weight: 800; color: var(--ink-900); }
.nx-footer__tagline { font-size: 14px; line-height: 1.7; color: var(--ink-700); }
.nx-footer__place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-700);
}
.nx-footer__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dune-500);
}

.nx-footer__col { display: flex; flex-direction: column; gap: 12px; }
.nx-footer__col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--grass-600);
}
.nx-footer__links { display: flex; flex-direction: column; gap: 8px; }
.nx-footer__link {
  font-size: 15px;
  color: var(--ink-700);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nx-footer__link:hover { color: var(--grass-600); text-decoration: underline; text-underline-offset: 4px; }

.nx-footer__contact { display: flex; flex-direction: column; gap: 12px; }
.nx-footer__contact-list { display: flex; flex-direction: column; gap: 8px; font-style: normal; }
.nx-footer__contact-item {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-700);
  word-break: break-word;
}
.nx-footer__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-700);
  opacity: .82;
}

.nx-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line-300);
}
.nx-footer__legal,
.nx-footer__copy {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-700);
}

/* ---------- 22. 响应式 ---------- */
@media (min-width: 900px) {
  .nx-nav { margin-inline-start: auto; }
  .nx-header__actions { margin-inline-start: 0; }
}

@media (max-width: 899.98px) {
  :root { --header-h: 62px; }

  .nx-nav-toggle { display: inline-flex; }

  .nx-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    padding: 8px 0 18px;
    background: var(--paper-50);
    border: 1px solid var(--line-300);
    border-top: 0;
    border-radius: 0 0 var(--radius-m) var(--radius-m);
    box-shadow: 0 26px 44px -34px rgba(22, 33, 30, .7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
  }
  .nx-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nx-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding-inline: 20px; }
  .nx-nav__link {
    padding: 13px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-300);
    border-radius: 0;
  }
  .nx-nav__list li:last-child .nx-nav__link { border-bottom: 0; }
  .nx-nav__link:hover { background: transparent; }
  .nx-nav__link[aria-current="page"]::after { display: none; }
  .nx-nav__link[aria-current="page"] { background: rgba(191, 227, 214, .34); border-radius: var(--radius-s); }

  .nx-editorial { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nx-section { padding: 52px 0; }
  .nx-sec-head { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }

  .nx-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .nx-footer__brand { grid-column: 1 / -1; }
  .nx-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nx-grid--2, .nx-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .nx-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-footer__brand, .nx-footer__contact { grid-column: 1 / -1; }
  .nx-rail { position: static; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .nx-brand__tagline { display: none; }
  .nx-nav-toggle__label { display: none; }
  .nx-nav-toggle { padding: 8px 11px; }
  .nx-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 23. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .nx-card:hover,
  .nx-timeline__card:hover,
  .nx-btn:hover { transform: none; }
}
