/* ==========================================================================
   星空体育 · 共享外壳 site.css
   reset / tokens / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

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

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

body {
  margin: 0;
  overflow-x: hidden;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- 2. tokens ---------- */
:root {
  --nx-void: #05070F;
  --nx-night: #0E1730;
  --nx-dusk: #33265E;
  --nx-violet: #8A4BFF;
  --nx-gold: #F5C462;
  --nx-aurora: #2BD9C6;
  --nx-paper: #F6EFE3;
  --nx-ink: #12141C;
  --nx-dust: #9BA6BF;
  --nx-coral: #FF7A6B;

  --nx-body: #C9D3E6;
  --nx-strong: #F4F7FF;

  --nx-display: "HarmonyOS Sans SC","Source Han Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --nx-text: "PingFang SC","Hiragino Sans GB","Source Han Sans SC","Microsoft YaHei",sans-serif;
  --nx-mono: "JetBrains Mono","SFMono-Regular","Roboto Mono",monospace;

  --nx-wide: 1200px;
  --nx-gutter: clamp(18px, 4vw, 44px);
  --nx-header-h: 72px;

  --nx-radius-card: 22px 6px 22px 6px;
  --nx-radius-band: 4px 30px 4px 30px;
  --nx-radius-pill: 999px;

  --nx-line: rgba(155, 166, 191, .18);
  --nx-line-strong: rgba(155, 166, 191, .34);

  --nx-ease: cubic-bezier(.22, .7, .32, 1);
}

/* ---------- 3. 中文排版与深空底 ---------- */
body {
  position: relative;
  background-color: var(--nx-void);
  color: var(--nx-body);
  font-family: var(--nx-text);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: .01em;
  background-image:
    radial-gradient(1100px 620px at 84% -10%, rgba(138, 75, 255, .22), transparent 64%),
    radial-gradient(880px 540px at 4% 10%, rgba(43, 217, 198, .10), transparent 62%),
    radial-gradient(1500px 900px at 50% 120%, rgba(51, 38, 94, .48), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 18%, rgba(246, 239, 227, .7), transparent),
    radial-gradient(1px 1px at 22% 64%, rgba(155, 166, 191, .6), transparent),
    radial-gradient(1.8px 1.8px at 37% 32%, rgba(245, 196, 98, .5), transparent),
    radial-gradient(1px 1px at 51% 84%, rgba(246, 239, 227, .48), transparent),
    radial-gradient(1.6px 1.6px at 64% 12%, rgba(138, 75, 255, .72), transparent),
    radial-gradient(1px 1px at 76% 58%, rgba(43, 217, 198, .55), transparent),
    radial-gradient(2px 2px at 88% 38%, rgba(246, 239, 227, .62), transparent),
    radial-gradient(1px 1px at 94% 80%, rgba(155, 166, 191, .5), transparent),
    radial-gradient(1.2px 1.2px at 14% 88%, rgba(43, 217, 198, .42), transparent),
    radial-gradient(1px 1px at 44% 6%, rgba(246, 239, 227, .52), transparent);
  animation: nx-drift 34s ease-in-out infinite alternate;
}

@keyframes nx-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-14px, -22px, 0); }
}

@keyframes nx-orbit {
  to { transform: rotate(360deg); }
}

@keyframes nx-spin {
  to { transform: rotate(360deg); }
}

:focus-visible {
  outline: 2px solid var(--nx-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content,
[data-section] {
  scroll-margin-top: calc(var(--nx-header-h) + 20px);
}

/* ---------- 4. 跳转链接 ---------- */
.nx-skip {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 90;
  padding: 10px 18px;
  border-radius: var(--nx-radius-pill);
  background: var(--nx-gold);
  color: var(--nx-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 14px 30px -16px rgba(245, 196, 98, .95);
  transform: translateY(-180%);
  transition: transform .22s var(--nx-ease);
}

.nx-skip:focus,
.nx-skip:focus-visible { transform: translateY(0); }

/* ---------- 5. 头部命令栏 ---------- */
.nx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  color: var(--nx-body);
  background: rgba(5, 7, 15, .8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--nx-line);
  transition: background-color .3s var(--nx-ease), border-color .3s var(--nx-ease);
}

.nx-header[data-scrolled] {
  background: rgba(5, 7, 15, .93);
  border-bottom-color: rgba(138, 75, 255, .38);
}

.nx-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(155, 166, 191, .14);
}

.nx-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--nx-aurora), var(--nx-violet) 46%, var(--nx-gold));
  box-shadow: 0 0 14px rgba(138, 75, 255, .8);
}

.nx-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  min-height: var(--nx-header-h);
  padding-block: 13px;
  transition: padding .3s var(--nx-ease), min-height .3s var(--nx-ease);
}

.nx-header[data-scrolled] .nx-header__bar {
  min-height: 60px;
  padding-block: 8px;
}

/* 品牌 */
.nx-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 12px;
}

.nx-logo__glyph {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(138, 75, 255, .8);
  box-shadow: 0 0 20px rgba(138, 75, 255, .42), inset 0 0 14px rgba(138, 75, 255, .3);
}

.nx-logo__glyph::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(245, 196, 98, .95), rgba(245, 196, 98, 0) 70%);
}

.nx-logo__glyph::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -20px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--nx-aurora);
  box-shadow: 0 0 10px var(--nx-aurora);
  transform-origin: 3.5px 20px;
  animation: nx-orbit 7.5s linear infinite;
}

.nx-logo__words {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nx-logo__name {
  font-family: var(--nx-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--nx-strong);
}

.nx-logo__sig {
  font-family: var(--nx-mono);
  font-size: 9.5px;
  letter-spacing: .24em;
  color: var(--nx-dust);
}

/* 标语胶囊 */
.nx-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 5px 13px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-pill);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--nx-dust);
  white-space: nowrap;
}

.nx-header__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nx-aurora);
  box-shadow: 0 0 9px var(--nx-aurora);
}

/* 当前栏目徽标 */
.nx-header__chip {
  display: none;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  padding: 5px 13px;
  border: 1px solid rgba(245, 196, 98, .3);
  border-radius: var(--nx-radius-pill);
  background: rgba(245, 196, 98, .07);
  font-family: var(--nx-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(245, 196, 98, .88);
  white-space: nowrap;
}

.nx-header__chip b {
  font-family: var(--nx-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #FFE3AC;
}

/* 导航 */
.nx-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.nx-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 8px);
}

.nx-nav__item { display: flex; }

.nx-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: var(--nx-radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: #C3CCE0;
  white-space: nowrap;
  transition: color .2s var(--nx-ease), background-color .2s var(--nx-ease), box-shadow .2s var(--nx-ease);
}

.nx-nav__link::before {
  content: attr(data-index);
  font-family: var(--nx-mono);
  font-size: 10px;
  color: rgba(155, 166, 191, .72);
  transition: color .2s var(--nx-ease);
}

.nx-nav__link:hover {
  color: #FFFFFF;
  background: rgba(138, 75, 255, .15);
}

.nx-nav__link[aria-current="page"] {
  color: #FFFFFF;
  background: linear-gradient(160deg, rgba(138, 75, 255, .3), rgba(138, 75, 255, .08));
  box-shadow: inset 0 0 0 1px rgba(138, 75, 255, .48);
}

.nx-nav__link[aria-current="page"]::before { color: var(--nx-gold); }

.nx-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 2px;
  background: var(--nx-gold);
  box-shadow: 0 0 10px rgba(245, 196, 98, .95);
}

.nx-nav__foot { display: none; }

/* 行动区 */
.nx-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* 汉堡按钮 */
.nx-burger {
  display: none;
  position: relative;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 15px 9px 12px;
  border: 1px solid var(--nx-line-strong);
  border-radius: var(--nx-radius-pill);
  background: rgba(14, 23, 48, .82);
  color: var(--nx-strong);
  font-size: 13px;
  letter-spacing: .1em;
}

.nx-burger__orbit {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid rgba(138, 75, 255, .85);
}

.nx-burger__orbit::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--nx-gold);
  box-shadow: 0 0 9px var(--nx-gold);
  transition: inset .25s var(--nx-ease), border-radius .25s var(--nx-ease);
}

.nx-burger__orbit::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(43, 217, 198, .45);
  animation: nx-spin 9s linear infinite;
}

.nx-burger[aria-expanded="true"] .nx-burger__orbit::before {
  inset: 8px 4px;
  border-radius: 2px;
}

.nx-burger[aria-expanded="true"] {
  border-color: rgba(245, 196, 98, .6);
  color: var(--nx-gold);
}

/* ---------- 6. 页脚 ---------- */
.nx-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(60px, 9vw, 128px);
  padding-bottom: clamp(22px, 3vw, 34px);
  color: #B7C2D8;
  font-size: 14.5px;
}

.nx-footer__rail-wrap { margin-bottom: clamp(30px, 5vw, 54px); }

.nx-footer__rail {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(138, 75, 255, .55) 16%,
    rgba(43, 217, 198, .5) 52%,
    rgba(245, 196, 98, .5) 82%,
    transparent);
}

.nx-footer__rail-core {
  position: absolute;
  left: 50%;
  top: -1px;
  width: 68px;
  height: 3px;
  margin-left: -34px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--nx-violet), var(--nx-gold));
  box-shadow: 0 0 18px rgba(138, 75, 255, .75);
}

.nx-footer__rail-node {
  position: absolute;
  top: -3px;
  left: 18%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nx-aurora);
  box-shadow: 0 0 12px var(--nx-aurora);
}

.nx-footer__rail-node--b {
  left: 78%;
  background: var(--nx-gold);
  box-shadow: 0 0 12px var(--nx-gold);
}

.nx-footer__shell {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(0, 1.5fr) minmax(250px, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.nx-logo--footer .nx-logo__glyph { width: 30px; height: 30px; }
.nx-logo--footer .nx-logo__name { font-size: 17px; }

.nx-footer__motto {
  margin-top: 16px;
  max-width: 24ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--nx-dust);
}

.nx-footer__map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.nx-footer__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--nx-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #EEF2FB;
}

.nx-footer__title::before {
  content: "";
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--nx-gold);
  box-shadow: 0 0 9px var(--nx-gold);
}

.nx-footer__list li + li { margin-top: 10px; }

.nx-footer__link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: #AEB9D0;
  transition: color .2s var(--nx-ease), padding-left .22s var(--nx-ease);
}

.nx-footer__link::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--nx-gold);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--nx-ease);
}

.nx-footer__link:hover { color: #FFFFFF; padding-left: 16px; }
.nx-footer__link:hover::before { transform: translateY(-50%) scaleX(1); }

.nx-contact { display: grid; gap: 14px; }

.nx-contact__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(155, 166, 191, .2);
}

.nx-contact__key {
  grid-column: 1 / -1;
  font-family: var(--nx-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(155, 166, 191, .9);
}

.nx-contact__val {
  font-family: var(--nx-mono);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: #E4E9F6;
  word-break: break-all;
}

.nx-contact__val--plain {
  font-family: var(--nx-text);
  font-size: 14px;
  word-break: normal;
}

.nx-copy {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid var(--nx-line-strong);
  border-radius: var(--nx-radius-pill);
  background: rgba(14, 23, 48, .72);
  color: var(--nx-dust);
  font-size: 11.5px;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: color .2s var(--nx-ease), border-color .2s var(--nx-ease), background-color .2s var(--nx-ease);
}

.nx-copy:hover {
  color: var(--nx-aurora);
  border-color: rgba(43, 217, 198, .6);
}

.nx-copy[data-copied] {
  color: var(--nx-aurora);
  border-color: rgba(43, 217, 198, .7);
  background: rgba(43, 217, 198, .1);
}

.nx-contact__note {
  margin-top: 16px;
  max-width: 42ch;
  font-size: 12.5px;
  line-height: 1.78;
  color: rgba(155, 166, 191, .92);
}

.nx-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid rgba(155, 166, 191, .14);
  font-size: 12.5px;
  color: rgba(155, 166, 191, .88);
}

.nx-legal__icp,
.nx-legal__copy {
  font-family: var(--nx-mono);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 7. 通用容器与排版 ---------- */
.nx-shell {
  width: 100%;
  max-width: var(--nx-wide);
  margin-inline: auto;
  padding-inline: var(--nx-gutter);
}

.nx-main {
  position: relative;
  z-index: 1;
  padding-top: var(--nx-header-h);
}

.nx-main--bleed { padding-top: 0; }

.nx-section {
  position: relative;
  padding-block: clamp(42px, 6vw, 84px);
}

.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nx-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--nx-gold);
}

.nx-title {
  font-family: var(--nx-display);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.16;
  color: var(--nx-strong);
  text-wrap: balance;
}

.nx-title--xl { font-size: clamp(38px, 7vw, 76px); }
.nx-title--lg { font-size: clamp(28px, 4.2vw, 40px); }
.nx-title--md { font-size: clamp(20px, 2.4vw, 26px); }

.nx-title--glow { text-shadow: 0 0 8px rgba(245, 196, 98, .35); }

.nx-lead {
  max-width: 60ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.9;
  color: #C6D0E4;
}

.nx-text { color: #B7C2D8; }

.nx-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--nx-dust);
}

.nx-mono {
  font-family: var(--nx-mono);
  font-variant-numeric: tabular-nums;
}

.nx-idx {
  font-family: var(--nx-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--nx-gold);
}

.nx-section-title {
  position: relative;
  padding-left: 22px;
}

.nx-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 2px;
  border-radius: 2px;
  background: var(--nx-line-strong);
  transition: background-color .3s var(--nx-ease), box-shadow .3s var(--nx-ease);
}

[data-section][data-active] .nx-section-title::before {
  background: var(--nx-gold);
  box-shadow: 0 0 14px rgba(245, 196, 98, .85);
}

.nx-rule {
  height: 1px;
  border: 0;
  margin-block: clamp(28px, 4vw, 52px);
  background: linear-gradient(90deg, transparent, rgba(155, 166, 191, .38), transparent);
}

/* 暖纸阅读带 */
.nx-paper {
  margin-block: clamp(48px, 6vw, 76px);
  padding: clamp(24px, 4vw, 54px);
  border-radius: var(--nx-radius-band);
  background: var(--nx-paper);
  color: var(--nx-ink);
  box-shadow: 0 34px 74px -44px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(18, 20, 28, .08);
}

.nx-paper h2,
.nx-paper h3,
.nx-paper .nx-title { color: var(--nx-ink); }
.nx-paper .nx-text,
.nx-paper p { color: #2C3140; }
.nx-paper .nx-note,
.nx-paper .nx-mono { color: #4B5266; }
.nx-paper .nx-eyebrow { color: #7A4DE0; }

/* ---------- 8. 按钮 ---------- */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--nx-radius-pill);
  font-family: var(--nx-text);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  transition: transform .2s var(--nx-ease), box-shadow .24s var(--nx-ease),
              background-color .24s var(--nx-ease), color .24s var(--nx-ease),
              border-color .24s var(--nx-ease);
}

.nx-btn--primary {
  background: linear-gradient(135deg, #9C63FF, #6A2FE0 58%, #4C1FAE);
  color: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(138, 75, 255, .55), 0 14px 34px -16px rgba(138, 75, 255, .95);
}

.nx-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(245, 196, 98, .5), 0 18px 42px -16px rgba(138, 75, 255, 1);
}

.nx-btn--ghost {
  border-color: var(--nx-line-strong);
  background: rgba(14, 23, 48, .62);
  color: #D9E1F2;
}

.nx-btn--ghost:hover {
  border-color: rgba(43, 217, 198, .58);
  background: rgba(43, 217, 198, .1);
  color: #FFFFFF;
}

.nx-btn--gold {
  background: linear-gradient(135deg, #FFD98A, #F5C462 55%, #DCA13C);
  color: #1A1405;
  box-shadow: 0 14px 34px -18px rgba(245, 196, 98, .95);
}

.nx-btn--gold:hover { transform: translateY(-2px); }

.nx-btn--quiet {
  border-color: rgba(43, 217, 198, .38);
  color: var(--nx-aurora);
}

.nx-btn--quiet:hover { background: rgba(43, 217, 198, .1); color: #FFFFFF; }

.nx-btn--small { padding: 9px 15px; font-size: 13px; }

/* ---------- 9. 卡片、面板、标签、状态 ---------- */
.nx-card {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-card);
  background: linear-gradient(168deg, rgba(14, 23, 48, .92), rgba(5, 7, 15, .86));
  transition: transform .3s var(--nx-ease), border-color .3s var(--nx-ease), box-shadow .3s var(--nx-ease);
}

.nx-card:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 75, 255, .5);
  box-shadow: 0 26px 52px -30px rgba(138, 75, 255, .9);
}

.nx-panel {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--nx-line);
  border-radius: 18px;
  background: rgba(14, 23, 48, .72);
}

.nx-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--nx-line-strong);
  border-radius: var(--nx-radius-pill);
  background: rgba(14, 23, 48, .7);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #CBD4E7;
}

.nx-tag--violet { border-color: rgba(138, 75, 255, .55); background: rgba(138, 75, 255, .12); color: #CBB2FF; }
.nx-tag--gold { border-color: rgba(245, 196, 98, .5); background: rgba(245, 196, 98, .1); color: #F6D79B; }
.nx-tag--aurora { border-color: rgba(43, 217, 198, .5); background: rgba(43, 217, 198, .1); color: #9BF2E7; }
.nx-tag--coral { border-color: rgba(255, 122, 107, .5); background: rgba(255, 122, 107, .1); color: #FFB3A8; }

.nx-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nx-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--nx-dust);
}

.nx-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nx-aurora);
  box-shadow: 0 0 10px var(--nx-aurora);
}

.nx-status--warn::before {
  background: var(--nx-coral);
  box-shadow: 0 0 10px var(--nx-coral);
}

/* ---------- 10. 面包屑 ---------- */
.nx-crumb {
  margin-top: clamp(18px, 3vw, 30px);
  font-size: 13px;
  color: var(--nx-dust);
}

.nx-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nx-crumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nx-crumb li + li::before {
  content: "/";
  font-family: var(--nx-mono);
  color: rgba(155, 166, 191, .5);
}

.nx-crumb a { color: #C3CCE0; }
.nx-crumb a:hover { color: var(--nx-gold); }
.nx-crumb [aria-current="page"] { color: #EEF2FB; }

/* ---------- 11. 网格 ---------- */
.nx-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.nx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nx-grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.nx-grid--split-alt { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

/* ---------- 12. 图片容器（页面阶段放置媒体） ---------- */
.nx-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-card);
  background:
    radial-gradient(120% 90% at 22% 12%, rgba(138, 75, 255, .34), transparent 58%),
    radial-gradient(90% 80% at 82% 88%, rgba(43, 217, 198, .22), transparent 62%),
    linear-gradient(160deg, #0E1730, #05070F);
}

.nx-media > img,
.nx-media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0) 44%, rgba(5, 7, 15, .74));
}

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

.nx-media__ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--nx-mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: rgba(155, 166, 191, .55);
}

.nx-media__cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 12.5px;
  color: #DCE3F2;
}

.nx-figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.nx-figure > figcaption {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--nx-dust);
}

/* ---------- 13. 动效协议 ---------- */
html[data-anim="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--nx-ease), transform .6s var(--nx-ease);
}

html[data-anim="on"] [data-reveal][data-shown] {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .nx-header__tag { display: none; }
}

@media (max-width: 1080px) {
  .nx-footer__shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .nx-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .nx-burger { display: inline-flex; }
  .nx-header__actions .nx-btn--ghost { display: none; }

  .nx-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    flex: none;
    max-height: calc(100vh - var(--nx-header-h));
    overflow-y: auto;
    padding: 18px var(--nx-gutter) 26px;
    background: rgba(5, 7, 15, .98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(138, 75, 255, .34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .26s var(--nx-ease), transform .26s var(--nx-ease), visibility .26s linear;
  }

  .nx-header[data-open] .nx-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nx-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nx-nav__link {
    justify-content: flex-start;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 16px;
    color: #D3DBEC;
  }

  .nx-nav__link::before { font-size: 11px; }

  .nx-nav__link[aria-current="page"]::after { display: none; }

  .nx-nav__foot {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(155, 166, 191, .22);
  }

  .nx-nav__foot .nx-btn { width: 100%; padding: 14px 20px; }

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

  .nx-grid--split,
  .nx-grid--split-alt { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .nx-footer__shell { grid-template-columns: minmax(0, 1fr); }
  .nx-footer__map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-footer__legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .nx-header__actions { display: none; }
  .nx-logo__name { font-size: 17px; }
  .nx-logo__sig { font-size: 9px; letter-spacing: .18em; }
  .nx-grid--2,
  .nx-grid--3,
  .nx-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .nx-contact__val { font-size: 12.5px; }
}

@media (max-width: 420px) {
  .nx-footer__map { grid-template-columns: minmax(0, 1fr); }
  .nx-nav__link { font-size: 15px; }
}

/* ---------- 15. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html { scroll-behavior: auto; }

  body::after {
    animation: none !important;
    transform: none !important;
  }

  .nx-logo__glyph::after,
  .nx-burger__orbit::after { animation: none !important; }

  .nx-card:hover,
  .nx-btn--primary:hover,
  .nx-btn--gold:hover { transform: none; }
}
