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

:root {
  --ink: #0B0B0C;
  --pink: #FF2D7A;
  --lime: #D6FF3F;
  --paper: #F3F3EF;
  --muted: #9C9CA1;
  --line: #252529;
  --panel: #141417;
}

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

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

body {
  margin: 0;
  padding-bottom: 92px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Epilogue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.lock {
  overflow: hidden;
}

main [id] {
  scroll-margin-top: 22px;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
.brand,
.menu a,
.foot-mark {
  font-family: "Anton", "Epilogue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
}

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

/* 底部固定条 */
.sitebar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  background: rgba(11, 11, 12, .97);
  border-top: 2px solid var(--pink);
  backdrop-filter: blur(8px);
}

.brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 1.12rem;
  color: var(--paper);
  text-decoration: none;
}

.brand-dot {
  width: 13px;
  height: 13px;
  background: var(--lime);
  border-radius: 3px;
  transform: rotate(45deg);
}

.menu-toggle {
  position: relative;
  z-index: 3;
  min-height: 44px;
  min-width: 82px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.menu-toggle:hover {
  background: var(--pink);
  color: #fff;
}

.menu-toggle:active {
  transform: scale(.96);
}

/* 全屏菜单 */
.menu {
  position: fixed;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 84px 22px 116px;
  list-style: none;
  counter-reset: m;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 45, 122, .3), transparent 56%),
    radial-gradient(circle at 4% 92%, rgba(214, 255, 63, .16), transparent 52%),
    var(--ink);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .46s cubic-bezier(.7, 0, .2, 1), opacity .3s linear, visibility .46s;
}

.sitebar.open .menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.menu li {
  counter-increment: m;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-size: clamp(1.55rem, 6.6vw, 2.5rem);
  line-height: 1.12;
  text-decoration: none;
  transition: color .2s, transform .2s;
}

.menu a::before {
  content: counter(m, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 2.4ch;
  font-family: "Epilogue", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--lime);
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--pink);
  transform: translateX(6px);
}

.sitebar.open .menu li {
  animation: slideIn .5s cubic-bezier(.2, .7, .3, 1) both;
}

.sitebar.open .menu li:nth-child(1) { animation-delay: .06s; }
.sitebar.open .menu li:nth-child(2) { animation-delay: .11s; }
.sitebar.open .menu li:nth-child(3) { animation-delay: .16s; }
.sitebar.open .menu li:nth-child(4) { animation-delay: .21s; }
.sitebar.open .menu li:nth-child(5) { animation-delay: .26s; }
.sitebar.open .menu li:nth-child(6) { animation-delay: .31s; }
.sitebar.open .menu li:nth-child(7) { animation-delay: .36s; }

/* 头部 */
.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  min-height: 45vh;
  padding: 46px 20px 30px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% -14%, rgba(255, 45, 122, .2), transparent 62%);
}

.hero-fig {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--lime);
  border-radius: 4px;
  background: var(--panel);
  color: var(--lime);
}

.hero-ico {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-glyph {
  font-family: "Anton", sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.05rem, 7.4vw, 4.9rem);
  line-height: 1.03;
  background: linear-gradient(100deg, var(--lime), var(--pink) 48%, var(--lime));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 9s linear infinite;
  word-break: break-word;
}

.hero h1.split span {
  display: inline-block;
  animation: charIn .52s cubic-bezier(.2, .8, .3, 1) both;
}

.lede {
  flex-basis: 100%;
  max-width: 62ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* 正文与侧栏 */
.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: start;
  gap: 48px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 46px 20px 72px;
}

.prose {
  min-width: 0;
}

.prose section + section {
  margin-top: 2.4rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin: 2rem 0 .65rem;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.2;
  color: var(--paper);
}

.prose section:first-child > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.5rem 0 .45rem;
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--lime);
}

.prose p {
  margin: 0 0 1.25rem;
  font-size: 1.03rem;
  line-height: 1.85;
  color: #D9D9D5;
}

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

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  line-height: 1.8;
}

.prose li {
  margin: 0 0 .45rem;
}

.prose img {
  display: block;
  margin: 1.4rem 0;
  border-radius: 4px;
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 14px 18px;
  border-left: 4px solid var(--pink);
  border-radius: 0 4px 4px 0;
  background: var(--panel);
  color: #E8E8E4;
}

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

hr {
  width: 56px;
  height: 3px;
  margin: .7rem 0 1.4rem;
  border: 0;
  border-radius: 2px;
  background: var(--pink);
}

.rail {
  position: sticky;
  top: 26px;
  padding: 18px;
  border-top: 4px solid var(--pink);
  border-radius: 4px;
  background: var(--panel);
}

.rail h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.rail hr {
  width: 42px;
  height: 2px;
  margin: .6rem 0 1rem;
  background: var(--lime);
}

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

.rail a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 7px 0;
  border-bottom: 1px solid #202024;
  color: #CFCFCB;
  font-size: .95rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}

.rail a:hover {
  color: var(--pink);
  padding-left: 5px;
}

/* 页脚 */
.foot {
  margin-top: 24px;
  padding: 56px 20px 104px;
  border-top: 1px solid var(--line);
  background: #0D0D0F;
}

.foot-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.foot-mark {
  margin: 0 0 34px;
  font-size: clamp(3rem, 12.5vw, 7.6rem);
  line-height: .86;
  letter-spacing: .01em;
  color: transparent;
  -webkit-text-stroke: 1px var(--pink);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.foot-grid address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper);
}

.foot-grid h3 {
  margin: 0 0 10px;
  font-family: "Epilogue", "PingFang SC", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--lime);
}

.foot-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  color: #C9C9C6;
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s;
}

.foot-grid a:hover {
  color: var(--pink);
}

.foot-key {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: #C9C9C6;
}

.foot-base {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #77777C;
  font-size: .85rem;
  letter-spacing: .06em;
}

.foot-base p {
  margin: 0;
}

/* 进场 */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes charIn {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@media (min-width: 900px) {
  .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 0 44px;
    padding: 96px 9vw 120px;
  }
}

@media (max-width: 900px) {
  .content {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 36px;
  }

  .rail {
    position: static;
    order: 2;
  }

  .prose {
    order: 1;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-fig {
    width: 50px;
    height: 50px;
  }

  .content {
    padding: 30px 18px 56px;
  }

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

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .foot-grid address {
    grid-column: 1 / -1;
  }

  .foot-mark {
    -webkit-text-stroke-width: 1px;
    margin-bottom: 26px;
  }
}

@media (max-width: 400px) {
  .menu {
    padding-left: 18px;
    padding-right: 18px;
  }

  .menu a {
    font-size: 1.45rem;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

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