:root {
  --nx-night: #0B1C2D;
  --nx-night-deep: #060F18;
  --nx-ice: #D7E8F4;
  --nx-frost: #7EC8E3;
  --nx-aurora: #3DDC97;
  --nx-ink: #14202C;
  --nx-muted: #5E6E7C;
  --nx-line: #D5E2EC;
  --nx-bg: #EAF1F6;
  --nx-white: #FFFFFF;
  --nx-radius: 4px;
  --nx-shadow: 0 16px 34px rgba(11, 28, 45, 0.1);
  --nx-wrap: 1140px;
  --nx-font: "Source Han Sans SC", "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --nx-display: "Source Han Serif SC", "Songti SC","SimSun","Noto Serif SC", "Songti SC", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--nx-font);
  color: var(--nx-ink);
  background: var(--nx-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }

.nx-wrap {
  width: min(100% - 32px, var(--nx-wrap));
  margin-inline: auto;
}

/* Dark polar header */
.nx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 28, 45, 0.94);
  color: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(126, 200, 227, 0.25);
}
.nx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.nx-logo { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.nx-logo img { height: 40px; width: auto; }
.nx-logo-mark {
  width: 42px;
  height: 42px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: linear-gradient(145deg, var(--nx-frost), #fff);
  color: var(--nx-night);
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(126, 200, 227, 0.45);
}
.nx-logo-mark svg { width: 18px; height: 18px; }
.nx-logo-mark-sm {
  width: 30px;
  height: 30px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.nx-logo-text { display: flex; flex-direction: column; gap: 2px; }
.nx-logo-text strong {
  font-family: var(--nx-display);
  font-size: 20px;
  letter-spacing: 0.04em;
}
.nx-logo-text em {
  font-style: normal;
  font-size: 12px;
  color: rgba(215, 232, 244, 0.7);
}
.nx-nav { display: flex; align-items: center; gap: 12px; }
.nx-nav > ul { display: flex; align-items: center; gap: 2px; }
.nx-nav > ul > li { position: relative; }
.nx-nav > ul > li > a {
  display: block;
  padding: 10px 13px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 2px solid transparent;
}
.nx-nav > ul > li.is-active > a,
.nx-nav > ul > li > a:hover {
  color: var(--nx-frost);
  border-bottom-color: var(--nx-aurora);
}
.nx-subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background: #fff;
  color: var(--nx-ink);
  box-shadow: var(--nx-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s ease;
  z-index: 20;
}
.nx-nav > ul > li:hover > .nx-subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nx-subnav a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--nx-line);
}
.nx-subnav a:hover { background: #F0F7FB; color: var(--nx-night); }
.nx-search {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
}
.nx-search input {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 8px 12px;
  width: 136px;
  outline: none;
  font-size: 13px;
}
.nx-search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.nx-search button {
  border: 0;
  background: var(--nx-frost);
  color: var(--nx-night);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.nx-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  border-radius: 4px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nx-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}
.nx-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 90;
}
body.nav-open .nx-nav-mask { display: block; }

/* Polar night sky hero */
.nx-sky {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 50vw, 500px);
  color: #fff;
  background: linear-gradient(180deg, #13283C 0%, var(--nx-night) 45%, var(--nx-night-deep) 100%);
  text-align: center;
}
.nx-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nx-stars i {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.55;
  animation: nx-twinkle 3.5s ease-in-out infinite;
}
.nx-aurora {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 10%;
  height: 55%;
  background:
    radial-gradient(ellipse 40% 50% at 30% 50%, rgba(61, 220, 151, 0.22), transparent 70%),
    radial-gradient(ellipse 35% 45% at 70% 40%, rgba(126, 200, 227, 0.2), transparent 70%);
  filter: blur(8px);
  animation: nx-aurora 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.nx-sky-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0 120px;
  animation: nx-rise 0.75s ease both;
}
.nx-compass {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border: 1px solid rgba(126, 200, 227, 0.4);
  border-radius: 50%;
  position: relative;
}
.nx-compass span {
  position: absolute;
  background: var(--nx-frost);
}
.nx-compass span:nth-child(1),
.nx-compass span:nth-child(2) {
  width: 2px;
  height: 12px;
  left: 50%;
  transform: translateX(-50%);
}
.nx-compass span:nth-child(1) { top: 6px; }
.nx-compass span:nth-child(2) { bottom: 6px; }
.nx-compass span:nth-child(3),
.nx-compass span:nth-child(4) {
  height: 2px;
  width: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.nx-compass span:nth-child(3) { left: 6px; }
.nx-compass span:nth-child(4) { right: 6px; background: var(--nx-aurora); }

.nx-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--nx-frost);
}
.nx-sky h1 {
  font-family: var(--nx-display);
  font-size: clamp(28px, 4.8vw, 44px);
  margin: 0 auto 14px;
  max-width: 14em;
  line-height: 1.25;
}
.nx-sky-desc {
  margin: 0 auto 24px;
  max-width: 34em;
  color: rgba(215, 232, 244, 0.8);
  font-size: 16px;
}
.nx-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  transition: 0.2s ease;
}
.nx-btn-ice {
  background: var(--nx-ice);
  color: var(--nx-night);
}
.nx-btn-ice:hover { background: #fff; transform: translateY(-1px); }
.nx-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.nx-btn-ghost:hover { border-color: var(--nx-frost); color: var(--nx-frost); }

.nx-ice-shelf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background:
    linear-gradient(180deg, transparent, rgba(234, 241, 246, 0.15) 40%, var(--nx-bg));
  clip-path: polygon(0 40%, 12% 20%, 28% 45%, 45% 15%, 62% 42%, 78% 18%, 100% 38%, 100% 100%, 0 100%);
}

@keyframes nx-twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.95; }
}
@keyframes nx-aurora {
  from { transform: translateX(-2%) scale(1); }
  to { transform: translateX(2%) scale(1.05); }
}
@keyframes nx-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.nx-home-body { padding: 36px 0 56px; }

.nx-section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.nx-section-hd.light { color: #fff; }
.nx-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #3AA8C8;
}
.nx-section-hd.light .nx-eyebrow { color: rgba(126, 200, 227, 0.85); }
.nx-section-hd h2 {
  font-family: var(--nx-display);
  font-size: 26px;
  color: var(--nx-night);
}
.nx-section-hd.light h2 { color: #fff; }
.nx-more {
  font-size: 13px;
  font-weight: 700;
  color: #2E8FB0;
}
.nx-more:hover { text-decoration: underline; }

/* Crystal ice cards - diamond-ish asymmetric grid */
.nx-block { margin-bottom: 36px; }
.nx-crystal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.nx-crystal > a {
  position: relative;
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  padding: 22px 18px 18px;
  box-shadow: var(--nx-shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: transform 0.2s ease, border-color 0.2s;
  min-height: 170px;
}
.nx-crystal > a:nth-child(3n+2) {
  transform: translateY(10px);
}
.nx-crystal > a:hover {
  transform: translateY(-2px);
  border-color: var(--nx-frost);
}
.nx-crystal > a:nth-child(3n+2):hover {
  transform: translateY(6px);
}
.nx-crystal-star {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--nx-aurora);
  font-size: 12px;
  opacity: 0.85;
}
.nx-crystal time {
  display: block;
  font-size: 12px;
  color: #2E8FB0;
  font-weight: 700;
  margin-bottom: 8px;
}
.nx-crystal h3 {
  font-size: 16px;
  color: var(--nx-night);
  margin-bottom: 8px;
}
.nx-crystal p { margin: 0; font-size: 13px; color: var(--nx-muted); }

/* Observatory: wide left + narrow right */
.nx-observatory {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 18px;
  margin-bottom: 36px;
}
.nx-obs-main,
.nx-obs-side {
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  box-shadow: var(--nx-shadow);
  padding: 20px;
}
.nx-obs-main { border-top: 3px solid var(--nx-frost); }
.nx-obs-side {
  border-top: 3px solid var(--nx-aurora);
  background: linear-gradient(180deg, #F4FBFF, #fff);
}
.nx-obs-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--nx-line);
}
.nx-obs-hd h2 {
  font-family: var(--nx-display);
  font-size: 20px;
  color: var(--nx-night);
}
.nx-obs-hd a { font-size: 13px; color: #2E8FB0; }
.nx-obs-list li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--nx-line);
}
.nx-obs-list h3 { font-size: 16px; margin-bottom: 6px; }
.nx-obs-list p { margin: 0 0 6px; font-size: 13px; color: var(--nx-muted); }
.nx-obs-list time { font-size: 12px; color: #2E8FB0; }
.nx-obs-list a:hover h3 { color: #2E8FB0; }
.nx-practice li + li { margin-top: 10px; }
.nx-practice a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: rgba(126, 200, 227, 0.08);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.nx-practice a:hover { border-color: var(--nx-frost); }
.nx-practice span {
  font-size: 12px;
  font-weight: 800;
  color: var(--nx-aurora);
  padding-top: 2px;
}
.nx-practice strong { font-size: 14px; font-weight: 600; }

/* Constellation rank band */
.nx-constellation {
  background: linear-gradient(135deg, var(--nx-night-deep), #143049 55%, #1A4A3A);
  color: #fff;
  padding: 26px 22px 28px;
  border-radius: var(--nx-radius);
  animation: nx-rise 0.7s 0.1s ease both;
}
.nx-star-rank { counter-reset: nxstar; }
.nx-star-rank li {
  counter-increment: nxstar;
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 15px;
}
.nx-star-rank li:last-child { border-bottom: 0; }
.nx-star-rank li::before {
  content: counter(nxstar, decimal-leading-zero);
  color: var(--nx-frost);
  font-weight: 800;
  font-size: 12px;
  min-width: 1.8em;
}
.nx-star-rank li:nth-child(1)::before { color: var(--nx-aurora); }
.nx-star-rank a:hover { color: var(--nx-ice); }

/* Inner pages */
.nx-crumb {
  background: #fff;
  border-bottom: 1px solid var(--nx-line);
  padding: 12px 0;
  font-size: 13px;
  color: var(--nx-muted);
}
.nx-crumb a:hover { color: #2E8FB0; }
.nx-crumb span { margin: 0 6px; color: #A8B5C0; }
.nx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 28px 0 48px;
}
.nx-panel {
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 18px;
  margin-bottom: 16px;
}
.nx-panel-hd {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--nx-frost);
}
.nx-panel-hd h3 {
  font-family: var(--nx-display);
  font-size: 16px;
  color: var(--nx-night);
}
.nx-page-title {
  font-family: var(--nx-display);
  font-size: 26px;
  color: var(--nx-night);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nx-line);
}
.nx-article-list li + li { border-top: 1px solid var(--nx-line); }
.nx-article-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
}
.nx-article-list img {
  width: 140px;
  height: 92px;
  object-fit: cover;
  border-radius: 2px;
  background: #D9E6EF;
}
.nx-article-list a:not(:has(img)) { grid-template-columns: 1fr; }
.nx-article-list h2 { font-size: 18px; margin-bottom: 8px; }
.nx-article-list p { margin: 0 0 8px; color: var(--nx-muted); font-size: 14px; }
.nx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--nx-muted);
}
.nx-meta.center { justify-content: center; margin: 12px 0 20px; }
.nx-empty { padding: 40px 0; text-align: center; color: var(--nx-muted); }
.nx-detail > h1 {
  font-family: var(--nx-display);
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
  color: var(--nx-night);
}
.nx-richtext { font-size: 16px; line-height: 1.85; }
.nx-richtext p { margin: 0 0 1em; }
.nx-richtext img { margin: 12px auto; border-radius: 2px; }
.nx-pagerow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--nx-line);
  font-size: 14px;
}
.nx-pagerow a:hover { color: #2E8FB0; }
.nx-rank { counter-reset: rank; }
.nx-rank li {
  counter-increment: rank;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--nx-line);
  font-size: 14px;
}
.nx-rank li::before {
  content: counter(rank);
  width: 20px;
  height: 20px;
  background: #E8F3F8;
  color: var(--nx-night);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.nx-rank li:nth-child(-n+3)::before {
  background: var(--nx-frost);
  color: var(--nx-night);
}
.nx-side-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--nx-line);
  font-size: 14px;
}
.nx-side-list a:hover, .nx-rank a:hover { color: #2E8FB0; }
.nx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-tags a {
  font-size: 12px;
  padding: 4px 10px;
  background: #E8F3F8;
  color: var(--nx-night);
  border-radius: 2px;
}
.nx-tags a:hover { background: var(--nx-frost); }
.nx-ad { font-size: 14px; color: var(--nx-muted); }
.nx-pagination { margin-top: 20px; }
.nx-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.nx-page a, .nx-page .dots {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--nx-line);
  background: #fff;
  font-size: 14px;
}
.nx-page .active a,
.nx-page a:hover {
  background: var(--nx-night);
  border-color: var(--nx-night);
  color: var(--nx-frost);
}

/* Footer */
.nx-footer {
  background: var(--nx-night-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0 24px;
  margin-top: 12px;
}
.nx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.nx-foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #fff;
}
.nx-foot-brand h3 {
  font-family: var(--nx-display);
  font-size: 18px;
}
.nx-footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.nx-footer p { margin: 0 0 8px; font-size: 14px; }
.nx-foot-links li { margin-bottom: 8px; }
.nx-foot-links a:hover { color: var(--nx-frost); }
.nx-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.nx-friendlinks a:hover { color: var(--nx-frost); }
.nx-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.nx-copy a { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 980px) {
  .nx-crystal { grid-template-columns: 1fr 1fr; }
  .nx-crystal > a:nth-child(3n+2) { transform: none; }
  .nx-crystal > a:nth-child(3n+2):hover { transform: translateY(-2px); }
  .nx-observatory { grid-template-columns: 1fr; }
  .nx-layout { grid-template-columns: 1fr; }
  .nx-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nx-nav-toggle { display: inline-flex; }
  .nx-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 320px);
    height: 100vh;
    background: var(--nx-night);
    z-index: 110;
    padding: 72px 20px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .nx-nav.is-open { transform: none; }
  .nx-nav > ul { flex-direction: column; align-items: stretch; width: 100%; }
  .nx-nav > ul > li > a { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nx-subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: rgba(255,255,255,0.05);
    color: #fff;
  }
  .nx-nav > ul > li.is-open > .nx-subnav { display: block; }
  .nx-subnav a { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.08); }
  .nx-search { width: 100%; margin-top: 12px; }
  .nx-search input { width: 100%; }
  .nx-crystal { grid-template-columns: 1fr; }
  .nx-sky-inner { padding: 52px 0 100px; }
  .nx-article-list a { grid-template-columns: 1fr; }
  .nx-article-list img { width: 100%; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-sky-inner, .nx-constellation { animation: none; }
  .nx-aurora, .nx-stars i { animation: none; }
}
