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

:root {
  --ink: #1c1726;
  --ink-2: #241a34;
  --violet: #6514ff;
  --magenta: #bf00ff;
  --acid: #c9ff3d;
  --paper: #f5efff;
  --glass: rgba(255, 255, 255, 0.07);
  --line: rgba(245, 239, 255, 0.2);
  --r: 28px;
  --shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
  --shadow-hot: 10px 10px 0 rgba(191, 0, 255, 0.85);
  --dock: 78px;
}

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

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

body {
  margin: 0;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.68 "Epilogue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 8%, rgba(101, 20, 255, 0.6), transparent 55%),
    radial-gradient(circle at 88% 22%, rgba(191, 0, 255, 0.45), transparent 52%),
    radial-gradient(circle at 55% 92%, rgba(101, 20, 255, 0.4), transparent 58%),
    var(--ink);
}

body::after {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(125deg, rgba(201, 255, 61, 0.09) 0 3px, transparent 3px 46px);
  animation: drift 26s linear infinite;
}

@keyframes drift {
  to {
    background-position: 600px 600px;
  }
}

h1,
h2,
h3,
.brand {
  margin: 0;
  font-family: "Anton", "Epilogue", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(38px, 9vw, 92px);
  text-wrap: balance;
  text-shadow: 6px 6px 0 rgba(101, 20, 255, 0.6);
}

h2 {
  font-size: clamp(24px, 4.4vw, 40px);
}

h3 {
  font-size: 19px;
  letter-spacing: 0.06em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--acid);
}

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

hr {
  width: 72px;
  height: 6px;
  margin: 14px 0 22px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--acid), var(--magenta));
}

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--dock);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(20, 16, 28, 0.94);
  border-top: 3px solid var(--violet);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  max-width: 44%;
  min-height: 44px;
  padding: 0 6px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 19px;
  color: var(--paper);
  text-decoration: none;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
}

.dock-nav {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock-nav::-webkit-scrollbar {
  display: none;
}

.dock-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.dock-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
}

.dock-list a:hover,
.dock-list a:focus-visible {
  background: var(--violet);
  color: #fff;
}

.dock-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.find {
  flex: 1 1 auto;
  width: 7rem;
  min-width: 0;
  max-width: 210px;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  color: var(--paper);
  font-size: 16px;
}

.find::placeholder {
  color: rgba(245, 239, 255, 0.6);
}

.find:focus {
  outline: none;
  border-color: var(--acid);
}

.burger {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--violet);
  border-radius: 14px;
  background: var(--violet);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

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

/* 全屏遮罩菜单 */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-content: center;
  padding: 24px;
  background: linear-gradient(150deg, #1c1726, #3a0a5e 55%, #6514ff);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.sheet.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  overflow-y: auto;
}

.sheet-nav {
  width: 100%;
  max-width: 640px;
  margin: auto;
}

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

.sheet-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "Anton", sans-serif;
  font-size: clamp(18px, 4.6vw, 24px);
  text-decoration: none;
}

.sheet-list a:hover,
.sheet-list a:focus-visible {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.sheet-list li.hide {
  display: none;
}

/* 首屏 */
.hero {
  display: grid;
  gap: 36px;
  align-items: center;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 88px 20px 56px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  box-shadow: var(--shadow-hot);
}

.hero-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-a {
  background: var(--acid);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--magenta);
}

.btn-b {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--magenta);
}

/* 正文 */
.wrap {
  display: grid;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.content {
  min-width: 0;
}

.prose {
  padding: 26px 20px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.prose div {
  scroll-margin-top: 24px;
}

.prose div + div {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 2px dashed var(--line);
}

.prose h2 {
  margin: 30px 0 10px;
  font-size: clamp(22px, 3.6vw, 32px);
}

.prose h3 {
  margin: 26px 0 10px;
}

.prose div > h2:first-child,
.prose div > h3:first-child {
  margin-top: 0;
}

.prose a {
  color: var(--acid);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose img {
  margin: 18px 0;
  border-radius: 18px;
}

.prose blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 5px solid var(--magenta);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.06);
}

.side {
  min-width: 0;
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.side h2 {
  font-size: 24px;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: d;
}

.side-list a {
  display: block;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--paper);
  text-decoration: none;
}

.side-list a::before {
  counter-increment: d;
  content: counter(d, decimal-leading-zero);
  margin-right: 10px;
  font-family: "Anton", sans-serif;
  color: var(--acid);
}

.side-list a:hover {
  color: var(--acid);
}

/* 页脚 */
.foot {
  padding: 48px 20px 24px;
  border-top: 4px solid var(--acid);
  background: linear-gradient(160deg, #3d0a66, #6514ff 62%, #bf00ff);
}

.cta {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 26px 20px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r);
  background: rgba(28, 23, 38, 0.35);
  backdrop-filter: blur(10px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.foot-grid {
  display: grid;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Anton", sans-serif;
  font-size: 22px;
}

.foot-col h3 {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
}

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

.foot-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
}

.foot-list a:hover {
  color: var(--acid);
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
}

.copy {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.bar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(28, 23, 38, 0.4);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
}

.bar-list a:hover {
  background: var(--acid);
  color: var(--ink);
}

.totop {
  position: fixed;
  right: 14px;
  bottom: calc(var(--dock) + 14px + env(safe-area-inset-bottom));
  z-index: 55;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(28, 23, 38, 0.92);
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.totop:hover {
  background: var(--acid);
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (min-width: 720px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prose {
    padding: 32px 28px;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-inline: 32px;
  }
}

@media (min-width: 980px) {
  .dock-nav {
    display: block;
  }
}

@media (min-width: 1080px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .side {
    position: sticky;
    top: 24px;
  }

  .foot-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

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

  body::after {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

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