:root {
  --ink-0: #0A1020;
  --ink-1: #111C33;
  --ink-2: #2B3345;
  --ice: #8CD8FF;
  --fluor: #3BF0C0;
  --ember: #FF8A3D;
  --clay: #B86F52;
  --moss: #6F8F7A;
  --paper: #F3EFE6;
  --haze: #8FA3BF;
  --rail-w: 248px;
  --topbar-h: 64px;
  --shell: min(1180px, 100% - clamp(40px, 6vw, 96px));
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --dur: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink-0);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-inline-start: var(--rail-w);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(243, 239, 230, 0.88);
  background: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(140, 216, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 216, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
}

main {
  position: relative;
  z-index: 1;
  padding-top: clamp(20px, 3vw, 40px);
}

img, svg, picture { max-width: 100%; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--paper);
}

h1 { font-size: clamp(34px, 4.4vw, 60px); }
h2 { font-size: clamp(24px, 2.6vw, 34px); }
h3 { font-size: clamp(19px, 1.8vw, 23px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ice); }

a, button { -webkit-tap-highlight-color: transparent; }

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

/* ---------- 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.tilt { display: inline-block; transform: skewX(-3deg); }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 120;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--fluor);
  color: #04101a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform var(--dur) ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------- 头部侧轨 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding-top: 22px;
  overflow: hidden;
  border-right: 1px solid var(--ink-2);
  background-color: var(--ink-0);
  background-image:
    repeating-linear-gradient(to bottom, rgba(140, 216, 255, 0.055) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, #101C31 0%, #0B1424 58%, #0A1020 100%);
}

.scroll-rail {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: rgba(43, 51, 69, 0.6);
}

.scroll-rail__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--scroll-progress, 0));
  transform-origin: top center;
  background: linear-gradient(180deg, var(--ice), var(--fluor));
  transition: transform 90ms linear;
}

.rail-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
}

.brand__cn {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand__cn-accent { color: var(--fluor); letter-spacing: 0.02em; }

.brand__sub {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--haze);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  background: rgba(140, 216, 255, 0.06);
  border: 1px solid var(--ink-2);
  color: var(--ice);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: color var(--dur) ease, border-color var(--dur) ease, background var(--dur) ease;
}

.nav-toggle:hover { border-color: var(--ice); background: rgba(140, 216, 255, 0.12); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) ease, opacity var(--dur) ease;
}

.site-header[data-open="true"] .nav-toggle {
  color: var(--fluor);
  border-color: rgba(59, 240, 192, 0.6);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.rail-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 22px 22px;
  padding: 9px 12px;
  border: 1px solid rgba(59, 240, 192, 0.28);
  background: rgba(59, 240, 192, 0.06);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(243, 239, 230, 0.8);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fluor);
  box-shadow: 0 0 10px rgba(59, 240, 192, 0.85);
}

.rail-status__text { line-height: 1.5; }
.rail-status__text .mono { color: var(--fluor); }

.rail-nav { padding: 0 14px; }

.nav-label {
  margin: 0 0 8px;
  padding: 0 10px;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(143, 163, 191, 0.75);
}

.nav-upper {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 22px;
  padding: 0 0 0 10px;
  list-style: none;
  border-left: 1px solid var(--ink-2);
}

.nav-upper a {
  display: block;
  padding: 5px 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--haze);
  text-decoration: none;
  transition: color var(--dur) ease, transform var(--dur) ease;
}

.nav-upper a:hover,
.nav-upper a:focus-visible {
  color: var(--ice);
  transform: translateX(3px);
}

.nav-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  color: rgba(243, 239, 230, 0.82);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}

.nav-link__num {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--haze);
}

.nav-link__label { letter-spacing: 0.01em; }

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(140, 216, 255, 0.08);
  border-left-color: var(--ice);
  color: var(--paper);
}

.nav-link[aria-current="page"] {
  background: var(--ice);
  color: #06101F;
  border-left-color: transparent;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.nav-link[aria-current="page"] .nav-link__num { color: rgba(6, 16, 31, 0.62); }

.nav-link[aria-current="page"]:hover,
.nav-link[aria-current="page"]:focus-visible {
  background: var(--paper);
  color: #06101F;
}

.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--ink-2);
}

.rail-version {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--haze);
}

.rail-foot .btn { width: 100%; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}

.btn--cta {
  background: var(--ember);
  color: #10131F;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn--cta:hover,
.btn--cta:focus-visible { background: #FFA469; color: #0A1020; }

.btn--ghost {
  border-color: var(--ink-2);
  background: transparent;
  color: var(--ice);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--ice);
  background: rgba(140, 216, 255, 0.08);
}

/* ---------- 页面容器与基础组件 ---------- */
.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.page-head {
  padding-bottom: clamp(22px, 3vw, 34px);
  margin-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--ink-2);
}

.page-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 54px);
}

.page-lede {
  max-width: 62ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(243, 239, 230, 0.78);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fluor);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--haze);
}

.breadcrumb a {
  color: var(--haze);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--ice);
  border-bottom-color: var(--ice);
}

.breadcrumb__sep { color: var(--ink-2); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.panel {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--ink-2);
  background: var(--ink-1);
}

.panel--cut {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(59, 240, 192, 0.35);
  background: rgba(59, 240, 192, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fluor);
}

.tag--clay {
  color: #E7BCA9;
  background: rgba(184, 111, 82, 0.14);
  border-color: rgba(184, 111, 82, 0.5);
}

.tag--ember {
  color: var(--ember);
  background: rgba(255, 138, 61, 0.12);
  border-color: rgba(255, 138, 61, 0.45);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ink-2);
  background: var(--ink-1);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame img,
.media-frame picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(200deg, rgba(10, 16, 32, 0) 38%, rgba(10, 16, 32, 0.74) 100%),
    linear-gradient(to right, rgba(140, 216, 255, 0.18), transparent 24%);
}

.media-caption {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--haze);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(40px, 5.5vw, 72px);
  border-top: 1px solid var(--ink-2);
  background-image: linear-gradient(180deg, rgba(17, 28, 51, 0.6), rgba(10, 16, 32, 0.98));
}

.foot-inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1.05fr 0.75fr;
  gap: clamp(24px, 3.2vw, 48px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.foot-tagline {
  max-width: 34ch;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(243, 239, 230, 0.72);
}

.foot-tasks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-tasks a {
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(140, 216, 255, 0.25);
  color: var(--ice);
  font-size: 13.5px;
  text-decoration: none;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.foot-tasks a:hover,
.foot-tasks a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--fluor);
}

.foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.foot-col__title {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(143, 163, 191, 0.9);
}

.foot-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-list a {
  color: rgba(243, 239, 230, 0.78);
  font-size: 13.5px;
  text-decoration: none;
  transition: color var(--dur) ease;
}

.foot-list a:hover,
.foot-list a:focus-visible { color: var(--ice); }

.foot-contact {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.foot-key {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(143, 163, 191, 0.85);
}

.copy-value {
  display: inline;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px dashed rgba(143, 163, 191, 0.45);
  background: none;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.copy-value:hover,
.copy-value:focus-visible {
  color: var(--fluor);
  border-bottom-color: var(--fluor);
}

.copy-value.is-copied {
  color: var(--fluor);
  border-bottom-color: var(--fluor);
}

.copy-value.is-copied::after {
  content: " 已复制";
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.foot-value {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--paper);
}

.foot-note {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--haze);
}

.foot-legal .foot-note { margin-top: 12px; }

.foot-bottom {
  border-top: 1px solid var(--ink-2);
  background: rgba(10, 16, 32, 0.7);
}

.foot-bottom__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 20px;
}

.icp,
.copyright {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(143, 163, 191, 0.8);
}

/* ---------- 显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms ease, transform 450ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  body {
    padding-inline-start: 0;
    padding-top: var(--topbar-h);
  }

  .site-header {
    inset: 0 0 auto 0;
    width: 100%;
    height: auto;
    min-height: var(--topbar-h);
    padding-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink-2);
    background-image:
      repeating-linear-gradient(to bottom, rgba(140, 216, 255, 0.05) 0 1px, transparent 1px 42px),
      linear-gradient(180deg, #101C31, #0B1424);
  }

  .rail-topbar {
    min-height: var(--topbar-h);
    padding: 0 18px;
  }

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

  .rail-body {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: initial;
    max-height: calc(100dvh - var(--topbar-h) - 6px);
    padding: 14px 12px 22px;
    overflow-y: auto;
    border-bottom: 1px solid var(--ink-2);
    background: #0C1526;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }

  .site-header[data-open="true"] .rail-body { display: flex; }

  .rail-status { margin: 0 8px 16px; }
  .rail-nav { padding: 0; }
  .rail-foot {
    margin-top: 18px;
    padding: 16px 8px 0;
  }

  .scroll-rail {
    top: auto;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
  }

  .scroll-rail__bar {
    width: 100%;
    height: 100%;
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left center;
  }

  .foot-inner { grid-template-columns: 1fr 1fr; }
  .grid-12 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .foot-inner { grid-template-columns: 1fr; }

  .foot-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .panel { padding: 18px; }
}

@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;
    scroll-behavior: auto !important;
  }

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .nav-upper a:hover,
  .nav-upper a:focus-visible { transform: none; }

  .scroll-rail__bar { transition: none; }
}
