/* ==========================================================================
   诺亚赛场 · 共享样式 /assets/site.css
   夜场转播间 × 战术板手册：非对称编辑部网格、记分牌标题、珠宝色分区
   ========================================================================== */

/* --- 1. 变量 ------------------------------------------------------------ */
:root {
  --np-night: #0A1F33;
  --np-deep: #0E2B25;
  --np-raise: #163B33;
  --np-cyan: #38F2C4;
  --np-orange: #FF8B3D;
  --np-wine: #6B1F3A;
  --np-indigo: #2B2A63;
  --np-white: #FFFFFF;
  --np-paper: #F3F1E9;
  --np-steel: #9AA9AF;
  --np-ink: #11161A;

  --np-line-dark: rgba(154, 169, 175, 0.28);
  --np-line-light: rgba(17, 22, 26, 0.16);
  --np-cyan-soft: rgba(56, 242, 196, 0.35);
  --np-shadow-hard: 6px 6px 0 rgba(6, 18, 24, 0.55);
  --np-shadow-hard-sm: 4px 4px 0 rgba(6, 18, 24, 0.45);

  --np-font-display: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --np-font-serif: Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC",
    "SimSun", serif;
  --np-font-body: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --np-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --np-header-h: 88px;
  --np-header-h-sm: 64px;
  --np-gutter: clamp(16px, 4vw, 48px);
  --np-radius: 0;
}

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
}

/* --- 3. 基础中文排版 ---------------------------------------------------- */
body {
  font-family: var(--np-font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--np-ink);
  background-color: var(--np-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  text-wrap: balance;
  word-break: break-word;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

strong {
  font-weight: 700;
}

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

#main-content {
  scroll-margin-top: calc(var(--np-header-h) + 16px);
}

/* --- 4. 通用工具 -------------------------------------------------------- */
.np-shell {
  width: min(100% - (var(--np-gutter) * 2), 1240px);
  margin-inline: auto;
}

.np-main {
  display: block;
}

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

.np-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.np-skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--np-ink);
  background: var(--np-cyan);
  border: 2px solid var(--np-ink);
  box-shadow: var(--np-shadow-hard-sm);
  transition: top 0.18s ease;
}

.np-skip-link:focus {
  top: 12px;
}

.np-rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 2px solid var(--np-line-dark);
}

/* --- 5. 区块与色彩分区 -------------------------------------------------- */
.np-section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.np-section--night {
  background-color: var(--np-night);
  color: var(--np-paper);
}

.np-section--deep {
  background-color: var(--np-deep);
  color: var(--np-paper);
}

.np-section--raise {
  background-color: var(--np-raise);
  color: var(--np-paper);
}

.np-section--paper {
  background-color: var(--np-paper);
  color: var(--np-ink);
}

.np-section--wine {
  background-color: var(--np-wine);
  color: var(--np-paper);
}

.np-section--indigo {
  background-color: var(--np-indigo);
  color: var(--np-paper);
}

.np-section--night .np-rule,
.np-section--deep .np-rule,
.np-section--raise .np-rule,
.np-section--wine .np-rule,
.np-section--indigo .np-rule {
  border-top-color: var(--np-line-dark);
}

.np-section--paper .np-rule {
  border-top-color: var(--np-line-light);
}

/* --- 6. 非对称网格 ------------------------------------------------------ */
.np-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.np-col-note {
  grid-column: 1 / span 3;
}

.np-col-main {
  grid-column: 5 / span 8;
}

/* --- 7. 排版组件 -------------------------------------------------------- */
.np-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--np-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--np-cyan);
}

.np-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--np-cyan);
  box-shadow: 0 0 0 3px rgba(56, 242, 196, 0.2);
}

.np-section--paper .np-eyebrow {
  color: #0f6a56;
}

.np-section--paper .np-eyebrow::before {
  background: #0f6a56;
  box-shadow: 0 0 0 3px rgba(15, 106, 86, 0.16);
}

.np-display {
  font-family: var(--np-font-display);
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  transform: skewX(-6deg);
  transform-origin: left bottom;
  text-shadow: 2px 2px 0 rgba(56, 242, 196, 0.55);
}

.np-display--outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--np-cyan);
  text-shadow: none;
}

.np-h2 {
  font-family: var(--np-font-serif);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.28;
}

.np-h3 {
  font-family: var(--np-font-body);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.np-lede {
  font-family: var(--np-font-serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  max-width: 42em;
}

.np-body {
  font-size: 17px;
  line-height: 1.75;
  max-width: 42em;
}

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

.np-flow > * + * {
  margin-top: 1em;
}

/* --- 8. 按钮 ------------------------------------------------------------ */
.np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: var(--np-radius);
  background: transparent;
  font-family: var(--np-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.np-btn--accent {
  color: var(--np-orange);
  border-color: var(--np-orange);
  background: rgba(255, 139, 61, 0.08);
  box-shadow: 3px 3px 0 rgba(255, 139, 61, 0.22);
}

.np-btn--accent:hover {
  color: #1b1208;
  background: var(--np-orange);
  box-shadow: 3px 3px 0 rgba(4, 12, 18, 0.55);
  transform: translate(-1px, -1px);
}

.np-btn--solid {
  color: #06231c;
  background: var(--np-cyan);
  border-color: var(--np-cyan);
  box-shadow: 4px 4px 0 rgba(4, 12, 18, 0.55);
}

.np-btn--solid:hover {
  background: #6ff8d6;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(4, 12, 18, 0.6);
}

.np-btn--ghost {
  color: currentColor;
  border-color: currentColor;
  background: transparent;
}

.np-btn--ghost:hover {
  background: rgba(56, 242, 196, 0.12);
  border-color: var(--np-cyan);
  color: var(--np-cyan);
}

/* --- 9. 页头 ------------------------------------------------------------ */
.np-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  color: var(--np-white);
  background-image: linear-gradient(
    180deg,
    rgba(10, 31, 51, 0.95) 0%,
    rgba(10, 31, 51, 0.72) 58%,
    rgba(10, 31, 51, 0) 100%
  );
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.np-header[data-scrolled="true"] {
  background-image: none;
  background-color: var(--np-deep);
  border-bottom: 2px solid var(--np-cyan-soft);
  box-shadow: 0 6px 0 rgba(4, 12, 18, 0.55);
}

.np-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  min-height: var(--np-header-h);
  padding-block: 12px;
  transition: min-height 0.2s ease;
}

.np-header[data-scrolled="true"] .np-header__inner {
  min-height: var(--np-header-h-sm);
}

.np-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--np-white);
}

.np-brand__mark {
  font-family: var(--np-font-display);
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  transform: skewX(-6deg);
  transform-origin: left center;
  text-shadow: 1px 1px 0 var(--np-cyan);
}

.np-brand__sub {
  font-family: var(--np-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--np-cyan);
}

.np-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.np-header__cta {
  white-space: nowrap;
}

/* 桌面导航 */
.np-nav {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}

.np-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 24px);
  flex-wrap: wrap;
}

.np-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  transition: color 0.18s ease;
}

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

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

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

.np-nav__link[aria-current="page"] {
  color: var(--np-white);
  font-weight: 700;
}

.np-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--np-cyan);
  box-shadow: 0 0 10px rgba(56, 242, 196, 0.6);
}

.np-nav__quick,
.np-nav__note {
  display: none;
}

/* 移动按钮 */
.np-nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: transparent;
  color: var(--np-cyan);
  border: 2px solid var(--np-cyan-soft);
  border-radius: var(--np-radius);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.np-nav-toggle:hover {
  border-color: var(--np-cyan);
  background: rgba(56, 242, 196, 0.1);
}

.np-nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.np-nav-toggle__bars::before,
.np-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--np-cyan);
  transition: transform 0.2s ease;
}

.np-nav-toggle__bars::before {
  top: 0;
}

.np-nav-toggle__bars::after {
  bottom: 0;
}

.np-nav-toggle[aria-expanded="true"] .np-nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.np-nav-toggle[aria-expanded="true"] .np-nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.np-nav-toggle__label {
  font-family: var(--np-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.np-nav-locked {
  overflow: hidden;
}

/* --- 10. 页脚 ----------------------------------------------------------- */
.np-footer {
  position: relative;
  background-color: var(--np-deep);
  color: var(--np-steel);
  border-top: 2px solid var(--np-cyan-soft);
  padding-block: clamp(40px, 5vw, 72px) 0;
}

.np-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    115deg,
    var(--np-cyan) 0 16px,
    rgba(56, 242, 196, 0) 16px 34px
  );
  opacity: 0.55;
  pointer-events: none;
}

.np-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3.4vw, 48px);
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

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

.np-footer__col--brand {
  border-left: 2px solid var(--np-cyan-soft);
  padding-left: 16px;
}

.np-footer__brand {
  font-family: var(--np-font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--np-white);
  transform: skewX(-6deg);
  transform-origin: left center;
  text-shadow: 1px 1px 0 var(--np-cyan);
}

.np-footer__tagline {
  margin-top: 12px;
  font-family: var(--np-font-serif);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(243, 241, 233, 0.82);
  max-width: 22em;
}

.np-footer__title {
  font-family: var(--np-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--np-cyan);
  margin-bottom: 14px;
}

.np-footer__list {
  display: grid;
  gap: 8px;
}

.np-footer__link {
  display: inline-block;
  font-size: 15px;
  color: rgba(243, 241, 233, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.np-footer__link:hover,
.np-footer__link:focus-visible {
  color: var(--np-cyan);
  border-bottom-color: var(--np-cyan);
}

.np-footer__contact {
  display: grid;
  gap: 10px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(243, 241, 233, 0.9);
  word-break: break-word;
}

.np-footer__contact-row {
  display: block;
}

.np-footer__k {
  display: inline-block;
  min-width: 42px;
  margin-right: 8px;
  font-family: var(--np-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--np-cyan);
}

.np-footer__note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--np-steel);
  max-width: 30em;
}

.np-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 28px;
  border-top: 1px dashed var(--np-line-dark);
}

.np-footer__icp {
  font-family: var(--np-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--np-steel);
}

.np-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.np-footer__legal .np-footer__link {
  font-size: 13px;
}

.np-footer__bottom .np-footer__note {
  margin-top: 0;
  font-family: var(--np-font-mono);
  font-size: 12px;
}

/* --- 11. 卡片 ----------------------------------------------------------- */
.np-card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background-color: var(--np-raise);
  border: 2px solid var(--np-cyan-soft);
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow-hard);
}

.np-card--paper {
  background-color: var(--np-white);
  color: var(--np-ink);
  border-color: var(--np-ink);
  box-shadow: 6px 6px 0 var(--np-night);
}

.np-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--np-line-dark);
}

.np-card--paper .np-card__head {
  border-bottom-color: var(--np-line-light);
}

.np-card__meta {
  font-family: var(--np-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--np-cyan);
  font-variant-numeric: tabular-nums;
}

.np-card--paper .np-card__meta {
  color: #0f6a56;
}

/* --- 12. 标签与面包屑 --------------------------------------------------- */
.np-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--np-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--np-orange);
  border: 1px solid var(--np-orange);
  background: rgba(255, 139, 61, 0.08);
  white-space: nowrap;
}

.np-section--paper .np-tag {
  color: #8a3d06;
  border-color: #8a3d06;
  background: rgba(255, 139, 61, 0.16);
}

.np-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--np-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--np-steel);
  padding-block: 18px;
}

.np-breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.np-breadcrumb a:hover {
  color: var(--np-cyan);
  border-bottom-color: var(--np-cyan);
}

.np-breadcrumb__sep {
  color: var(--np-cyan);
  opacity: 0.8;
}

.np-section--paper .np-breadcrumb {
  color: rgba(17, 22, 26, 0.62);
}

.np-section--paper .np-breadcrumb__sep {
  color: #0f6a56;
}

/* --- 13. 折叠面板 ------------------------------------------------------- */
.np-accordion {
  border-top: 2px solid var(--np-cyan-soft);
}

.np-accordion__item {
  border-bottom: 2px solid var(--np-line-dark);
}

.np-section--paper .np-accordion {
  border-top-color: var(--np-line-light);
}

.np-section--paper .np-accordion__item {
  border-bottom-color: var(--np-line-light);
}

.np-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--np-font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: inherit;
  cursor: pointer;
  transition: color 0.18s ease;
}

.np-accordion__trigger:hover {
  color: var(--np-cyan);
}

.np-section--paper .np-accordion__trigger:hover {
  color: #0f6a56;
}

.np-accordion__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--np-font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--np-orange);
  border: 1px solid var(--np-orange);
  transition: transform 0.22s ease, background-color 0.18s ease;
}

.np-accordion__trigger[aria-expanded="true"] .np-accordion__icon {
  transform: rotate(45deg);
  background: rgba(255, 139, 61, 0.14);
}

.np-accordion__panel {
  overflow: hidden;
  padding-bottom: 0;
  transition: height 0.22s ease;
}

.np-accordion__panel > * {
  padding-bottom: 18px;
  font-size: 16px;
  line-height: 1.75;
  color: inherit;
  opacity: 0.92;
}

/* --- 14. 时间轴 --------------------------------------------------------- */
.np-timeline {
  display: grid;
  gap: clamp(20px, 2.6vw, 34px);
  padding-left: 22px;
  border-left: 2px solid var(--np-cyan-soft);
}

.np-timeline__item {
  position: relative;
}

.np-timeline__item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -29px;
  width: 10px;
  height: 10px;
  background: var(--np-cyan);
  box-shadow: 0 0 0 3px rgba(56, 242, 196, 0.22);
}

.np-section--paper .np-timeline {
  border-left-color: var(--np-line-light);
}

.np-section--paper .np-timeline__item::before {
  background: #0f6a56;
  box-shadow: 0 0 0 3px rgba(15, 106, 86, 0.18);
}

/* --- 15. 图片容器 ------------------------------------------------------- */
.np-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid var(--np-cyan-soft);
  background-color: var(--np-night);
  background-image: linear-gradient(
    135deg,
    var(--np-night) 0%,
    var(--np-raise) 52%,
    var(--np-indigo) 100%
  );
}

.np-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-media--wide {
  aspect-ratio: 21 / 9;
}

.np-media--square {
  aspect-ratio: 1 / 1;
}

.np-media--tall {
  aspect-ratio: 3 / 4;
}

.np-media--slant {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.np-media__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      115deg,
      rgba(56, 242, 196, 0.16) 0 2px,
      rgba(56, 242, 196, 0) 2px 26px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0 1px,
      rgba(255, 255, 255, 0) 1px 48px
    );
}

.np-media__caption {
  display: block;
  margin-top: 8px;
  font-family: var(--np-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--np-steel);
}

.np-section--paper .np-media__caption {
  color: rgba(17, 22, 26, 0.6);
}

/* --- 16. 滚动交互组件 --------------------------------------------------- */
.np-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}

.np-progress__bar {
  height: 100%;
  width: 100%;
  transform: scaleX(var(--np-progress, 0));
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--np-cyan), var(--np-orange));
}

.np-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.np-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.np-to-top {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  font-family: var(--np-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--np-cyan);
  background: var(--np-deep);
  border: 2px solid var(--np-cyan);
  box-shadow: var(--np-shadow-hard-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.np-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* --- 17. 平板 ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .np-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .np-footer__col:last-child {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px dashed var(--np-line-dark);
  }
}

@media (max-width: 960px) {
  :root {
    --np-header-h: 72px;
    --np-header-h-sm: 60px;
  }

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

  .np-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: min(88vw, 370px);
    margin-inline-start: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: calc(var(--np-header-h) + 24px) 24px 36px;
    background-color: var(--np-deep);
    border-left: 2px solid var(--np-cyan);
    box-shadow: -14px 0 0 rgba(4, 12, 18, 0.4);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.26s ease, visibility 0.26s ease;
  }

  .np-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
  }

  .np-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
  }

  .np-nav__link {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--np-line-dark);
  }

  .np-nav__link::after {
    bottom: 8px;
    right: auto;
    width: 34px;
  }

  .np-nav__quick {
    display: grid;
    gap: 10px;
    padding-top: 6px;
    border-top: 2px solid var(--np-cyan-soft);
  }

  .np-nav__quick-link {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--np-paper);
    background-color: var(--np-raise);
    border: 2px solid transparent;
    border-left: 4px solid var(--np-orange);
    transition: border-color 0.18s ease, background-color 0.18s ease;
  }

  .np-nav__quick-link:hover,
  .np-nav__quick-link:focus-visible {
    background-color: #1b473d;
    border-color: var(--np-cyan);
    border-left-color: var(--np-orange);
  }

  .np-nav__quick-k {
    font-family: var(--np-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--np-cyan);
  }

  .np-nav__quick-v {
    font-size: 14px;
    color: rgba(243, 241, 233, 0.9);
  }

  .np-nav__note {
    display: block;
    font-family: var(--np-font-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--np-steel);
  }

  .np-header__inner {
    gap: 12px;
  }

  .np-header__actions {
    margin-inline-start: auto;
  }
}

/* --- 18. 手机 ----------------------------------------------------------- */
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .np-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .np-col-note,
  .np-col-main {
    grid-column: 1 / -1;
  }

  .np-display {
    text-shadow: 1.5px 1.5px 0 rgba(56, 242, 196, 0.55);
  }

  .np-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .np-footer__col--brand {
    border-left: 0;
    padding-left: 0;
    border-top: 2px solid var(--np-cyan-soft);
    padding-top: 16px;
  }

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

  .np-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .np-footer__legal {
    gap: 14px;
  }

  .np-btn {
    padding: 10px 16px;
  }

  .np-card {
    box-shadow: var(--np-shadow-hard-sm);
  }
}

@media (max-width: 480px) {
  .np-header__cta {
    padding: 8px 12px;
    font-size: 13px;
  }

  .np-nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .np-nav-toggle {
    padding: 10px 11px;
  }
}

/* --- 19. 无障碍与偏好 --------------------------------------------------- */
@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;
  }

  .np-reveal {
    opacity: 1;
    transform: none;
  }

  .np-accordion__panel {
    transition: none;
  }
}
