/* ===== 南宫赛事 · 共享样式 /assets/site.css ===== */

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

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

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

ol, ul { list-style: none; }

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

button { font: inherit; color: inherit; }
a { color: inherit; }

[hidden] { display: none !important; }

/* --- 2. 变量 --- */
:root {
  --ng-midnight: #0A1330;
  --ng-deep: #050A1E;
  --ng-violet: #2A1A55;
  --ng-cyan: #2FF3D6;
  --ng-electric: #37C6FF;
  --ng-orange: #FF8A3D;
  --ng-mist: #EAF1FB;
  --ng-slate: #93A4C6;
  --ng-paper: #F2EEE4;
  --ng-line: #1B2545;

  --ng-font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ng-font-display: var(--ng-font-body);
  --ng-font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ng-wrap: 1240px;
  --ng-gutter: clamp(16px, 4vw, 40px);
  --ng-ease: cubic-bezier(0.22, 0.68, 0, 1);
}

/* --- 3. 基础排版 --- */
body {
  min-height: 100%;
  background-color: var(--ng-midnight);
  background-image:
    radial-gradient(1200px 620px at 78% -12%, rgba(42, 26, 85, 0.9), transparent 62%),
    radial-gradient(900px 520px at 4% 10%, rgba(55, 198, 255, 0.12), transparent 60%),
    radial-gradient(700px 700px at 92% 84%, rgba(42, 26, 85, 0.55), transparent 65%);
  background-attachment: fixed;
  color: var(--ng-mist);
  font-family: var(--ng-font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

@media (max-width: 720px) {
  body { font-size: 16px; }
}

h1, h2, h3, h4 {
  font-family: var(--ng-font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.005em;
}

a { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--ng-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--ng-cyan);
  color: #04121a;
}

/* --- 4. 布局工具 --- */
.ng-wrap {
  width: 100%;
  max-width: var(--ng-wrap);
  margin-inline: auto;
  padding-inline: var(--ng-gutter);
}

.ng-section {
  padding-block: clamp(40px, 6vw, 88px);
}

.ng-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
}

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

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

/* --- 5. 文字组件 --- */
.ng-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ng-cyan);
}

.ng-h1 {
  font-size: clamp(2.1rem, 5.6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.ng-h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
.ng-h3 { font-size: clamp(1.05rem, 1.6vw, 1.24rem); font-weight: 800; }

.ng-lead {
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.75;
  color: var(--ng-slate);
  max-width: 36em;
}

.ng-note {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ng-slate);
}

.ng-prose {
  max-width: 68ch;
  line-height: 1.85;
}

.ng-prose p { margin-bottom: 1.15em; }
.ng-prose h2 { margin: 1.6em 0 0.6em; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.ng-prose h3 { margin: 1.4em 0 0.5em; }
.ng-prose a { color: var(--ng-electric); border-bottom: 1px solid rgba(55, 198, 255, 0.4); }
.ng-prose a:hover { color: var(--ng-cyan); border-color: var(--ng-cyan); }
.ng-prose ul,
.ng-prose ol { margin: 0 0 1.2em 1.2em; }
.ng-prose ul li { list-style: square; }
.ng-prose ol li { list-style: decimal; }
.ng-prose li { margin-bottom: 0.5em; }

/* --- 6. 数字 --- */
.ng-num {
  font-family: var(--ng-font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ng-num--lg { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.ng-num--xl { font-size: clamp(3rem, 8vw, 7rem); }

.ng-num--key {
  color: var(--ng-orange);
  text-shadow: 0 0 26px rgba(255, 138, 61, 0.38);
}

/* --- 7. 按钮 --- */
.ng-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.22s var(--ng-ease), color 0.22s var(--ng-ease),
              border-color 0.22s var(--ng-ease), box-shadow 0.22s var(--ng-ease),
              transform 0.22s var(--ng-ease);
}

.ng-btn--primary {
  background: var(--ng-cyan);
  color: #04121a;
  box-shadow: 0 0 24px rgba(47, 243, 214, 0.26);
}
.ng-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(47, 243, 214, 0.42);
}

.ng-btn--ghost {
  background: transparent;
  border-color: rgba(47, 243, 214, 0.42);
  color: var(--ng-cyan);
}
.ng-btn--ghost:hover {
  background: rgba(47, 243, 214, 0.1);
  border-color: var(--ng-cyan);
}

.ng-btn--quiet {
  background: rgba(27, 37, 69, 0.55);
  border-color: var(--ng-line);
  color: var(--ng-mist);
}
.ng-btn--quiet:hover {
  border-color: rgba(55, 198, 255, 0.6);
}

/* --- 8. 跳转链接 --- */
.ng-skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 90;
  padding: 10px 18px;
  background: var(--ng-cyan);
  color: #04121a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: top 0.2s var(--ng-ease);
}
.ng-skip:focus { top: 12px; }

/* --- 9. 头部 --- */
.ng-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(10, 19, 48, 0.97), rgba(5, 10, 30, 0.95));
  border-bottom: 1px solid var(--ng-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ng-header__inner {
  max-width: var(--ng-wrap);
  margin-inline: auto;
  padding-inline: var(--ng-gutter);
}

.ng-brandrow {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: 13px 0 11px;
  border-bottom: 1px solid rgba(27, 37, 69, 0.9);
}

.ng-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.ng-brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--ng-cyan);
  background: linear-gradient(145deg, rgba(47, 243, 214, 0.16), rgba(55, 198, 255, 0.04));
  box-shadow: inset 0 0 0 1px var(--ng-cyan), inset 0 0 22px rgba(47, 243, 214, 0.18);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  font-family: var(--ng-font-mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.ng-brand__name {
  display: inline-block;
  transform: skewX(-3deg);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--ng-mist);
}

.ng-brand__tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ng-slate);
}

.ng-brandrow__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ng-stamp {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 4px 10px;
  background: var(--ng-paper);
  color: #0A1330;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-1.4deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.ng-brandrow__note {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ng-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ng-brandrow__cta { margin-left: auto; flex: none; }

.ng-navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 13px;
  background: transparent;
  border: 1px solid var(--ng-line);
  border-radius: 2px;
  color: var(--ng-slate);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.22s var(--ng-ease), border-color 0.22s var(--ng-ease);
}

.ng-navtoggle:hover { color: var(--ng-mist); border-color: rgba(55, 198, 255, 0.55); }

.ng-navtoggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.ng-navtoggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ng-ease), opacity 0.18s linear;
}

.ng-navtoggle[aria-expanded="true"] {
  color: var(--ng-cyan);
  border-color: rgba(47, 243, 214, 0.6);
}
.ng-navtoggle[aria-expanded="true"] .ng-navtoggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.ng-navtoggle[aria-expanded="true"] .ng-navtoggle__bars i:nth-child(2) { opacity: 0; }
.ng-navtoggle[aria-expanded="true"] .ng-navtoggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 导航 */
.ng-nav { position: relative; }

.ng-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ng-nav__list::-webkit-scrollbar { display: none; }

.ng-nav__item { flex: none; }

.ng-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ng-slate);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transition: color 0.2s var(--ng-ease);
}

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

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

.ng-nav__link[aria-current="page"] { color: var(--ng-mist); }
.ng-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  box-shadow: 0 0 12px rgba(47, 243, 214, 0.7);
}

.ng-nav::after {
  content: "";
  display: block;
  height: 7px;
  background-image: repeating-linear-gradient(90deg, rgba(55, 198, 255, 0.22) 0 1px, transparent 1px 14px);
}

/* 滚动进度尺 */
.ng-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--ng-cyan), var(--ng-electric) 55%, var(--ng-orange));
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 14px rgba(47, 243, 214, 0.5);
  pointer-events: none;
}

@media (max-width: 900px) {
  .ng-navtoggle { display: inline-flex; }
  .ng-brandrow__cta { display: none; }

  .ng-nav__list {
    gap: 8px;
    padding: 10px 0 12px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .ng-nav__link {
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--ng-line);
    border-radius: 999px;
    background: rgba(27, 37, 69, 0.5);
  }

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

  .ng-nav__link[aria-current="page"] {
    color: #04121a;
    background: var(--ng-cyan);
    border-color: var(--ng-cyan);
    box-shadow: 0 0 18px rgba(47, 243, 214, 0.32);
  }

  .ng-nav[data-open] .ng-nav__list {
    flex-wrap: wrap;
    overflow: visible;
  }

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

@media (max-width: 720px) {
  .ng-brand__tag { display: none; }
  .ng-brandrow__note { display: none; }
  .ng-brand__name { font-size: 18px; }
  .ng-brand__mark { width: 38px; height: 38px; font-size: 13px; }
}

/* --- 10. 页脚 --- */
.ng-footer {
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--ng-deep);
  border-top: 1px solid var(--ng-line);
}

.ng-footer__grid {
  max-width: var(--ng-wrap);
  margin-inline: auto;
  padding: clamp(38px, 5.5vw, 72px) var(--ng-gutter) clamp(26px, 3.5vw, 44px);
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  grid-template-columns: minmax(210px, 1.6fr) repeat(3, minmax(120px, 1fr)) minmax(215px, 1.5fr);
}

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

.ng-footer__wordmark {
  display: inline-block;
  transform: skewX(-3deg);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--ng-mist);
}
.ng-footer__wordmark:hover { color: var(--ng-cyan); }

.ng-footer__line {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ng-slate);
}

.ng-footer__note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(147, 164, 198, 0.78);
}

.ng-footer__title {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ng-cyan);
}

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

.ng-footer__link {
  display: inline-block;
  font-size: 15px;
  color: var(--ng-slate);
  transition: color 0.2s var(--ng-ease), transform 0.2s var(--ng-ease);
}
.ng-footer__link:hover {
  color: var(--ng-mist);
  transform: translateX(3px);
}
.ng-footer__link[aria-current="page"] { color: var(--ng-cyan); }

.ng-footer__plain {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(147, 164, 198, 0.78);
}

.ng-meta-list {
  display: grid;
  gap: 12px;
}

.ng-meta-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 14px;
}

.ng-meta-list__k {
  flex: none;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ng-slate);
  border: 1px solid var(--ng-line);
  border-radius: 2px;
  padding: 2px 6px;
}

.ng-footer__data {
  font-family: var(--ng-font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ng-mist);
  word-break: break-all;
}

.ng-footer__data--addr {
  font-family: var(--ng-font-body);
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  max-width: 22em;
}

.ng-copy {
  min-height: 28px;
  padding: 3px 10px;
  background: transparent;
  border: 1px solid var(--ng-line);
  border-radius: 2px;
  color: var(--ng-slate);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s var(--ng-ease), border-color 0.2s var(--ng-ease),
              background-color 0.2s var(--ng-ease);
}
.ng-copy:hover { color: var(--ng-cyan); border-color: rgba(47, 243, 214, 0.55); }
.ng-copy[data-copied] {
  color: #04121a;
  background: var(--ng-cyan);
  border-color: var(--ng-cyan);
}

.ng-footer__base {
  max-width: var(--ng-wrap);
  margin-inline: auto;
  padding: 0 var(--ng-gutter) clamp(28px, 4vw, 46px);
}

.ng-footer__scale {
  height: 9px;
  border-top: 1px solid var(--ng-line);
  background-image: repeating-linear-gradient(90deg, rgba(55, 198, 255, 0.22) 0 1px, transparent 1px 14px);
  margin-bottom: 16px;
}

.ng-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ng-slate);
}

@media (max-width: 1120px) {
  .ng-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-footer__brand { grid-column: 1 / -1; }
}

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

/* --- 11. 通用组件 --- */
.ng-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(180deg, rgba(10, 19, 48, 0.92), rgba(5, 10, 30, 0.92));
  border: 1px solid var(--ng-line);
  border-radius: 2px;
}

.ng-card--paper {
  background: var(--ng-paper);
  border-color: transparent;
  color: #0A1330;
}

.ng-card--paper .ng-card__label { color: rgba(10, 19, 48, 0.62); }

.ng-card__label {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ng-slate);
}

.ng-frame {
  position: relative;
  padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid var(--ng-line);
}

.ng-frame::before,
.ng-frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--ng-cyan);
}
.ng-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.ng-frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.ng-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--ng-line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ng-slate);
}

.ng-tag--cyan { color: var(--ng-cyan); border-color: rgba(47, 243, 214, 0.45); }
.ng-tag--orange { color: var(--ng-orange); border-color: rgba(255, 138, 61, 0.45); }

.ng-rule {
  height: 1px;
  border: 0;
  background-image: repeating-linear-gradient(90deg, var(--ng-line) 0 14px, transparent 14px 20px);
}

/* 面包屑 */
.ng-breadcrumb {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ng-slate);
}

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

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

.ng-breadcrumb li + li::before {
  content: "/";
  color: rgba(147, 164, 198, 0.5);
}

.ng-breadcrumb a { color: var(--ng-slate); }
.ng-breadcrumb a:hover { color: var(--ng-cyan); }
.ng-breadcrumb [aria-current="page"] { color: var(--ng-mist); }

/* 数据表 */
.ng-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.ng-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ng-slate);
  border-bottom: 1px solid var(--ng-line);
}

.ng-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(27, 37, 69, 0.8);
}

.ng-table tbody tr { transition: background-color 0.2s var(--ng-ease), box-shadow 0.2s var(--ng-ease); }
.ng-table tbody tr:hover {
  background: rgba(47, 243, 214, 0.05);
  box-shadow: inset 0 0 0 1px rgba(47, 243, 214, 0.28);
}

/* 进失球分布条 */
.ng-meter { display: grid; gap: 6px; }

.ng-meter__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--ng-line);
  overflow: hidden;
}

.ng-meter__track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: rgba(234, 241, 251, 0.35);
}

.ng-meter__fill {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--ng-cyan), var(--ng-electric));
  transition: width 0.7s var(--ng-ease);
}

.ng-meter.is-inview .ng-meter__fill { width: var(--ng-meter-w, 0%); }

.ng-meter--orange .ng-meter__fill { background: linear-gradient(90deg, var(--ng-orange), #FFB37A); }

.ng-meter--start .ng-meter__fill {
  left: 0;
  transform: none;
}

/* 折叠面板 */
.ng-panel {
  border: 1px solid var(--ng-line);
  background: rgba(5, 10, 30, 0.62);
}
.ng-panel + .ng-panel { margin-top: -1px; }

.ng-panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  color: var(--ng-mist);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.22s var(--ng-ease);
}
.ng-panel__head:hover { background: rgba(47, 243, 214, 0.06); }

.ng-panel__idx {
  flex: none;
  font-family: var(--ng-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ng-cyan);
}

.ng-panel__chev {
  flex: none;
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--ng-cyan);
  transition: transform 0.26s var(--ng-ease);
}
.ng-panel__head[aria-expanded="true"] .ng-panel__chev { transform: rotate(180deg); }

.ng-panel__body {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ng-slate);
}

/* 图片容器基础规则（页面阶段放置图片） */
.ng-figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ng-line);
  border-radius: 2px;
  background-image: linear-gradient(150deg, #0A1330 0%, #2A1A55 55%, #050A1E 100%);
  background-size: cover;
  background-position: center;
}

.ng-figure--hero { aspect-ratio: 21 / 9; }
.ng-figure--wide { aspect-ratio: 16 / 7; }
.ng-figure--square { aspect-ratio: 1 / 1; }
.ng-figure--portrait { aspect-ratio: 4 / 5; }

.ng-figure__media {
  display: block;
  width: 100%;
  height: 100%;
}

.ng-figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ng-figure__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(55, 198, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 198, 255, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 88%);
}

.ng-figure__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 10px;
  background: var(--ng-paper);
  color: #0A1330;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* --- 12. 动效 --- */
.ng-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal] {
  transition: opacity 0.7s var(--ng-ease), transform 0.7s var(--ng-ease);
}

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

.ng-copy[data-copied] { animation: ng-pop 0.32s var(--ng-ease); }

@keyframes ng-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@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;
  }

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

  .ng-progress { display: none; }

  .ng-meter__fill { transition: none; }
  .ng-meter.is-inview .ng-meter__fill { width: var(--ng-meter-w, 0%); }
}
