/* ========== 色彩与变量 ========== */
:root {
  --c-bg: #081027;
  --c-bg-float: #0B1226;
  --c-bg-card: #112240;
  --c-cyan: #00E5FF;
  --c-orange: #FF6B00;
  --c-text: #F0F4F8;
  --c-text-muted: #A0AEC0;
  --c-border: #00E5FF;
  --c-success: #00D68F;
  --c-warning: #FFC400;

  --font-title: "Space Grotesk", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --size-display: clamp(2.5rem, 6vw, 4rem);
  --size-h1: 2rem;
  --size-h2: 1.5rem;
  --size-h3: 1.25rem;
  --size-body: 1rem;
  --size-caption: 0.875rem;

  --container: 1200px;
  --radius: 2px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========== 重置与基础 ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--c-cyan) var(--c-bg-float);
  scrollbar-width: thin;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }

p { margin-bottom: 1em; }
ul, ol { padding-left: 1.5em; }

a {
  color: var(--c-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
a:hover { color: var(--c-orange); }

:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 3px;
}

::selection {
  background: var(--c-cyan);
  color: var(--c-bg);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb {
  background: #1d3a5f;
  border: 2px solid var(--c-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--c-cyan); }

#main-content {
  scroll-margin-top: 130px;
  outline: none;
}

.site-main {
  min-height: 60vh;
}

/* ========== 容器与段落 ========== */
.container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.section { padding-block: 72px; }
.section--tight { padding-block: 40px; }
.section--alt {
  background: var(--c-bg-float);
  border-block: 2px solid rgba(0, 229, 255, 0.22);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head__index {
  font-family: var(--font-title);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-orange);
  border: 2px solid rgba(255, 107, 0, 0.5);
  padding: 4px 10px;
  white-space: nowrap;
}
.section-head__title { margin: 0; }

/* ========== 网格 ========== */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ========== 卡片 ========== */
.card {
  background: var(--c-bg-card);
  border: 2px solid rgba(0, 229, 255, 0.28);
  padding: 28px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.card:hover {
  border-color: var(--c-cyan);
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(0, 229, 255, 0.12);
}
a.card {
  display: block;
  text-decoration: none;
  color: var(--c-text);
}
a.card:hover { color: var(--c-text); }

/* ========== 标签 ========== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.45);
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--c-orange);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: none;
}
.btn--solid {
  background: var(--c-cyan);
  color: var(--c-bg);
  border-color: var(--c-cyan);
  box-shadow: 4px 4px 0 var(--c-orange);
}
.btn--solid:hover {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-bg);
  box-shadow: 6px 6px 0 var(--c-cyan);
  transform: translate(-2px, -2px);
}
.btn--outline {
  background: transparent;
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  box-shadow: 3px 3px 0 rgba(0, 229, 255, 0.35);
}
.btn--outline:hover {
  color: var(--c-orange);
  border-color: var(--c-orange);
  box-shadow: 5px 5px 0 rgba(255, 107, 0, 0.3);
  transform: translate(-2px, -2px);
}
.btn--small {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 0.8125rem;
}

/* ========== 页头 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 16, 39, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(0, 229, 255, 0.55);
  transition: box-shadow 0.35s var(--ease-out);
}
.site-header[data-scrolled] {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--c-orange);
  color: var(--c-bg);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--c-bg);
  box-shadow: 4px 4px 0 var(--c-cyan);
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus {
  top: 12px;
}

.site-header__top {
  position: relative;
  background: rgba(11, 18, 38, 0.92);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}
.site-header__top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(0, 229, 255, 0.14) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}
.site-header__top-inner {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
}
.site-header__slogan {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
  color: var(--c-text);
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-success);
  animation: statusPulse 2.4s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(0, 214, 143, 0); }
}

.site-header__main {
  position: relative;
}
.site-header__inner {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ========== 品牌 ========== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--c-bg);
  border: 2px solid var(--c-cyan);
  box-shadow: 3px 3px 0 var(--c-orange);
  transition: box-shadow 0.25s var(--ease-out);
}
.brand__mark svg {
  width: 26px;
  height: 26px;
}
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name strong {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
}
.brand__name small {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-cyan);
  text-transform: uppercase;
}
.brand:hover .brand__mark {
  box-shadow: 3px 3px 0 var(--c-cyan);
}
.brand:hover .brand__name strong {
  color: var(--c-cyan);
}

/* ========== 导航 ========== */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 13px;
  font-family: var(--font-title);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-text);
  text-decoration: none;
  border: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--c-cyan);
  border-color: rgba(0, 229, 255, 0.5);
}
.site-nav__link[aria-current="page"] {
  color: var(--c-text);
  border-color: var(--c-border);
  background: rgba(0, 229, 255, 0.06);
}
.site-nav__link[aria-current="page"]::before,
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--c-orange);
}
.site-nav__link[aria-current="page"]::before {
  top: -2px;
  left: -2px;
}
.site-nav__link[aria-current="page"]::after {
  right: -2px;
  bottom: -2px;
}

.site-nav__actions {
  display: none;
}

/* ========== 移动导航按钮 ========== */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 2px solid var(--c-cyan);
  color: var(--c-text);
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover {
  border-color: var(--c-orange);
  color: var(--c-orange);
}
.nav-toggle__icon {
  position: relative;
  width: 18px;
  height: 12px;
}
.nav-toggle__icon span {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.nav-toggle__icon span:first-child { transform: translateY(-4px); }
.nav-toggle__icon span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child { transform: rotate(-45deg); }
.nav-toggle__label {
  line-height: 1;
}

/* ========== 滚动进度 ========== */
.header-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
  z-index: 5;
}
.header-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-orange));
}

/* ========== 页脚 ========== */
.site-footer {
  margin-top: 80px;
  background:
    radial-gradient(rgba(0, 229, 255, 0.07) 1px, transparent 1px),
    var(--c-bg-float);
  background-size: 22px 22px, auto;
  border-top: 3px solid var(--c-cyan);
}
.site-footer__tick {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--c-orange) 0 4px, transparent 4px 12px);
  opacity: 0.85;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-block: 48px 40px;
}
.site-footer__desc {
  margin: 16px 0 12px;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  max-width: 36em;
}
.site-footer__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
}
.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c-success);
  box-shadow: 0 0 0 2px rgba(0, 214, 143, 0.25);
}
.site-footer__col {
  display: flex;
  flex-direction: column;
}
.site-footer__heading {
  font-family: var(--font-title);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0, 229, 255, 0.35);
}
.site-footer__links,
.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.site-footer__links a {
  display: inline-block;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--c-cyan);
  transform: translateX(6px);
}
.site-footer__contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.contact-tag {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  padding: 1px 7px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--c-orange);
  background: rgba(255, 107, 0, 0.06);
  border: 1px solid rgba(255, 107, 0, 0.5);
  text-transform: uppercase;
}
.site-footer__more {
  margin: 18px 0 0;
}
.site-footer__more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 2px solid var(--c-border);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-footer__more a:hover {
  color: var(--c-orange);
  border-color: var(--c-orange);
}
.site-footer__bottom {
  padding-block: 18px 20px;
  border-top: 1px solid rgba(0, 229, 255, 0.25);
  background: rgba(8, 16, 39, 0.65);
}
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}
.site-footer__bottom p {
  margin: 0;
}
.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer__legal a {
  color: var(--c-text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-footer__legal a:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}

/* ========== 页面页头与面包屑 ========== */
.page-head {
  position: relative;
  padding: 48px 0 28px;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(0, 229, 255, 0.25);
}
.page-head__title {
  font-size: var(--size-display);
  margin: 0;
  line-height: 1.1;
}
.page-head__lead {
  margin: 14px 0 0;
  max-width: 640px;
  color: var(--c-text-muted);
  font-size: 1.0625rem;
}
.page-head::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 96px;
  height: 4px;
  background: var(--c-orange);
}

.breadcrumbs {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  font-weight: 700;
  color: var(--c-cyan);
}
.breadcrumbs a {
  color: var(--c-text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--c-cyan);
}
.breadcrumbs [aria-current="page"] {
  color: var(--c-orange);
  font-weight: 700;
}

/* ========== 图片容器 ========== */
.media {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-card);
  border: 2px solid rgba(0, 229, 255, 0.3);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--landscape { aspect-ratio: 16 / 9; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(125deg, rgba(0, 229, 255, 0.12), transparent 55%),
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(0, 229, 255, 0.05) 12px 14px);
}
.media--placeholder::after {
  content: "JNH · IMAGE SLOT";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(0, 229, 255, 0.45);
}

/* ========== 装饰 ========== */
.frame-marks {
  position: relative;
}
.frame-marks::before,
.frame-marks::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 1;
}
.frame-marks::before {
  top: -6px;
  left: -6px;
  border-top: 3px solid var(--c-cyan);
  border-left: 3px solid var(--c-cyan);
}
.frame-marks::after {
  bottom: -6px;
  right: -6px;
  border-bottom: 3px solid var(--c-orange);
  border-right: 3px solid var(--c-orange);
}

.speed-lines {
  height: 8px;
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(0, 229, 255, 0.22) 12px 14px);
  border-block: 1px solid rgba(0, 229, 255, 0.3);
}
.speed-lines--thick { height: 16px; }
.speed-lines--orange {
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 107, 0, 0.4) 12px 14px);
}

/* ========== 滚动显现 ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal="visible"] {
  opacity: 1;
  transform: none;
}

/* ========== 响应式 ========== */
@media (max-width: 1120px) {
  .site-header__inner {
    gap: 12px;
  }
  .site-nav__link {
    padding: 10px 8px;
    font-size: 0.875rem;
  }
  .site-header__actions .btn {
    padding-inline: 14px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-header__actions {
    display: none;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    display: none;
    background: rgba(11, 18, 38, 0.98);
    border-bottom: 2px solid var(--c-cyan);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  }
  .site-nav[data-open] {
    display: block;
    animation: navDrop 0.28s var(--ease-out);
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    width: min(100% - 32px, 1200px);
    margin-inline: auto;
    padding: 6px 0 0;
  }
  .site-nav__link {
    padding: 14px 0;
    border: 0;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.2);
    color: var(--c-text);
    font-size: 1rem;
  }
  .site-nav__link:hover {
    color: var(--c-cyan);
  }
  .site-nav__link[aria-current="page"] {
    color: var(--c-orange);
    background: transparent;
  }
  .site-nav__link[aria-current="page"]::before,
  .site-nav__link[aria-current="page"]::after {
    display: none;
  }
  .site-nav__actions {
    display: flex;
    gap: 12px;
    width: min(100% - 32px, 1200px);
    margin: 16px auto 20px;
  }
  .site-nav__actions .btn {
    flex: 1;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header__status {
    display: none;
  }
  .site-header__top-inner {
    min-height: 30px;
  }
  .site-header__inner {
    min-height: 64px;
    gap: 10px;
  }
  .brand__mark {
    width: 38px;
    height: 38px;
  }
  .brand__mark svg {
    width: 22px;
    height: 22px;
  }
  .brand__name small {
    display: none;
  }
  .nav-toggle {
    padding: 8px 10px;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer__bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ========== 减弱动效 ========== */
@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;
  }
  .status-dot {
    animation: none;
  }
  .header-progress {
    display: none;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
