/* ==========================================================================
   NG赛场 · 共享样式 /assets/site.css
   夜场城市观赛：深墨绿 + 夜场蓝底，荧光青状态，助威橙 CTA，霓虹紫坐标
   ========================================================================== */

:root {
  --ng-ink: #061612;
  --ng-night: #0B1B33;
  --ng-panel: #102C26;
  --ng-cyan: #45F0D0;
  --ng-orange: #FF7A3D;
  --ng-violet: #8B5CF6;
  --ng-mist: #A7C4BD;
  --ng-paper: #F4FBF8;
  --ng-deep: #050B12;
  --ng-gold: #F5C84C;
  --ng-fog: #DFFBF3;
  --ng-line: #1D3A34;
  --ng-text: #CFE4DE;

  --ng-font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ng-font-body: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ng-font-mono: "JetBrains Mono", "IBM Plex Mono", "Sarasa Mono SC", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --ng-radius-lg: 32px;
  --ng-radius-md: 20px;
  --ng-header-offset: 104px;
  --ng-ease: cubic-bezier(.22, .61, .36, 1);
  --ng-wrap: 1240px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ng-header-offset) + 16px);
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ng-ink);
  background-image:
    radial-gradient(1100px 560px at 10% -12%, rgba(139, 92, 246, .16), transparent 65%),
    radial-gradient(900px 520px at 94% -4%, rgba(69, 240, 208, .12), transparent 62%);
  background-repeat: no-repeat;
  color: var(--ng-text);
  font-family: var(--ng-font-body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul, ol { padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--ng-font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.14;
  color: var(--ng-paper);
}

h1 { font-size: clamp(2rem, 4.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

a {
  color: var(--ng-cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}

a:hover { color: var(--ng-paper); }

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

button { font: inherit; color: inherit; }

::selection {
  background: rgba(69, 240, 208, .28);
  color: var(--ng-paper);
}

/* ---------- 焦点与无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--ng-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.ng-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ng-skip {
  position: absolute;
  top: -200px;
  left: clamp(.75rem, 3vw, 2rem);
  z-index: 200;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  background: var(--ng-cyan);
  color: #04140F;
  font-family: var(--ng-font-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: top .18s var(--ng-ease);
}

.ng-skip:focus {
  top: .75rem;
  color: #04140F;
}

/* ---------- 布局基础 ---------- */
.ng-container {
  width: 100%;
  max-width: var(--ng-wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 3rem);
}

.ng-section {
  padding-block: clamp(2.8rem, 6.5vw, 5.5rem);
}

.ng-main--offset {
  padding-top: var(--ng-header-offset);
}

.ng-grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.ng-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(69, 240, 208, .35), rgba(139, 92, 246, .28), transparent);
}

.ng-band {
  position: relative;
  padding-block: clamp(2.1rem, 5vw, 3.6rem);
  background:
    linear-gradient(104deg, rgba(11, 27, 51, .94), rgba(16, 44, 38, .88) 52%, rgba(6, 22, 18, .96));
  border-block: 1px solid var(--ng-line);
  overflow: hidden;
}

.ng-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, .12) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 80%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 80%);
}

/* ---------- 文本组件 ---------- */
.ng-eyebrow {
  font-family: var(--ng-font-mono);
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ng-cyan);
}

.ng-prose {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ng-text);
}

.ng-prose p + p { margin-top: 1em; }
.ng-prose h2, .ng-prose h3 { margin-top: 1.6em; margin-bottom: .6em; }
.ng-prose ul, .ng-prose ol { margin-top: .8em; padding-left: 1.25em; }
.ng-prose li + li { margin-top: .45em; }
.ng-prose strong { color: var(--ng-paper); font-weight: 700; }

/* ---------- 按钮 ---------- */
.ng-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--ng-font-body);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ng-ease), background-color .18s var(--ng-ease),
              border-color .18s var(--ng-ease), box-shadow .18s var(--ng-ease), color .18s var(--ng-ease);
}

.ng-btn--primary {
  background: var(--ng-orange);
  color: #160800;
  box-shadow: 0 12px 26px rgba(255, 122, 61, .26);
}

.ng-btn--primary:hover,
.ng-btn--primary:focus-visible {
  color: #160800;
  background: #FF8E57;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 122, 61, .34);
}

.ng-btn--ghost {
  background: transparent;
  border-color: rgba(69, 240, 208, .45);
  color: var(--ng-cyan);
}

.ng-btn--ghost:hover,
.ng-btn--ghost:focus-visible {
  color: var(--ng-paper);
  border-color: var(--ng-cyan);
  background: rgba(69, 240, 208, .1);
  transform: translateY(-2px);
}

.ng-btn--sm {
  padding: .6rem 1.05rem;
  font-size: .82rem;
}

/* ---------- 标签 ---------- */
.ng-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .34rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(69, 240, 208, .32);
  background: rgba(69, 240, 208, .08);
  color: var(--ng-cyan);
  font-family: var(--ng-font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ng-chip--warm {
  border-color: rgba(255, 122, 61, .42);
  background: rgba(255, 122, 61, .13);
  color: #FFB28C;
}

/* ---------- 面板 ---------- */
.ng-panel {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border-radius: var(--ng-radius-lg);
  border: 1px solid var(--ng-line);
  background: linear-gradient(158deg, #102C26 0%, #0B1B33 68%, #061612 100%);
  overflow: hidden;
}

.ng-panel--cut {
  border-radius: var(--ng-radius-lg) var(--ng-radius-lg) var(--ng-radius-lg) 8px;
}

/* ---------- 图片容器（页面阶段放占位图） ---------- */
.ng-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--ng-radius-lg);
  border: 1px solid rgba(69, 240, 208, .16);
  background: linear-gradient(150deg, #0B1B33, #102C26 56%, #061612);
  isolation: isolate;
}

.ng-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, .2) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 72%);
}

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

.ng-media--wide { aspect-ratio: 16 / 9; }
.ng-media--tall { aspect-ratio: 3 / 4; }
.ng-media--square { aspect-ratio: 1 / 1; }

.ng-media__tag {
  position: absolute;
  z-index: 3;
  left: 1rem;
  bottom: 1rem;
  padding: .32rem .8rem;
  border-radius: 999px;
  background: rgba(5, 11, 18, .82);
  border: 1px solid rgba(69, 240, 208, .35);
  color: var(--ng-cyan);
  font-family: var(--ng-font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
}

/* ---------- 面包屑 ---------- */
.ng-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--ng-font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ng-mist);
  list-style: none;
}

.ng-breadcrumb a {
  color: var(--ng-mist);
  text-decoration: none;
}

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

.ng-breadcrumb__sep {
  color: rgba(167, 196, 189, .45);
}

/* ---------- 标签页 ---------- */
.ng-tabs { display: block; }

.ng-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .35rem;
  border-radius: 999px;
  border: 1px solid var(--ng-line);
  background: rgba(16, 44, 38, .72);
  width: max-content;
  max-width: 100%;
}

.ng-tabs__tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: .58rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ng-mist);
  font-family: var(--ng-font-mono);
  font-size: .8rem;
  letter-spacing: .08em;
  transition: color .18s var(--ng-ease), background-color .18s var(--ng-ease);
}

.ng-tabs__tab:hover { color: var(--ng-paper); }

.ng-tabs__tab:focus-visible {
  outline: 2px solid var(--ng-cyan);
  outline-offset: 2px;
}

.ng-tabs__tab[aria-selected="true"] {
  background: var(--ng-cyan);
  color: #04140F;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(69, 240, 208, .22);
}

.ng-tabs__tab[aria-selected="true"]:hover { color: #04140F; }

.ng-tabs__panel {
  margin-top: 1.5rem;
}

.ng-tabs__panel[hidden] { display: none; }

/* ---------- 显现动效 ---------- */
.ng-js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ng-ease), transform .6s var(--ng-ease);
}

.ng-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   头部
   ========================================================================== */
.ng-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(5, 11, 18, .88) 0%, rgba(5, 11, 18, .52) 58%, rgba(5, 11, 18, 0) 100%);
  transition: background-color .22s var(--ng-ease), backdrop-filter .22s var(--ng-ease),
              box-shadow .22s var(--ng-ease), border-color .22s var(--ng-ease);
  border-bottom: 1px solid transparent;
}

.ng-header.is-scrolled,
.ng-header[data-solid="true"] {
  background: rgba(6, 22, 18, .94);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: var(--ng-line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .48);
}

/* 顶部信号条 */
.ng-header__ticker {
  overflow: hidden;
  max-height: 60px;
  background: var(--ng-deep);
  border-bottom: 1px solid rgba(139, 92, 246, .22);
  transition: max-height .22s var(--ng-ease), opacity .22s var(--ng-ease);
}

.ng-header.is-scrolled .ng-header__ticker,
.ng-header[data-solid="true"] .ng-header__ticker {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.ng-header__ticker-inner {
  max-width: var(--ng-wrap);
  margin-inline: auto;
  padding: .38rem clamp(1.1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--ng-font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--ng-mist);
}

.ng-header__ticker-note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ng-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ng-cyan);
  box-shadow: 0 0 10px rgba(69, 240, 208, .9);
  animation: ng-pulse 2.6s ease-in-out infinite;
}

@keyframes ng-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.78); }
}

.ng-header__ticker-link {
  flex: none;
  color: var(--ng-mist);
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 196, 189, .35);
  padding-bottom: 1px;
  transition: color .18s var(--ng-ease), border-color .18s var(--ng-ease);
}

.ng-header__ticker-link:hover,
.ng-header__ticker-link:focus-visible {
  color: var(--ng-cyan);
  border-bottom-color: var(--ng-cyan);
}

/* 主行 */
.ng-header__inner {
  position: relative;
  max-width: var(--ng-wrap);
  margin-inline: auto;
  padding: .85rem clamp(1.1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
}

.ng-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ng-paper);
  flex: none;
}

.ng-brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(69, 240, 208, .5);
  background: linear-gradient(140deg, #0B1B33, #102C26);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(139, 92, 246, .2);
  overflow: hidden;
}

.ng-brand__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, .38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, .38) 1px, transparent 1px);
  background-size: 11px 11px;
}

.ng-brand__cross {
  position: relative;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ng-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(69, 240, 208, .85);
}

.ng-brand__cross::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ng-cyan);
  opacity: .65;
}

.ng-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ng-brand__name {
  font-family: var(--ng-font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.02em;
  color: var(--ng-paper);
}

.ng-brand__line {
  font-family: var(--ng-font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--ng-mist);
  margin-top: .22rem;
}

/* 导航 */
.ng-nav {
  margin-inline: auto;
}

.ng-nav__list {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
}

.ng-nav__item { display: flex; }

.ng-nav__link {
  display: inline-flex;
  align-items: center;
  padding: .52rem .82rem;
  border-radius: 999px;
  color: var(--ng-mist);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ng-ease), background-color .18s var(--ng-ease), box-shadow .18s var(--ng-ease);
}

.ng-nav__link:hover,
.ng-nav__link:focus-visible {
  color: var(--ng-paper);
  background: rgba(69, 240, 208, .1);
}

.ng-nav__link[aria-current="page"] {
  color: #04140F;
  background: var(--ng-cyan);
  box-shadow: 0 10px 24px rgba(69, 240, 208, .24);
}

.ng-nav__link[aria-current="page"]:hover,
.ng-nav__link[aria-current="page"]:focus-visible {
  color: #04140F;
  background: #6FF5DC;
}

/* 右侧动作区 */
.ng-header__actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: none;
  margin-left: auto;
}

.ng-header__cta { flex: none; }

/* 移动菜单按钮 */
.ng-navtoggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(69, 240, 208, .35);
  background: rgba(69, 240, 208, .08);
  color: var(--ng-paper);
  font-family: var(--ng-font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  cursor: pointer;
  transition: background-color .18s var(--ng-ease), border-color .18s var(--ng-ease);
}

.ng-navtoggle:hover {
  background: rgba(69, 240, 208, .16);
  border-color: var(--ng-cyan);
}

.ng-navtoggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.ng-navtoggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ng-cyan);
  transition: transform .2s var(--ng-ease), opacity .2s var(--ng-ease);
}

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

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

/* 滚动进度 */
.ng-header__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ng-cyan), var(--ng-gold) 55%, var(--ng-orange));
  box-shadow: 0 0 14px rgba(69, 240, 208, .7);
  transition: transform .1s linear;
  pointer-events: none;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.ng-footer {
  position: relative;
  overflow: hidden;
  background: var(--ng-deep);
  border-top: 1px solid var(--ng-line);
  color: var(--ng-mist);
}

.ng-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, .13) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
}

.ng-footer__glow {
  position: absolute;
  inset: -30% -12% auto -12%;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 16% 26%, rgba(139, 92, 246, .32), transparent 72%),
    radial-gradient(closest-side at 82% 4%, rgba(69, 240, 208, .2), transparent 70%),
    radial-gradient(closest-side at 56% 92%, rgba(255, 122, 61, .14), transparent 72%);
  opacity: .9;
}

.ng-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--ng-wrap);
  margin-inline: auto;
  padding: clamp(2.8rem, 6vw, 5rem) clamp(1.1rem, 4vw, 3rem) 0;
}

.ng-footer__top {
  max-width: 760px;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(167, 196, 189, .16);
}

.ng-footer__tagline {
  margin-top: 1rem;
  font-family: var(--ng-font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--ng-paper);
  max-width: 13ch;
}

.ng-footer__summary {
  margin-top: 1.1rem;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ng-mist);
}

.ng-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.ng-footer__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  padding-block: clamp(2rem, 4vw, 3.2rem);
}

.ng-footer__col {
  counter-reset: ngfoot;
  min-width: 0;
}

.ng-footer__coltitle {
  font-family: var(--ng-font-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ng-cyan);
  margin-bottom: 1.1rem;
}

.ng-footer__links {
  list-style: none;
  display: grid;
  gap: .7rem;
}

.ng-footer__link {
  display: inline-flex;
  align-items: baseline;
  gap: .65rem;
  color: var(--ng-mist);
  font-size: .95rem;
  text-decoration: none;
  transition: color .18s var(--ng-ease), transform .18s var(--ng-ease);
}

.ng-footer__link::before {
  counter-increment: ngfoot;
  content: "0" counter(ngfoot);
  font-family: var(--ng-font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: rgba(139, 92, 246, .85);
  transition: color .18s var(--ng-ease);
}

.ng-footer__link:hover,
.ng-footer__link:focus-visible {
  color: var(--ng-paper);
  transform: translateX(3px);
}

.ng-footer__link:hover::before,
.ng-footer__link:focus-visible::before {
  color: var(--ng-cyan);
}

.ng-footer__contact {
  list-style: none;
  display: grid;
  gap: .8rem;
}

.ng-footer__contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .7rem;
  font-size: .92rem;
  line-height: 1.6;
}

.ng-footer__key {
  flex: none;
  font-family: var(--ng-font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: rgba(167, 196, 189, .72);
  min-width: 2.4rem;
}

.ng-footer__value {
  color: var(--ng-paper);
  word-break: break-word;
}

.ng-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(167, 196, 189, .16);
  font-family: var(--ng-font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: rgba(167, 196, 189, .8);
}

.ng-footer__copy { margin: 0; }

.ng-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  list-style: none;
}

.ng-footer__legal-link {
  color: rgba(167, 196, 189, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ng-ease), border-color .18s var(--ng-ease);
}

.ng-footer__legal-link:hover,
.ng-footer__legal-link:focus-visible {
  color: var(--ng-cyan);
  border-bottom-color: var(--ng-cyan);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1199px) {
  .ng-nav__link {
    padding: .5rem .66rem;
    font-size: .84rem;
  }
}

@media (max-width: 1079px) {
  :root { --ng-header-offset: 92px; }

  .ng-navtoggle { display: inline-flex; }

  .ng-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    display: none;
    padding: .9rem clamp(1.1rem, 4vw, 3rem) 1.4rem;
    background: rgba(6, 22, 18, .97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ng-line);
    box-shadow: 0 28px 52px rgba(0, 0, 0, .55);
    max-height: calc(100vh - var(--ng-header-offset));
    overflow-y: auto;
  }

  .ng-header[data-open] .ng-nav { display: block; }

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

  .ng-nav__item { display: block; }

  .ng-nav__link {
    display: block;
    padding: .82rem 1rem;
    border-radius: 14px;
    font-size: 1rem;
  }

  .ng-nav__link[aria-current="page"] {
    border-radius: 14px;
  }

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

  .ng-footer__col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .ng-footer__grid {
    grid-template-columns: 1fr;
  }

  .ng-footer__col:last-child {
    grid-column: auto;
  }
}

@media (max-width: 719px) {
  .ng-header__cta { display: none; }

  .ng-header__ticker-inner {
    font-size: .66rem;
    letter-spacing: .06em;
  }

  .ng-brand__line { display: none; }

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

  .ng-header__inner { padding-block: .7rem; }

  .ng-footer__tagline { max-width: none; }

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

@media (max-width: 420px) {
  .ng-header__ticker-note { letter-spacing: .02em; }
  .ng-navtoggle__label { display: none; }
  .ng-navtoggle { padding: .55rem .7rem; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .ng-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ng-header__progress { transition: none; }

  .ng-dot { animation: none; }

  .ng-btn:hover,
  .ng-footer__link:hover {
    transform: none;
  }
}
