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

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

:root {
  --violet: #6514ff;
  --magenta: #bf00ff;
  --ink: #1c1726;
  --ink-2: #241d33;
  --ink-3: #2b2240;
  --paper: #f7f4ff;
  --muted: #b6a9cc;
  --r: 28px;
  --dock-h: 78px;
  --wrap: 1160px;
  --sans: 'Archivo', 'Space Grotesk', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --display: 'Space Grotesk', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  margin: 0;
  padding: 0 0 calc(var(--dock-h) + 40px);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(112deg, rgba(101, 20, 255, .12) 0 2px, transparent 2px 30px),
    radial-gradient(closest-side at 82% -4%, rgba(191, 0, 255, .28), transparent 72%),
    radial-gradient(closest-side at -6% 62%, rgba(101, 20, 255, .24), transparent 70%);
  animation: drift 28s linear infinite;
}

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

img { max-width: 100%; }

a { color: inherit; }

/* 角落品牌（纯图标） */
.corner {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  border: 2px solid rgba(255, 255, 255, .3);
  box-shadow: 0 8px 22px rgba(101, 20, 255, .45);
  transition: transform .22s ease, box-shadow .22s ease;
}

.corner:hover,
.corner:focus-visible {
  transform: scale(1.09) rotate(-6deg);
  box-shadow: 0 12px 30px rgba(191, 0, 255, .6);
}

/* 画布 */
.canvas {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 74px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 30px;
  align-items: stretch;
  min-height: 45vh;
  padding: 34px 30px;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(158deg, #2b2140 0%, #201930 52%, #251a3d 100%);
  border: 1px solid rgba(255, 255, 255, .09);
}

.hero::before {
  content: "01";
  position: absolute;
  top: -26px;
  right: 12px;
  z-index: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(120px, 19vw, 210px);
  line-height: 1;
  letter-spacing: -.05em;
  color: rgba(255, 255, 255, .06);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(101, 20, 255, .5), rgba(191, 0, 255, .3));
  filter: blur(10px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  text-align: center;
  margin: 0 auto;
  max-width: 30em;
}

.kicker {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: .16em;
  color: #f0e2ff;
  background: rgba(191, 0, 255, .22);
  border: 1px solid rgba(191, 0, 255, .45);
}

h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(32px, 6.2vw, 58px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.025em;
  background: linear-gradient(102deg, #fff 24%, #e6cdff 62%, #ff63ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 auto;
  max-width: 26em;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  min-height: 210px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--violet), var(--magenta) 58%, #ff4fd8);
  border-bottom: 8px solid rgba(255, 255, 255, .28);
  box-shadow: 0 18px 44px rgba(101, 20, 255, .35);
}

.hero-art .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mix-blend-mode: luminosity;
  transition: transform .35s ease;
}

.hero-art:hover .hero-img { transform: scale(1.04); }

/* 正文区 + 右侧栏 */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 42px;
  align-items: start;
}

.prose {
  font-size: 17px;
  line-height: 1.8;
  color: #e9e3f6;
  min-width: 0;
}

.prose > section {
  scroll-margin-top: 84px;
  margin: 0 0 26px;
  padding: 26px 24px;
  border-radius: var(--r);
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 6px solid var(--violet);
  transition: border-color .25s ease, background .25s ease;
}

.prose > section:hover {
  background: #271f37;
  border-bottom-color: var(--magenta);
}

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

.prose small {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 13px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: .14em;
  color: #e2c4ff;
  background: rgba(191, 0, 255, .18);
}

.prose h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #fff;
}

.prose h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
}

.prose h3 {
  margin: 26px 0 10px;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.4;
  color: #fff;
}

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

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

.prose a {
  color: #e6d4ff;
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

.prose a:hover { color: #fff; }

.prose strong { color: #ffd9fb; }

.prose ul,
.prose ol {
  margin: 0 0 15px;
  padding-left: 1.4em;
}

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

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

.prose blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-radius: 18px;
  border-left: 6px solid var(--magenta);
  background: rgba(191, 0, 255, .1);
  color: #f0e6ff;
}

.prose img {
  border-radius: 20px;
  display: block;
  margin: 16px 0;
}

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

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

.prose th { color: #fff; }

/* 侧栏 */
.rail {
  position: sticky;
  top: 84px;
  padding: 22px 20px;
  border-radius: var(--r);
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 6px solid var(--magenta);
}

.rail small {
  display: inline-block;
  font-size: 15px;
  letter-spacing: .18em;
  color: #cba6ff;
}

.rail h2 {
  margin: 8px 0 16px;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #fff;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  color: #ded3f2;
  background: rgba(255, 255, 255, .035);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: rgba(191, 0, 255, .26);
  color: #fff;
  transform: translateX(3px);
}

.num {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #a97dff;
}

.rail-list a:hover .num { color: #ffb0fb; }

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 62px auto 0;
  padding: 38px 22px 10px;
  display: grid;
  grid-template-columns: 1.25fr 1fr .75fr;
  gap: 22px;
  align-items: center;
  border-top: 2px solid rgba(255, 255, 255, .13);
}

.foot-brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.035em;
  color: #fff;
}

.foot-copy {
  margin: 0;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.foot-top {
  margin: 0;
  text-align: right;
}

.foot-top small { font-size: 16px; }

.foot-top a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  color: #ecdfff;
  background: rgba(101, 20, 255, .2);
  border: 1px solid rgba(191, 0, 255, .5);
  transition: background .2s ease, color .2s ease;
}

.foot-top a:hover { background: var(--magenta); color: #fff; }

/* 底部胶囊坞 */
.dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(28, 23, 38, .88);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dock-menu { position: relative; }

.dock-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  transition: filter .2s ease, transform .2s ease;
}

.dock-menu summary::-webkit-details-marker { display: none; }

.dock-menu summary:hover { filter: brightness(1.12); }

.dock-menu summary::before {
  content: "";
  width: 15px;
  height: 11px;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  box-shadow: inset 0 -5px 0 -3px #fff;
}

.dock-menu[open] summary { transform: translateY(-1px); }

.dock-menu:not([open]) > menu { display: none; }

.dock-menu > menu {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: min(88vw, 560px);
  max-height: 58vh;
  overflow: auto;
  margin: 0;
  padding: 10px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: 24px;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 20px 52px rgba(0, 0, 0, .58);
}

.dock-menu > menu li { display: block; }

.dock-menu > menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 16px;
  text-decoration: none;
  color: #eae3f9;
  background: rgba(255, 255, 255, .05);
  transition: background .2s ease, color .2s ease;
}

.dock-menu > menu a:hover,
.dock-menu > menu a:focus-visible {
  background: rgba(191, 0, 255, .3);
  color: #fff;
}

.dock-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #f2e8ff;
  border: 2px solid rgba(191, 0, 255, .55);
  transition: background .2s ease, color .2s ease;
}

.dock-cta:hover,
.dock-cta:focus-visible { background: var(--magenta); color: #fff; }

/* 滚动显现 */
.js .hero,
.js .board,
.js .foot {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

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

:focus-visible {
  outline: 3px solid #ff7bf0;
  outline-offset: 2px;
}

/* 窄屏 */
@media (max-width: 900px) {
  .canvas { padding-top: 70px; gap: 40px; }
  .hero { grid-template-columns: 1fr; padding: 28px 20px; min-height: 0; }
  .hero-art { aspect-ratio: 16 / 9; min-height: 0; }
  .board { grid-template-columns: 1fr; gap: 30px; }
  .rail { position: static; }
  .rail-list { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr; text-align: center; gap: 14px; padding-bottom: 4px; }
  .foot-copy, .foot-top { text-align: center; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .canvas { padding: 66px 15px 16px; gap: 32px; }
  .prose > section { padding: 20px 16px; border-radius: 22px; }
  .prose h2 { font-size: 24px; }
  .rail-list { grid-template-columns: 1fr; }
  .dock-menu > menu { grid-template-columns: 1fr; }
  .dock-menu summary,
  .dock-cta { padding: 0 18px; }
  .hero::before { font-size: 118px; top: -14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .js .hero,
  .js .board,
  .js .foot { transition: none; }
  .corner, .rail-list a, .hero-art .hero-img { transition: none; }
}

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