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

:root {
  --violet: #6514ff;
  --neon: #bf00ff;
  --ink: #1c1726;
  --pop: #ffe45e;
  --mist: #f5f0ff;
  --line: #e2d6ff;
  --pad: clamp(18px, 4.5vw, 64px);
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.72 'Nunito', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Fredoka', 'Nunito', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.16;
  letter-spacing: 0.005em;
  font-weight: 700;
}

p {
  margin: 0 0 18px;
}

/* 顶部进度 */
.bar-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 80;
  pointer-events: none;
}

.bar-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--neon), var(--pop));
}

/* 细条 */
.topline {
  padding: 9px 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #fff;
  background: linear-gradient(90deg, var(--neon), var(--violet));
}

/* 顶栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  padding: 12px var(--pad);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 9px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-family: 'Fredoka', 'Nunito', 'PingFang SC', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: skewX(-7deg);
  transition: background 0.24s ease;
}

.brand a span {
  display: inline-block;
  transform: skewX(7deg);
}

.brand a:hover,
.brand a:focus-visible {
  background: var(--violet);
}

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

.menu-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 17px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  transform: translateY(-2px);
}

/* 版心 */
.wrap {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 0 var(--pad) 72px;
}

/* 首屏 */
.hero {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 44px;
  min-height: 100svh;
  padding: 56px 0 92px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -22%;
  right: -28%;
  width: 78%;
  height: 138%;
  background:
    radial-gradient(circle at 68% 28%, rgba(191, 0, 255, 0.24), transparent 62%),
    radial-gradient(circle at 22% 82%, rgba(101, 20, 255, 0.22), transparent 60%);
  animation: drift 17s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -8%;
  right: -8%;
  bottom: -78px;
  height: 150px;
  background: linear-gradient(90deg, var(--pop), var(--neon) 52%, var(--violet));
  transform: skewY(-3deg);
}

@keyframes drift {
  to {
    transform: translate3d(-44px, 30px, 0) scale(1.1);
  }
}

.hero-text {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.side-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-text h1 {
  margin: 18px 0 26px;
  font-size: clamp(2.2rem, 6.2vw, 4.6rem);
  letter-spacing: -0.01em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.pill {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 12px 28px rgba(101, 20, 255, 0.35);
}

.pill:hover,
.pill:focus-visible {
  background: var(--neon);
  transform: translateY(-3px);
}

.ghost {
  border: 2px solid var(--ink);
  background: #fff;
}

.ghost:hover,
.ghost:focus-visible {
  background: var(--ink);
  color: #fff;
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: 26px;
  overflow: hidden;
  rotate: -2deg;
  background: linear-gradient(150deg, var(--violet), var(--neon) 58%, var(--pop));
  box-shadow: 0 30px 64px rgba(28, 23, 38, 0.28);
  will-change: transform;
}

.shots,
.shots .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shots .shot {
  object-fit: cover;
}

.shots.multi .shot {
  opacity: 0;
  animation: swap 15s ease-in-out infinite;
}

.shots.multi .shot:first-child {
  opacity: 1;
}

.shots.multi .shot:nth-child(2) {
  animation-delay: 5s;
}

.shots.multi .shot:nth-child(3) {
  animation-delay: 10s;
}

@keyframes swap {
  0%,
  30% {
    opacity: 1;
  }
  40%,
  94% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.blobs {
  position: absolute;
  inset: 0;
}

.blobs i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(2px);
}

.blobs i:nth-child(1) {
  width: 46%;
  aspect-ratio: 1;
  top: 12%;
  left: 10%;
}

.blobs i:nth-child(2) {
  width: 62%;
  aspect-ratio: 1;
  bottom: -12%;
  right: -8%;
  background: rgba(28, 23, 38, 0.30);
}

.blobs i:nth-child(3) {
  width: 24%;
  aspect-ratio: 1;
  bottom: 30%;
  left: 16%;
  border-radius: 26%;
  background: var(--pop);
  rotate: 18deg;
}

/* 侧栏 */
.side {
  position: sticky;
  top: 104px;
  padding: 24px 20px;
  border-radius: 20px;
  background: var(--mist);
}

.side-tag {
  background: var(--neon);
  padding: 4px 14px;
}

.side-title {
  margin: 12px 0 4px;
  font-size: 1.45rem;
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-left: 4px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.side-list a.on {
  background: var(--violet);
  border-left-color: var(--ink);
  color: #fff;
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 12px;
  font-weight: 700;
  color: var(--violet);
  border-bottom: 2px solid var(--pop);
}

/* 正文 */
.body {
  min-width: 0;
}

.prose section {
  scroll-margin-top: 130px;
  margin-bottom: 48px;
  padding: clamp(24px, 4vw, 50px);
  border-radius: 22px;
  background: var(--mist);
}

.prose section:nth-of-type(even) {
  background: #fff;
  border: 2px solid var(--line);
}

.prose h2 {
  margin: 14px 0 20px;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
}

.prose h3 {
  margin: 26px 0 12px;
  font-size: 1.24rem;
}

.prose small {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--pop);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

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

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

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

.prose a {
  color: var(--violet);
  border-bottom: 2px solid var(--pop);
  font-weight: 600;
}

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

.prose strong {
  color: var(--violet);
}

.prose blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 20px;
  border-left: 6px solid var(--neon);
  font-weight: 600;
}

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

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 34px;
  padding: 52px var(--pad);
  background: var(--ink);
  color: #f0e9ff;
}

.f-logo {
  display: inline-block;
  font-family: 'Fredoka', 'Nunito', 'PingFang SC', sans-serif;
  font-size: clamp(2rem, 6.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.01em;
  transition: color 0.24s ease;
}

.f-logo:hover,
.f-logo:focus-visible {
  color: var(--pop);
}

.f-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.f-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: #d9cbff;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.f-list a:hover,
.f-list a:focus-visible {
  color: #fff;
  border-bottom-color: var(--neon);
}

.f-copy {
  text-align: center;
  flex: 1 1 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.f-copy p {
  margin: 0;
  font-size: 16px;
  color: #b9a9dd;
}

@media (max-width: 980px) {
  /* 顶栏：品牌 + 单行可横滑胶囊，压缩首屏高度 */
  .bar {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px var(--pad);
  }

  .brand a {
    min-height: 44px;
    padding: 7px 15px;
    font-size: 18px;
  }

  .menu {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu-list {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .menu-list a {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
  }

  .topline {
    padding: 6px 12px;
    letter-spacing: 0.16em;
  }

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

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 26px;
    padding: 30px 0 74px;
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-art {
    order: 2;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    rotate: 0deg;
  }

  .hero-text h1 {
    margin: 12px 0 18px;
    font-size: clamp(2rem, 8.4vw, 3rem);
  }

  .eyebrow {
    padding: 4px 13px;
    letter-spacing: 0.1em;
  }

  .pill,
  .ghost {
    min-height: 48px;
    padding: 11px 22px;
  }

  .side {
    position: static;
  }

  .side-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .side-list a {
    min-height: 44px;
    padding: 6px 14px;
    border: 2px solid var(--line);
    border-radius: 999px;
  }

  .prose section {
    scroll-margin-top: 130px;
  }
}

@media (max-width: 620px) {
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 40px var(--pad);
  }

  .f-copy {
    text-align: left;
  }
}

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

  .hero::before,
  .shots.multi .shot {
    animation: none;
  }
}

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