/* ============================================================
   N体育数据 全站共享样式
   文件路径：/assets/site.css
   结构：变量 / 重置 / 排版 / 布局 / 通用组件 / 头部 / 页脚 / 动效
   ============================================================ */

/* ---------- 0. 设计变量 ---------- */
:root {
  --ns-deep-blue: #0A1B3D;
  --ns-orange: #FF6B00;
  --ns-electric: #00E5FF;
  --ns-violet: #7A4DFF;
  --ns-off-white: #F4F6F9;
  --ns-white: #FFFFFF;
  --ns-ink: #111111;
  --ns-gray: #666666;
  --ns-border: #E0E0E0;
  --ns-green: #28C76F;

  --ns-font-heading: 'Bebas Neue', Impact, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ns-font-body: 'Roboto', 'Helvetica Neue', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ns-font-data: 'Roboto Mono', 'Consolas', 'Liberation Mono', monospace;

  --ns-container: 1200px;
  --ns-gutter: 24px;
  --ns-header-h: 68px;
  --ns-shadow-sm: 0 4px 12px rgba(10, 27, 61, 0.08);
  --ns-shadow-md: 0 14px 30px rgba(10, 27, 61, 0.12);
  --ns-ease: 0.25s ease;
}

/* ---------- 1. 重置与基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--ns-font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ns-ink);
  background-color: var(--ns-off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

img, picture, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
svg { display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: transparent; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ns-font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ns-ink);
  text-wrap: balance;
}
p { margin-bottom: 1em; }

:focus { outline: 2px solid var(--ns-electric); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- 2. 排版 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--ns-font-data);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ns-orange);
}
.section-label::before {
  content: '';
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--ns-electric), transparent);
}
.section-title {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.section-lead {
  max-width: 640px;
  color: var(--ns-gray);
}
.section-lead p:last-child { margin-bottom: 0; }
.side-note {
  writing-mode: vertical-rl;
  font-family: var(--ns-font-data);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ns-gray);
  white-space: nowrap;
}

/* ---------- 3. 布局工具 ---------- */
.container {
  width: min(var(--ns-container), calc(100% - var(--ns-gutter) * 2));
  margin-inline: auto;
}
.section {
  padding-block: clamp(56px, 9vw, 88px);
}
.section--alt {
  background: var(--ns-white);
}
.section--dark {
  background-color: var(--ns-deep-blue);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(122, 77, 255, 0.16), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(0, 229, 255, 0.08), transparent 38%);
  color: rgba(255, 255, 255, 0.72);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #FFFFFF;
}
.section--dark .section-title { color: #FFFFFF; }
.section--dark .section-lead { color: rgba(255, 255, 255, 0.6); }

.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 4. 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 22px;
  border: 1px solid var(--ns-border);
  border-radius: 2px;
  font-family: var(--ns-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ns-ink);
  background: transparent;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--ns-ease),
    color var(--ns-ease),
    border-color var(--ns-ease),
    box-shadow var(--ns-ease),
    transform var(--ns-ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--ns-shadow-sm);
}
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ns-orange);
  border-color: var(--ns-orange);
  color: #FFFFFF;
}
.btn--primary::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 10px;
  border-color: transparent transparent var(--ns-deep-blue) transparent;
}
.btn--primary:hover {
  background: #E85F00;
  border-color: #E85F00;
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.3);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}
.btn--ghost:hover {
  border-color: var(--ns-electric);
  color: var(--ns-electric);
  box-shadow: none;
}

.btn--block { width: 100%; }

/* ---------- 5. 卡片 ---------- */
.card {
  position: relative;
  background: var(--ns-white);
  border: 1px solid var(--ns-border);
  border-radius: 4px;
  padding: 28px 24px;
  transition:
    transform var(--ns-ease),
    box-shadow var(--ns-ease),
    border-color var(--ns-ease);
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: var(--ns-shadow-md);
}
.card__index {
  display: block;
  margin-bottom: 12px;
  font-family: var(--ns-font-data);
  font-size: 12px;
  color: var(--ns-orange);
}
.card__title {
  font-family: var(--ns-font-heading);
  font-size: 20px;
  color: var(--ns-ink);
  margin-bottom: 10px;
}
.card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ns-gray);
  margin-bottom: 0;
}
.card__detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ns-gray);
  transition:
    max-height 0.35s ease,
    opacity 0.35s ease,
    margin 0.35s ease;
}
.card:hover .card__detail,
.card:focus-within .card__detail {
  max-height: 220px;
  opacity: 1;
  margin-top: 14px;
}

/* ---------- 6. 标签页 ---------- */
.tabs { margin-block: 24px; }
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid var(--ns-border);
  margin-bottom: 20px;
}
.tabs__tab {
  position: relative;
  padding: 10px 18px;
  font-family: var(--ns-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ns-gray);
  border-radius: 3px 3px 0 0;
  transition: color var(--ns-ease), background var(--ns-ease);
}
.tabs__tab:hover { color: var(--ns-deep-blue); }
.tabs__tab[aria-selected="true"] { color: var(--ns-deep-blue); }
.tabs__tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ns-orange);
}
.tabs__panel {
  animation: ns-fade-in 0.3s ease both;
}

@keyframes ns-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 7. 折叠面板 ---------- */
.accordion {
  border: 1px solid var(--ns-border);
  border-radius: 4px;
  background: var(--ns-white);
  overflow: hidden;
}
.accordion__item + .accordion__item {
  border-top: 1px solid var(--ns-border);
}
.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-family: var(--ns-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ns-ink);
  cursor: pointer;
  list-style: none;
  transition: background var(--ns-ease);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary:hover { background: rgba(10, 27, 61, 0.03); }
.accordion__summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--ns-font-data);
  font-size: 18px;
  line-height: 1;
  color: var(--ns-orange);
  transition: transform var(--ns-ease);
}
.accordion__item[open] .accordion__summary::after {
  transform: rotate(45deg);
}
.accordion__body {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ns-gray);
}
.accordion__body p:last-child { margin-bottom: 0; }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ns-gray);
  margin-bottom: 24px;
}
.breadcrumb__sep { color: var(--ns-border); }
.breadcrumb a {
  color: var(--ns-deep-blue);
  font-weight: 500;
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--ns-orange); }
.breadcrumb [aria-current="page"] {
  color: var(--ns-gray);
  font-weight: 400;
}

/* ---------- 9. 页面头图 ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  background-color: var(--ns-deep-blue);
  background-image:
    radial-gradient(circle at 80% 30%, rgba(122, 77, 255, 0.2), transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(0, 229, 255, 0.1), transparent 45%);
  padding: clamp(64px, 10vw, 110px) 0 56px;
}
.page-hero::before {
  content: attr(data-index);
  position: absolute;
  right: clamp(24px, 6vw, 80px);
  top: 42%;
  font-family: var(--ns-font-heading);
  font-size: clamp(90px, 18vw, 200px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border: 2px solid rgba(0, 229, 255, 0.14);
  transform: rotate(12deg);
  pointer-events: none;
}
.page-hero__container {
  position: relative;
  z-index: 2;
}
.page-hero__title {
  font-family: var(--ns-font-heading);
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.05;
  margin-bottom: 16px;
  color: #FFFFFF;
}
.page-hero__lead {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
}
.page-hero__meta {
  font-family: var(--ns-font-data);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ns-electric);
}

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.56);
}
.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}
.page-hero .breadcrumb a:hover { color: var(--ns-orange); }
.page-hero .breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.56);
}
.page-hero .breadcrumb__sep {
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- 10. 图片容器 ---------- */
.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--ns-deep-blue);
  aspect-ratio: 16 / 9;
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
}
.image-frame--4-3 { aspect-ratio: 4 / 3; }
.image-frame--3-2 { aspect-ratio: 3 / 2; }
.image-frame--21-9 { aspect-ratio: 21 / 9; }

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ns-font-data);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.28);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 9px
  );
}
.image-frame__placeholder::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 45%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.22), transparent);
  transform: rotate(20deg);
}

/* ---------- 11. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 999;
  background: var(--ns-orange);
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  transition: top 0.25s ease;
}
.skip-link:focus {
  top: 8px;
  color: #FFFFFF;
}

/* ---------- 12. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--ns-deep-blue);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(3, 8, 24, 0.35);
}
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ns-orange) 0 160px,
    var(--ns-electric) 160px 300px,
    transparent 300px
  );
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--ns-header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #FFFFFF;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-family: var(--ns-font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--ns-deep-blue);
  background: var(--ns-orange);
  clip-path: polygon(
    0 0,
    calc(100% - 7px) 0,
    100% 7px,
    100% 100%,
    7px 100%,
    0 calc(100% - 7px)
  );
}
.brand__name {
  font-family: var(--ns-font-heading);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.05em;
}
.brand__tag {
  font-family: var(--ns-font-data);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ns-electric);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 2px;
  padding: 2px 6px;
  margin-left: 2px;
}

.site-nav {
  margin-inline: auto;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__item { list-style: none; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  transition: color var(--ns-ease), background var(--ns-ease);
}
.site-nav__link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}
.site-nav__index {
  font-family: var(--ns-font-data);
  font-size: 10px;
  font-weight: 400;
  color: var(--ns-orange);
  opacity: 0.6;
  transition: opacity var(--ns-ease);
}
.site-nav__link:hover .site-nav__index { opacity: 1; }
.site-nav__label { display: block; }

.site-nav__link[aria-current="page"] { color: #FFFFFF; }
.site-nav__link[aria-current="page"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--ns-orange);
  transform: rotate(45deg);
}
.site-nav__link[aria-current="page"] .site-nav__index { opacity: 1; }

.site-header__cta {
  flex-shrink: 0;
  min-height: 38px;
  padding: 8px 18px;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  transition: background var(--ns-ease);
}
.site-header__toggle:hover { background: rgba(255, 255, 255, 0.12); }
.site-header__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  transition: transform var(--ns-ease), opacity var(--ns-ease);
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header__progress {
  --ns-progress: 0;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--ns-orange), var(--ns-electric));
  transform: scaleX(var(--ns-progress));
  transform-origin: 0 50%;
  z-index: 5;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  overflow: hidden;
  background-color: var(--ns-deep-blue);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  color: rgba(255, 255, 255, 0.72);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ns-orange) 0 40%,
    var(--ns-electric) 40% 70%,
    rgba(255, 255, 255, 0.12) 70%
  );
}
.site-footer::after {
  content: 'N';
  position: absolute;
  right: -30px;
  bottom: -120px;
  font-family: var(--ns-font-heading);
  font-size: 360px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
  z-index: 0;
}

.site-footer__container {
  position: relative;
  z-index: 1;
}

.site-footer__brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 48px;
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__statement {
  max-width: 560px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 36px 0 40px;
}
.site-footer__col { min-width: 0; }

.site-footer__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--ns-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.site-footer__index {
  font-family: var(--ns-font-data);
  font-size: 11px;
  color: var(--ns-orange);
}

.site-footer__contact-list,
.site-footer__link-list {
  display: grid;
  gap: 10px;
}
.site-footer__contact-list li,
.site-footer__link-list li {
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__contact-list li {
  position: relative;
  padding-left: 18px;
}
.site-footer__contact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 6px;
  height: 2px;
  background: var(--ns-electric);
}

.site-footer__link-list a {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--ns-ease), padding-left var(--ns-ease);
}
.site-footer__link-list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--ns-orange);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--ns-ease);
}
.site-footer__link-list a:hover {
  color: #FFFFFF;
  padding-left: 16px;
}
.site-footer__link-list a:hover::before {
  opacity: 1;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}
.site-footer__copyright,
.site-footer__icp {
  margin: 0;
}

/* ---------- 14. 滚动显现 ---------- */
:where(.js) [data-reveal] {
  --ns-reveal-offset: 22px;
  opacity: 0;
  transform: translateY(var(--ns-reveal-offset));
  transition: opacity 0.4s ease, transform 0.4s ease;
}
:where(.js) [data-reveal][data-revealed="true"] {
  --ns-reveal-offset: 0px;
  opacity: 1;
}

/* ---------- 15. 响应式调整 ---------- */
@media (max-width: 1024px) {
  .site-header__toggle {
    display: inline-flex;
  }
  .site-header__cta {
    margin-left: auto;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-height: calc(100vh - var(--ns-header-h));
    overflow-y: auto;
    background: var(--ns-deep-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 40px rgba(3, 8, 24, 0.45);
    padding: 8px 0 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(var(--ns-container), calc(100% - var(--ns-gutter) * 2));
    margin-inline: auto;
  }
  .site-nav__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .site-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    font-size: 16px;
  }
  .site-nav__link[aria-current="page"] {
    background: rgba(255, 107, 0, 0.1);
  }
  .site-nav__link[aria-current="page"]::before {
    display: none;
  }
}

@media (max-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .brand__tag { display: none; }
}

@media (max-width: 640px) {
  :root {
    --ns-gutter: 16px;
    --ns-header-h: 58px;
  }
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-header__cta { display: none; }
  .site-footer__brand-row {
    align-items: flex-start;
    padding: 36px 0 24px;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0 32px;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 16. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal],
  .js [data-reveal]:not([data-revealed="true"]) {
    --ns-reveal-offset: 0px;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
