@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --violet: #6514ff;
  --magenta: #bf00ff;
  --ink: #1c1726;
  --ink-2: #241d33;
  --paper: #f6f2ff;
  --muted: rgba(246, 242, 255, 0.62);
  --teal: #21e6c1;
  --r: 28px;
  --gap: 48px;
  --wrap: 1160px;
  color-scheme: dark;
}

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

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

html.lock,
html.lock body {
  overflow: hidden;
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(101, 20, 255, 0.55), transparent 44%),
    radial-gradient(circle at 88% 94%, rgba(191, 0, 255, 0.42), transparent 48%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: -25% -25%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 44px,
    var(--magenta) 44px 46px
  );
  animation: drift 26s linear infinite;
}

@keyframes drift {
  to {
    transform: translate3d(46px, 46px, 0);
  }
}

::selection {
  background: var(--magenta);
  color: #14101d;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

/* ---------- 顶部细条 ---------- */

.ticker {
  position: relative;
  z-index: 2;
  background: var(--magenta);
  color: #150f20;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  overflow: hidden;
  border-bottom: 2px solid #150f20;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 5px 0;
  list-style: none;
  white-space: nowrap;
  width: max-content;
  animation: slide 24s linear infinite;
}

.ticker-track li::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 34px;
  border-radius: 50%;
  background: #150f20;
  vertical-align: middle;
}

@keyframes slide {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------- 顶栏 ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(28, 23, 38, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(246, 242, 255, 0.14);
}

.bar details {
  position: relative;
}

.navL {
  justify-self: start;
}

.navR {
  justify-self: end;
}

summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(101, 20, 255, 0.32);
  color: var(--paper);
  font-weight: 700;
  font-size: 16px;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
  position: relative;
  z-index: 120;
}

summary::-webkit-details-marker {
  display: none;
}

summary em {
  font-style: normal;
}

summary:hover {
  background: var(--violet);
  transform: translateY(-1px);
}

details[open] > summary {
  background: var(--teal);
  color: #14101d;
}

.burger {
  display: block;
  width: 18px;
  height: 12px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 5px / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 10px / 100% 2px no-repeat;
}

.brand {
  justify-self: center;
  text-align: center;
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
}

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

/* ---------- 遮罩菜单 ---------- */

details menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

details[open] > menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 100px 22px 54px;
  overflow: auto;
  counter-reset: n;
  background:
    radial-gradient(circle at 78% 18%, rgba(191, 0, 255, 0.62), transparent 52%),
    repeating-linear-gradient(45deg, transparent 0 58px, rgba(246, 242, 255, 0.06) 58px 60px),
    linear-gradient(165deg, #1c1726 20%, #3c0a7e 70%, #6a00a6 100%);
}

details[open] > menu li {
  width: 100%;
  max-width: 620px;
  counter-increment: n;
  opacity: 0;
  transform: translateY(16px);
  animation: pop 320ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

details[open] > menu li:nth-child(1) { animation-delay: 40ms; }
details[open] > menu li:nth-child(2) { animation-delay: 90ms; }
details[open] > menu li:nth-child(3) { animation-delay: 140ms; }
details[open] > menu li:nth-child(4) { animation-delay: 190ms; }
details[open] > menu li:nth-child(5) { animation-delay: 240ms; }

@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}

details[open] > menu a {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  padding: 8px 6px;
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 2px solid rgba(246, 242, 255, 0.2);
  transition: color 200ms ease, padding-left 200ms ease;
}

details[open] > menu a::before {
  content: counter(n, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 2.1em;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--teal);
}

details[open] > menu a:hover {
  color: var(--teal);
  padding-left: 14px;
}

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

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: var(--gap);
  min-height: 70vh;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 22px 56px;
}

.hero-num {
  position: absolute;
  top: 0;
  right: 14px;
  z-index: 0;
  font-size: clamp(120px, 24vw, 280px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(191, 0, 255, 0.42);
  pointer-events: none;
}

.hero-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--violet), var(--magenta));
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-blank {
  display: block;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, transparent 0 30px, rgba(255, 255, 255, 0.12) 30px 32px),
    linear-gradient(150deg, var(--violet), var(--magenta));
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 18px;
  font-size: clamp(32px, 6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #ffffff;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 auto 26px;
  max-width: 32ch;
  font-size: 17px;
  color: var(--muted);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 34px;
  border-radius: 999px;
  background: var(--magenta);
  color: #150f20;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 220ms ease, background 220ms ease;
}

.hero-cta:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

/* ---------- 主体骨架 ---------- */

main {
  position: relative;
  z-index: 1;
  padding: 8px 22px 72px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
}

.doc {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.rail {
  position: sticky;
  top: 86px;
  padding: 20px 18px;
  border-radius: var(--r);
  background: var(--ink-2);
  border: 2px solid rgba(246, 242, 255, 0.1);
}

.rail h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #ffffff;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 2px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 242, 255, 0.09);
  transition: color 180ms ease;
}

.rail-list a:hover {
  color: var(--teal);
}

/* ---------- 正文 ---------- */

.prose {
  max-width: 74ch;
  min-width: 0;
}

.prose > section {
  padding: 44px 0;
  border-top: 2px solid rgba(246, 242, 255, 0.13);
  scroll-margin-top: 96px;
  animation: rise 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.prose > section:nth-child(1) { animation-delay: 20ms; }
.prose > section:nth-child(2) { animation-delay: 60ms; }
.prose > section:nth-child(3) { animation-delay: 100ms; }
.prose > section:nth-child(4) { animation-delay: 140ms; }
.prose > section:nth-child(5) { animation-delay: 180ms; }
.prose > section:nth-child(6) { animation-delay: 220ms; }
.prose > section:nth-child(7) { animation-delay: 260ms; }

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

.prose > section:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(29px, 4.2vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #ffffff;
  text-wrap: balance;
}

.prose h3 {
  margin: 30px 0 12px;
  font-size: clamp(21px, 2.6vw, 25px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.prose hr {
  border: 0;
  height: 6px;
  margin: 0 0 24px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
}

.rail hr {
  border: 0;
  height: 6px;
  margin: 0 0 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
}

.prose p {
  margin: 0 0 16px;
  color: rgba(246, 242, 255, 0.86);
}

.prose strong {
  color: #ffffff;
}

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

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

.prose li {
  margin-bottom: 8px;
  color: rgba(246, 242, 255, 0.86);
}

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

.prose blockquote {
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: 0 var(--r) var(--r) 0;
  border-left: 6px solid var(--magenta);
  background: rgba(101, 20, 255, 0.16);
  color: var(--paper);
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(246, 242, 255, 0.16);
}

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

.prose code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(246, 242, 255, 0.12);
  font-size: 16px;
}

.prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
  margin: 0 0 20px;
}

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

.foot {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding: 56px 22px 22px;
  background: #14101d;
  border-top: 2px solid rgba(246, 242, 255, 0.12);
}

.foot-main {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: var(--gap);
  max-width: var(--wrap);
  margin: 0 auto;
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
}

.foot-logo:hover {
  color: var(--teal);
}

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

.foot-cols dl {
  margin: 0;
}

.foot-cols dt {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(246, 242, 255, 0.5);
}

.foot-cols dd {
  margin: 0;
}

.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.foot-cols dd a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.foot-base {
  max-width: var(--wrap);
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 242, 255, 0.14);
}

.foot-base p {
  margin: 0;
  font-size: 16px;
  color: rgba(246, 242, 255, 0.5);
}

/* ---------- 移动端 ---------- */

@media (max-width: 800px) {
  body::before {
    opacity: 0.1;
  }

  .bar {
    padding: 6px 10px;
  }

  .brand {
    font-size: 17px;
  }

  summary {
    padding: 10px 13px;
  }

  summary em {
    display: none;
  }

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

  .hero-copy {
    order: -1;
  }

  .hero-media {
    aspect-ratio: 3 / 2;
    min-height: 0;
  }

  .hero-num {
    font-size: clamp(96px, 34vw, 150px);
    right: 8px;
    opacity: 0.75;
  }

  .hero h1 {
    margin-bottom: 12px;
  }

  .hero-lead {
    margin-bottom: 20px;
  }

  main {
    padding: 4px 18px 56px;
  }

  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .rail {
    position: static;
    border-radius: 22px;
    padding: 16px;
  }

  .rail h2 {
    font-size: 18px;
  }

  .rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .rail-list a {
    border-bottom: 2px solid rgba(246, 242, 255, 0.12);
  }

  .prose > section {
    padding: 34px 0;
    scroll-margin-top: 78px;
  }

  .prose {
    max-width: none;
  }

  details[open] > menu {
    padding: 88px 18px 40px;
  }

  details[open] > menu a {
    font-size: clamp(22px, 7vw, 30px);
    min-height: 60px;
  }

  .foot {
    padding: 40px 18px 18px;
  }

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

  .foot-cols {
    gap: 12px;
  }
}

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

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

  details[open] > menu li,
  .prose > section {
    opacity: 1;
    transform: none;
  }
}

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