@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #f2f2f2;
  --dim: #a8a8a8;
  --line: #1d1d1d;
  --panel: #121212;
  --neon: #5ff0b6;
  --blue: #5c86ff;
  --rail: 128px;
  --round: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #000;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #000;
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--ink);
  font: 400 16px/1.7 'Rubik', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }

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

/* ---------- 左侧竖排轨 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 12px 18px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 70;
  transition: width .35s ease, background .3s ease, padding .3s ease;
}

.rail-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.mark {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(95, 240, 182, .35);
}

.burger {
  min-height: 42px;
  min-width: 42px;
  padding: 8px 12px;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  background: #0d0d0d;
  color: #dcdcdc;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.burger:hover { border-color: var(--neon); color: var(--neon); }

.rail-nav { flex: 1 1 auto; min-height: 0; }

.rail-list,
.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-list { display: flex; flex-direction: column; gap: 2px; }

.rail-list a {
  display: block;
  padding: 9px 6px;
  min-height: 40px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, padding .2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #fff;
  background: #141414;
  border-left-color: var(--neon);
  padding-left: 10px;
}

.rail-list li.hit a {
  color: #050505;
  background: var(--neon);
  border-left-color: var(--neon);
}

.search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 9px;
  font: inherit;
  font-size: 16px;
  color: #ececec;
  background: #0e0e0e;
  border: 1px solid #262626;
  border-radius: 8px;
}

.search input::placeholder { color: #6d6d6d; }

.search button {
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
  font-size: 16px;
  color: #cfcfcf;
  background: #161616;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  cursor: pointer;
}

.search button:hover { color: var(--neon); border-color: var(--neon); }

/* 展开态：全屏遮罩 */
.rail.open {
  width: 100%;
  padding: 22px 26px 24px;
  background: rgba(0, 0, 0, .97);
}

.rail.open .rail-top {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.rail.open .rail-nav { margin: auto 0; width: 100%; }

.rail.open .rail-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.rail.open .rail-list a {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 3vw, 32px);
  padding: 8px 10px;
  min-height: 52px;
  border-left: 0;
  border-bottom: 2px solid transparent;
}

.rail.open .rail-list a:hover,
.rail.open .rail-list a:focus-visible {
  padding-left: 10px;
  border-left: 0;
  border-bottom-color: var(--neon);
  background: transparent;
}

.rail.open .search {
  flex-direction: row;
  width: 100%;
  max-width: 540px;
  margin-top: 0;
}

/* ---------- 壳 ---------- */
.shell { margin-left: var(--rail); }

main { display: block; }

/* ---------- 首屏 ---------- */
.stage {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 40px 44px 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.stage-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 76% 26%, rgba(95, 240, 182, .16), transparent 58%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    #070707;
}

.stage-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .74;
  filter: grayscale(.2) brightness(.9);
}

.stage-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .52) 52%, rgba(0, 0, 0, .88) 100%);
}

.stage-copy {
  position: relative;
  z-index: 1;
  margin-left: auto;
  max-width: 660px;
  text-align: right;
  animation: rise .8s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.stage-copy h1 {
  margin: 0 0 14px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-shadow: 0 0 26px rgba(95, 240, 182, .2);
}

.lead {
  margin: 0 0 20px auto;
  max-width: 48ch;
  color: #c3c3c3;
  font-size: 17px;
  line-height: 1.7;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid rgba(95, 240, 182, .55);
  border-radius: var(--round);
  background: rgba(95, 240, 182, .07);
  color: var(--neon);
  font-size: 16px;
  text-decoration: none;
  transition: background .25s ease, box-shadow .25s ease;
}

.cta:hover {
  background: rgba(95, 240, 182, .16);
  box-shadow: 0 0 24px rgba(95, 240, 182, .22);
}

/* ---------- 正文 + 右侧栏 ---------- */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 50px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 44px 64px;
  align-items: start;
}

.prose { min-width: 0; }

.prose > article {
  scroll-margin-top: 26px;
  margin: 0 0 22px;
  padding: 28px 26px 22px;
  background: rgba(18, 18, 18, .62);
  border: 1px solid #191919;
  border-radius: var(--round);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.anim .prose > article {
  opacity: 0;
  transform: translateY(16px);
}

.anim .prose > article.in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}

.prose h2 {
  margin: 0 0 12px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.26;
  letter-spacing: -.015em;
}

.prose h3 {
  margin: 22px 0 10px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
}

.prose p,
.prose li { color: #d4d4d4; }

.prose p { margin: 0 0 14px; }

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

.prose li { margin-bottom: 6px; }

.prose a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { text-shadow: 0 0 10px rgba(95, 240, 182, .5); }

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--round);
}

.prose blockquote {
  margin: 18px 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--blue);
  color: #b6c7ff;
}

.subtitle {
  margin: 0 0 16px;
  color: #9d9d9d;
  font-size: 16px;
  line-height: 1.65;
}

.side {
  position: sticky;
  top: 26px;
  padding: 20px 18px 16px;
  background: rgba(18, 18, 18, .78);
  border: 1px solid #1c1c1c;
  border-radius: var(--round);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.side h2 {
  margin: 0 0 8px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.01em;
}

.side-list { display: flex; flex-direction: column; gap: 2px; }

.side-list a {
  display: block;
  padding: 9px 8px;
  min-height: 40px;
  font-size: 16px;
  color: #c2c2c2;
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}

.side-list a:hover,
.side-list a:focus-visible {
  color: #fff;
  background: #161616;
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: #050505;
  padding: 56px 44px 26px;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto 44px;
}

.mega {
  margin: 0 0 16px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 7vw, 74px);
  line-height: .95;
  letter-spacing: -.035em;
  color: #fff;
  text-shadow: 0 0 32px rgba(95, 240, 182, .2);
}

.foot-note {
  margin: 0;
  max-width: 44ch;
  color: #9b9b9b;
}

.foot-dls {
  display: grid;
  grid-template-columns: repeat(3, minmax(104px, auto));
  gap: 26px;
}

.foot-dls dt {
  margin-bottom: 8px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: .16em;
  color: #6f6f6f;
}

.foot-dls dd { margin: 0; }

.foot-dls a {
  display: inline-block;
  padding: 8px 0;
  min-height: 40px;
  font-size: 16px;
  color: #bcbcbc;
  text-decoration: none;
  transition: color .2s ease;
}

.foot-dls a:hover { color: var(--neon); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid #141414;
  color: #6d6d6d;
  font-size: 15px;
}

.foot-base .copy { margin: 0; }

.foot-base .top {
  padding: 10px 0;
  color: #a6a6a6;
  text-decoration: none;
  min-height: 40px;
}

.foot-base .top:hover { color: var(--neon); }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .rail {
    inset: 0 0 auto 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 9px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .rail-nav,
  .search { display: none; }

  .rail.open {
    inset: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    overflow-y: auto;
  }

  .rail.open .rail-top { margin-bottom: 12px; }

  .rail.open .rail-nav { display: block; margin: 0; }

  .rail.open .rail-list { flex-direction: column; gap: 0; }

  .rail.open .rail-list a {
    font-size: 18px;
    min-height: 46px;
    padding: 11px 8px;
    border-bottom: 1px solid #151515;
  }

  .rail.open .search {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: 18px;
  }

  .shell { margin-left: 0; padding-top: 58px; }

  .stage {
    min-height: 0;
    padding: 34px 20px 30px;
    justify-content: flex-start;
  }

  .stage-copy { text-align: left; margin-left: 0; max-width: 100%; }

  .lead { margin-left: 0; }

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

  .prose > article {
    padding: 22px 18px 16px;
    scroll-margin-top: 76px;
  }

  .side { position: static; }

  .foot { padding: 44px 18px 22px; }

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

  .foot-dls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

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

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

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

  .anim .prose > article { opacity: 1; transform: none; }
}

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