@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@400;500;600;700&family=Public+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #000000;
  --panel: #121212;
  --panel-2: #070a10;
  --txt: #eceff3;
  --mut: #8b929c;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.045);
  --neon: #7fd0ff;
  --neon-2: #b6a4ff;
  --gold: #e8c98a;
  --serif: "Libre Bodoni", Georgia, "Songti SC", "Noto Serif SC", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 82% -12%, rgba(28, 62, 104, 0.38), transparent 72%),
    radial-gradient(720px 460px at -14% 8%, rgba(78, 58, 138, 0.2), transparent 68%);
  background-attachment: fixed;
  color: var(--txt);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(127, 208, 255, 0.28);
  color: #fff;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  padding: 12px 18px;
  background: var(--neon);
  color: #001018;
  font-size: 16px;
  font-weight: 600;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* 顶部细条 */
.topline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  background: #000;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: #9aa3ad;
}

.topline p {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topline-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 208, 255, 0.55), rgba(127, 208, 255, 0));
}

/* 顶栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mark:hover {
  border-color: rgba(127, 208, 255, 0.6);
  box-shadow: 0 0 14px rgba(127, 208, 255, 0.25);
}

.mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mark span {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  color: var(--neon);
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  color: var(--txt);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.burger:hover {
  border-color: rgba(127, 208, 255, 0.6);
  color: var(--neon);
}

.burger em {
  font-style: normal;
  letter-spacing: 0.12em;
}

.burger .bx {
  display: grid;
  gap: 5px;
  width: 18px;
}

.burger .bx span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.26s ease;
}

body.menu-open .burger .bx span:first-child {
  transform: translateY(3px) rotate(45deg);
}

body.menu-open .burger .bx span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 全屏遮罩菜单 */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 20px 30px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s linear;
}

body.menu-open .menu {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.menu-brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.05em;
  color: #e7ecf2;
}

.menu-close {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--txt);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.menu-close:hover {
  color: var(--neon);
  border-color: rgba(127, 208, 255, 0.6);
}

.menu-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-width: 760px;
}

.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 54px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  color: #e4e9ef;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  color: var(--neon);
  padding-left: 12px;
}

.menu-list .idx,
.rail-list .idx {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: #5b6470;
  min-width: 2.4em;
}

/* 骨架 */
.shell {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.rail {
  position: sticky;
  top: 68px;
  align-self: start;
  min-height: 55vh;
  padding: 28px 20px 28px 0;
  border-right: 1px solid var(--line-soft);
}

.rail-t {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: #6a737e;
}

.rail-t span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 9px;
  vertical-align: middle;
  background: rgba(127, 208, 255, 0.7);
}

.rail nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rail-list li {
  animation: railIn 0.5s both;
}

.rail-list li:nth-child(1) { animation-delay: 0.03s; }
.rail-list li:nth-child(2) { animation-delay: 0.07s; }
.rail-list li:nth-child(3) { animation-delay: 0.11s; }
.rail-list li:nth-child(4) { animation-delay: 0.15s; }
.rail-list li:nth-child(5) { animation-delay: 0.19s; }
.rail-list li:nth-child(6) { animation-delay: 0.23s; }
.rail-list li:nth-child(7) { animation-delay: 0.27s; }

@keyframes railIn {
  from {
    opacity: 0;
    transform: translateX(-9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 6px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: #a4acb6;
  transition: color 0.2s ease, background 0.2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

main {
  min-width: 0;
  padding: 0 0 80px 36px;
}

.wrap {
  max-width: 100%;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  padding: 48px 0 32px;
}

.ghost {
  position: absolute;
  top: 4px;
  right: -14px;
  z-index: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(56px, 10.5vw, 140px);
  line-height: 0.84;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  will-change: transform;
}

.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.26em;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(127, 208, 255, 0.45);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-shadow: 0 0 22px rgba(127, 208, 255, 0.16);
}

.lead {
  margin: 0;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.72;
  color: #a9b1bb;
}

.hero-fig-wrap {
  display: flex;
}

.hero-fig {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-svg {
  width: 64px;
  height: 64px;
  color: var(--neon-2);
  filter: drop-shadow(0 0 12px rgba(182, 164, 255, 0.35));
}

/* 正文 */
.body {
  padding-top: 6px;
}

.piece {
  border-top: 1px solid var(--line);
}

.piece > section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 132px;
}

.piece > section:last-child {
  border-bottom: 0;
  padding-bottom: 10px;
}

.piece h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(23px, 2.7vw, 33px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: 0 0 16px rgba(127, 208, 255, 0.15);
}

.piece h3 {
  margin: 26px 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.42;
  color: #eef2f7;
}

.piece p {
  margin: 0 0 15px;
  max-width: 68ch;
  color: #ccd3dc;
}

.piece ul,
.piece ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
  display: grid;
  gap: 9px;
  max-width: 66ch;
}

.piece li {
  color: #ccd3dc;
}

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

.piece a {
  color: var(--neon);
  border-bottom: 1px solid rgba(127, 208, 255, 0.35);
}

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

.piece strong {
  color: #fff;
  font-weight: 600;
}

.piece blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--neon-2);
  border-radius: 0 10px 10px 0;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.piece blockquote p {
  margin: 0 0 10px;
  color: #dde3ea;
}

.piece blockquote p:last-child {
  margin: 0;
}

.piece figure {
  margin: 0 0 18px;
}

.piece img {
  border: 1px solid var(--line);
  border-radius: 10px;
}

.piece table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

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

.piece th {
  color: #fff;
  font-weight: 600;
}

/* 页脚 */
.foot {
  margin-top: 56px;
  padding: 34px 20px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #000, var(--panel-2));
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.foot-addr {
  font-family: var(--serif);
  font-style: normal;
  font-size: 20px;
  line-height: 1.5;
  color: #dfe5ec;
}

.foot-t {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: #6a737e;
}

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

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: #a9b1bb;
  transition: color 0.2s ease;
}

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

.foot-mark {
  max-width: 1200px;
  margin: 16px auto 0;
  overflow: hidden;
  white-space: nowrap;
}

.foot-mark span {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(42px, 10.5vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.24);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 16px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
  color: #79818c;
}

.foot-base p {
  margin: 0;
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  color: #c8d0d9;
}

.totop:hover,
.totop:focus-visible {
  color: var(--neon);
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .rail {
    position: sticky;
    top: 64px;
    z-index: 30;
    min-height: 0;
    margin: 0 -16px;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .rail-t {
    display: none;
  }

  .rail nav ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 9px 16px;
    scrollbar-width: none;
  }

  .rail nav ul::-webkit-scrollbar {
    display: none;
  }

  .rail-list li {
    flex: 0 0 auto;
  }

  .rail-list a {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--glass);
    font-size: 15px;
    white-space: nowrap;
  }

  .rail-list .idx {
    display: none;
  }

  main {
    padding: 0 0 56px;
  }

  .hero {
    min-height: 0;
    padding: 32px 0 26px;
  }

  .piece > section {
    padding: 36px 0;
    scroll-margin-top: 128px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 420px) {
  .menu-list a {
    font-size: 20px;
  }

  .topline {
    font-size: 14px;
    letter-spacing: 0.16em;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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