/* ==========================================================================
   NG赛场 · 共享样式 /assets/site.css
   赛场边线指挥台：深墨绿底 + 荧光青脉搏 + 琥珀轮次角标
   ========================================================================== */

:root {
  --ng-ink: #082B24;
  --ng-ink-deep: #041512;
  --ng-card: #0D3A31;
  --ng-cyan: #31F0C8;
  --ng-cyan-soft: #8FF7E4;
  --ng-amber: #FFB527;
  --ng-red: #FF5A5F;
  --ng-yellow: #FFD84D;
  --ng-white: #F4FBF7;
  --ng-muted: #A9C8BE;
  --ng-line: #1F5C4E;
  --ng-line-soft: rgba(31, 92, 78, 0.6);
  --ng-shell-w: 1180px;
  --ng-gap: clamp(16px, 2.2vw, 28px);
  --ng-radius: 16px;
  --ng-radius-sm: 10px;
  --ng-head-h: 76px;
  --ng-font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ng-font-num: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Roboto Mono", monospace;
  --ng-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ng-ink);
  background-image:
    radial-gradient(1100px 520px at 84% -8%, rgba(49, 240, 200, 0.09), transparent 62%),
    radial-gradient(760px 420px at 4% 104%, rgba(255, 181, 39, 0.05), transparent 66%);
  background-repeat: no-repeat;
  color: var(--ng-white);
  font-family: var(--ng-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ng-white);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(49, 240, 200, 0.28);
  color: #fff;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ng-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 通用容器与跳过链接 ---------- */

.ng-shell {
  width: min(100% - 40px, var(--ng-shell-w));
  margin-inline: auto;
}

.ng-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--ng-cyan);
  color: #04231D;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.18s var(--ng-ease);
}

.ng-skip:focus {
  transform: translateY(0);
}

/* ---------- 头部 ---------- */

.ng-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background-color: rgba(4, 21, 18, 0.2);
  border-bottom: 1px solid transparent;
  transition: background-color 0.18s var(--ng-ease), border-color 0.18s var(--ng-ease);
}

.ng-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 21, 18, 0.88), rgba(4, 21, 18, 0.04));
  opacity: 1;
  transition: opacity 0.18s var(--ng-ease);
  pointer-events: none;
}

.ng-header.is-solid {
  background-color: rgba(4, 21, 18, 0.95);
  border-bottom-color: var(--ng-line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.ng-header.is-solid::before {
  opacity: 0;
}

.ng-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  min-height: var(--ng-head-h);
}

/* 品牌 */

.ng-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ng-white);
  text-decoration: none;
}

.ng-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(49, 240, 200, 0.55);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(49, 240, 200, 0.18), rgba(49, 240, 200, 0.02));
  font-family: var(--ng-font-num);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ng-cyan);
  transition: border-color 0.18s var(--ng-ease), box-shadow 0.18s var(--ng-ease);
}

.ng-brand:hover .ng-brand__mark {
  border-color: var(--ng-cyan);
  box-shadow: 0 0 18px -4px rgba(49, 240, 200, 0.7);
}

.ng-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.ng-brand__name {
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ng-white);
}

.ng-brand__tag {
  font-family: var(--ng-font-num);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--ng-muted);
}

/* 导航 */

.ng-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.ng-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.9vw, 26px);
  list-style: none;
}

.ng-nav__item {
  display: block;
}

.ng-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 1px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ng-muted);
  text-decoration: none;
  transition: color 0.18s var(--ng-ease);
}

.ng-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ng-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ng-ease);
}

.ng-nav__link:hover {
  color: var(--ng-white);
}

.ng-nav__link:hover::after {
  transform: scaleX(1);
}

.ng-nav__link[aria-current="page"] {
  color: var(--ng-cyan);
}

.ng-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 移动导航按钮 */

.ng-nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid var(--ng-line);
  border-radius: 999px;
  background: rgba(13, 58, 49, 0.55);
  color: var(--ng-white);
  cursor: pointer;
  transition: border-color 0.18s var(--ng-ease), color 0.18s var(--ng-ease);
}

.ng-nav-toggle:hover {
  border-color: var(--ng-cyan);
  color: var(--ng-cyan);
}

.ng-nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.ng-nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ng-ease), opacity 0.2s var(--ng-ease);
}

.ng-header[data-open] .ng-nav-toggle__bars span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.ng-header[data-open] .ng-nav-toggle__bars span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.ng-nav-toggle__label {
  font-family: var(--ng-font-num);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

/* ---------- 页脚 ---------- */

.ng-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ng-ink-deep);
  color: var(--ng-muted);
}

.ng-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(49, 240, 200, 0.7) 26%, rgba(255, 181, 39, 0.55) 76%, transparent);
}

.ng-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
  gap: clamp(28px, 4vw, 60px);
  padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 48px);
}

.ng-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 42ch;
}

.ng-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ng-white);
  text-decoration: none;
}

.ng-footer__logo::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--ng-cyan);
  box-shadow: 0 0 0 4px rgba(49, 240, 200, 0.14);
}

.ng-footer__summary {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(169, 200, 190, 0.95);
}

.ng-footer__contact {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.7;
}

.ng-footer__contact-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ng-footer__contact-key {
  font-family: var(--ng-font-num);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--ng-cyan);
  padding-top: 4px;
}

.ng-footer__contact-val {
  color: var(--ng-muted);
  word-break: break-word;
}

.ng-footer__note {
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(169, 200, 190, 0.62);
}

.ng-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-content: start;
}

.ng-footer__col {
  min-width: 0;
}

.ng-footer__title {
  margin-bottom: 14px;
  font-family: var(--ng-font-num);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ng-cyan-soft);
}

.ng-footer__list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.ng-footer__link {
  position: relative;
  display: inline-block;
  font-size: 0.86rem;
  color: var(--ng-muted);
  text-decoration: none;
  transition: color 0.18s var(--ng-ease), transform 0.18s var(--ng-ease);
}

.ng-footer__link:hover {
  color: var(--ng-white);
  transform: translateX(3px);
}

.ng-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 20px 36px;
  border-top: 1px solid var(--ng-line-soft);
  font-family: var(--ng-font-num);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.ng-footer__legal {
  color: rgba(169, 200, 190, 0.8);
}

.ng-footer__meta-text {
  color: rgba(169, 200, 190, 0.5);
}

/* ---------- 通用版块 ---------- */

.ng-section {
  position: relative;
  padding-block: clamp(36px, 6vw, 76px);
}

.ng-section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 72ch;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.ng-section__title {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.ng-section__lead {
  max-width: 60ch;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ng-muted);
}

.ng-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ng-font-num);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ng-cyan);
}

.ng-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ng-cyan);
}

.ng-note {
  display: inline-block;
  font-family: var(--ng-font-num);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: rgba(169, 200, 190, 0.7);
}

.ng-note--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.28em;
}

/* ---------- 按钮 ---------- */

.ng-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ng-ease), color 0.18s var(--ng-ease), border-color 0.18s var(--ng-ease);
}

.ng-btn--primary {
  background: var(--ng-cyan);
  color: #04231D;
}

.ng-btn--primary:hover {
  background: var(--ng-cyan-soft);
}

.ng-btn--ghost {
  border-color: var(--ng-line);
  background: rgba(13, 58, 49, 0.42);
  color: var(--ng-white);
}

.ng-btn--ghost:hover {
  border-color: var(--ng-cyan);
  color: var(--ng-cyan);
}

.ng-btn--quiet {
  padding-inline: 4px;
  color: var(--ng-cyan);
  border-radius: 4px;
}

.ng-btn--quiet:hover {
  color: var(--ng-cyan-soft);
}

/* ---------- 面包屑 ---------- */

.ng-crumbs {
  padding-top: clamp(18px, 3vw, 30px);
}

.ng-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--ng-font-num);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ng-muted);
}

.ng-crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ng-crumbs__item + .ng-crumbs__item::before {
  content: "/";
  color: rgba(31, 92, 78, 0.9);
}

.ng-crumbs__link {
  color: var(--ng-muted);
  text-decoration: none;
  transition: color 0.18s var(--ng-ease);
}

.ng-crumbs__link:hover {
  color: var(--ng-cyan);
}

.ng-crumbs__current {
  color: var(--ng-cyan-soft);
}

/* ---------- 网格 ---------- */

.ng-grid {
  display: grid;
  gap: var(--ng-gap);
}

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

.ng-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ng-grid--rail {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.15fr);
  align-items: start;
}

/* ---------- 画板卡片 ---------- */

.ng-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--ng-line-soft);
  border-radius: var(--ng-radius);
  background: linear-gradient(158deg, rgba(13, 58, 49, 0.94), rgba(8, 43, 36, 0.68));
  box-shadow: 0 20px 44px -36px rgba(0, 0, 0, 0.95);
  transition: border-color 0.2s var(--ng-ease), transform 0.2s var(--ng-ease);
}

.ng-panel:hover {
  border-color: rgba(49, 240, 200, 0.42);
  transform: translateY(-2px);
}

.ng-panel--raised {
  box-shadow: 0 28px 60px -40px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(49, 240, 200, 0.06);
}

.ng-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ng-panel__index {
  font-family: var(--ng-font-num);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(169, 200, 190, 0.7);
}

.ng-panel__title {
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.ng-panel__text {
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--ng-muted);
}

.ng-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 92, 78, 0.45);
}

/* ---------- 标签 / 角标 ---------- */

.ng-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--ng-line);
  border-radius: 999px;
  background: rgba(4, 21, 18, 0.55);
  font-family: var(--ng-font-num);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--ng-muted);
}

.ng-tag--round {
  border-color: rgba(255, 181, 39, 0.5);
  background: rgba(255, 181, 39, 0.1);
  color: var(--ng-amber);
}

.ng-tag--live {
  border-color: rgba(49, 240, 200, 0.5);
  background: rgba(49, 240, 200, 0.1);
  color: var(--ng-cyan);
}

.ng-tag--red {
  border-color: rgba(255, 90, 95, 0.5);
  background: rgba(255, 90, 95, 0.1);
  color: var(--ng-red);
}

.ng-tag--yellow {
  border-color: rgba(255, 216, 77, 0.5);
  background: rgba(255, 216, 77, 0.1);
  color: var(--ng-yellow);
}

.ng-tag--float {
  position: absolute;
  top: -11px;
  right: 18px;
  z-index: 2;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s var(--ng-ease);
}

.ng-panel:hover .ng-tag--float,
.ng-figure:hover .ng-tag--float {
  transform: translateY(-3px);
}

/* ---------- 数字与统计 ---------- */

.ng-num {
  font-family: var(--ng-font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ng-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ng-stat__value {
  font-family: var(--ng-font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ng-cyan);
  line-height: 1.1;
}

.ng-stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(169, 200, 190, 0.75);
}

/* ---------- 时间轴 ---------- */

.ng-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 24px;
  border-left: 1px solid var(--ng-line);
}

.ng-rail__item {
  position: relative;
  padding-bottom: 22px;
}

.ng-rail__item:last-child {
  padding-bottom: 0;
}

.ng-rail__dot {
  position: absolute;
  left: -29px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ng-line);
  box-shadow: 0 0 0 4px var(--ng-ink);
}

.ng-rail__item.is-active .ng-rail__dot {
  background: var(--ng-cyan);
  box-shadow: 0 0 0 4px var(--ng-ink), 0 0 14px rgba(49, 240, 200, 0.7);
}

.ng-rail__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ng-white);
}

.ng-rail__meta {
  display: block;
  margin-top: 2px;
  font-family: var(--ng-font-num);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(169, 200, 190, 0.7);
}

/* ---------- 正文排版 ---------- */

.ng-prose {
  max-width: 66ch;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(244, 251, 247, 0.86);
}

.ng-prose > * + * {
  margin-top: 1.1em;
}

.ng-prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: 0.005em;
}

.ng-prose h3 {
  margin-top: 1.8em;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.ng-prose ul,
.ng-prose ol {
  padding-left: 1.25em;
}

.ng-prose li + li {
  margin-top: 0.45em;
}

.ng-prose a {
  color: var(--ng-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(49, 240, 200, 0.4);
  text-underline-offset: 3px;
}

.ng-prose strong {
  color: var(--ng-white);
  font-weight: 700;
}

.ng-prose blockquote {
  margin: 1.6em 0;
  padding-left: 18px;
  border-left: 2px solid var(--ng-cyan);
  color: var(--ng-muted);
}

/* ---------- 图片容器（页面阶段放入 img） ---------- */

.ng-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.ng-figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ng-line-soft);
  border-radius: var(--ng-radius);
  background:
    linear-gradient(140deg, #0D3A31 0%, #082B24 58%, #041512 100%);
}

.ng-figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(49, 240, 200, 0.09) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(115deg, rgba(255, 181, 39, 0.06) 0 1px, transparent 1px 148px);
  pointer-events: none;
}

.ng-figure__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ng-figure__caption {
  font-size: 0.76rem;
  line-height: 1.65;
  color: rgba(169, 200, 190, 0.72);
}

.ng-figure--wide .ng-figure__media {
  aspect-ratio: 21 / 9;
}

.ng-figure--tall .ng-figure__media {
  aspect-ratio: 3 / 4;
}

.ng-figure--square .ng-figure__media {
  aspect-ratio: 1 / 1;
}

/* ---------- 滚动进度条 / 返回顶部（由 JS 注入） ---------- */

.ng-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: 2px;
  background: linear-gradient(90deg, var(--ng-cyan), var(--ng-amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.ng-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--ng-line);
  border-radius: 999px;
  background: rgba(4, 21, 18, 0.94);
  color: var(--ng-cyan-soft);
  font-family: var(--ng-font-num);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ng-ease), transform 0.22s var(--ng-ease), visibility 0.22s var(--ng-ease), border-color 0.18s var(--ng-ease);
}

.ng-top:hover {
  border-color: var(--ng-cyan);
}

.ng-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ng-top__arrow {
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.ng-top__text {
  line-height: 1;
}

/* ---------- 进入视口显现 ---------- */

html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ng-ease), transform 0.55s var(--ng-ease);
}

html[data-reveal-ready] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .ng-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  :root {
    --ng-head-h: 66px;
  }

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

  .ng-nav {
    position: fixed;
    top: var(--ng-head-h);
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - var(--ng-head-h));
    overflow-y: auto;
    padding: 8px 20px 26px;
    background: rgba(4, 21, 18, 0.985);
    border-bottom: 1px solid var(--ng-line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s var(--ng-ease), transform 0.18s var(--ng-ease), visibility 0.18s var(--ng-ease);
  }

  .ng-header[data-open] .ng-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.ng-nav-open {
    overflow: hidden;
  }

  .ng-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ng-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 15px 2px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(31, 92, 78, 0.5);
  }

  .ng-nav__link::after {
    display: none;
  }

  .ng-nav__link[aria-current="page"] {
    color: var(--ng-cyan);
  }

  .ng-grid--rail,
  .ng-grid--2,
  .ng-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ng-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 620px) {
  .ng-shell {
    width: min(100% - 32px, var(--ng-shell-w));
  }

  .ng-brand__tag {
    display: none;
  }

  .ng-brand__mark {
    width: 36px;
    height: 36px;
  }

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

  .ng-footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ng-top {
    right: 14px;
    bottom: 14px;
  }
}

/* ---------- 动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html[data-reveal-ready] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ng-panel:hover,
  .ng-footer__link:hover,
  .ng-tag--float {
    transform: none;
  }
}
