:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #080808;
  --glass: rgba(18, 18, 18, 0.74);
  --line: rgba(255, 255, 255, 0.09);
  --line-hard: rgba(255, 255, 255, 0.16);
  --txt: #e8e8e8;
  --dim: #969696;
  --neon: #35e8ff;
  --neon-soft: rgba(53, 232, 255, 0.14);
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Exo", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --rail: 262px;
  --rad: 10px;
}

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

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

body {
  margin: 0;
  padding-left: var(--rail);
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--neon);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 左侧固定竖排导航 ---------- */

.site-head {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 18px 30px;
  background: rgba(0, 0, 0, 0.92);
  border-right: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.brand {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-link:hover {
  color: var(--neon);
}

.brand-txt {
  text-shadow: 0 0 12px rgba(53, 232, 255, 0.28);
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  animation: pulse 2.6s ease-in-out infinite;
  flex: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(0.82); }
}

.site-nav p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px 8px 12px;
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.site-nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: #3a3a3a;
  flex: none;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  background: var(--glass);
  border-left-color: var(--neon);
  transform: translateX(2px);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

.head-contact {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-hard);
  border-radius: var(--rad);
  background: var(--glass);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.head-contact:hover {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 14px rgba(53, 232, 255, 0.22);
}

/* ---------- 首屏 ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  min-height: 100svh;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px) clamp(20px, 4vw, 48px);
}

.hero-copy {
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--dim);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto 26px;
  max-width: 20ch;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(53, 232, 255, 0.22);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border: 1px solid var(--neon);
  border-radius: var(--rad);
  color: var(--neon);
  font-size: 16px;
  letter-spacing: 0.2em;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  background: var(--neon-soft);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(53, 232, 255, 0.26);
}

.hero-fig {
  min-height: 240px;
  height: min(66svh, 540px);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  background: var(--panel);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.92);
}

/* ---------- 正文骨架 ---------- */

.wrap {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 48px) 90px;
  border-top: 1px solid var(--line);
}

.side {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 18px 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.side h2 {
  margin: 0;
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--dim);
  text-transform: uppercase;
}

.side hr {
  margin: 10px 0 12px;
  border: 0;
  border-top: 1px solid var(--neon);
  opacity: 0.55;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  color: #c8c8c8;
  font-size: 15px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.side-list a:hover,
.side-list a:focus-visible {
  color: #ffffff;
  background: rgba(53, 232, 255, 0.09);
  border-left-color: var(--neon);
}

.doc {
  min-width: 0;
}

.prose {
  display: block;
  max-width: 74ch;
}

.prose article {
  scroll-margin-top: 96px;
  margin: 0 0 26px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.prose article:last-child {
  margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3 {
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.prose h2 {
  margin: 0 0 6px;
  font-size: clamp(1.32rem, 2.2vw, 1.62rem);
  font-weight: 600;
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 1.16rem;
  font-weight: 600;
}

.prose h2 + hr,
.prose h3 + hr {
  margin: 0 0 18px;
  border: 0;
  border-top: 1px solid var(--line-hard);
}

.prose hr {
  margin: 26px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose p {
  margin: 0 0 16px;
  color: #dcdcdc;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
  color: #dcdcdc;
}

.prose li::marker {
  color: var(--neon);
}

.prose strong {
  color: #ffffff;
  font-weight: 600;
}

.prose a {
  border-bottom: 1px solid rgba(53, 232, 255, 0.5);
  transition: background 0.16s ease;
}

.prose a:hover {
  background: var(--neon-soft);
}

.prose blockquote {
  margin: 0 0 18px;
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--neon);
  color: #c4c4c4;
  background: rgba(0, 0, 0, 0.35);
}

.prose img {
  border-radius: var(--rad);
  border: 1px solid var(--line);
  margin: 0 0 16px;
  height: auto;
}

.prose table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.prose code,
.prose pre {
  font-family: var(--mono);
  font-size: 14.5px;
}

.prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.prose pre {
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- 页脚 ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: #060606;
  padding: 42px clamp(20px, 4vw, 48px) 26px;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto 26px;
}

.site-foot address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 34ch;
}

.f-brand {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-transform: uppercase;
}

.f-desc {
  color: var(--dim);
  font-size: 15px;
  line-height: 1.7;
}

.f-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.f-list li {
  margin-bottom: 2px;
}

.f-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  color: #c6c6c6;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.f-list a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.foot-bar {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: #7d7d7d;
}

/* ---------- 断点 ---------- */

@media (max-width: 1000px) {
  .wrap {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  body {
    padding-left: 0;
  }

  .site-head {
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .brand {
    border-bottom: 0;
    padding-bottom: 0;
    flex: none;
  }

  .brand-link {
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .site-nav p {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .site-nav a {
    min-height: 42px;
    padding: 8px 11px;
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
  }

  .site-nav a::before {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    transform: none;
    border-color: var(--neon);
  }

  .head-contact {
    margin-top: 0;
    margin-left: auto;
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 42px 18px 40px;
    gap: 26px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .hero-fig {
    height: 220px;
    min-height: 0;
    order: 2;
  }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 16px 62px;
    gap: 24px;
  }

  .side {
    position: static;
  }

  .side-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .side-list a {
    min-height: 40px;
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14.5px;
  }

  .side-list a:hover,
  .side-list a:focus-visible {
    border-color: var(--neon);
  }

  .prose article {
    scroll-margin-top: 132px;
    padding: 18px 16px;
  }

  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .site-foot address {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
