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

:root {
  --pink: #ff0080;
  --magenta: #ff00ff;
  --ink: #26171f;
  --deep: #0d080c;
  --paper: #f7eef4;
  --muted: rgba(247, 238, 244, .68);
  --line: rgba(255, 255, 255, .13);
  --sans: 'Karla', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --disp: 'Playfair Display SC', 'Songti SC', 'STSong', Georgia, serif;
}

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

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

body {
  margin: 0;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #ffb3d9; }
a:hover { color: #fff; }

/* 极光与点阵底纹 */
.aurora,
.dots {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.aurora {
  inset: -25vh -20vw;
  opacity: .8;
  filter: blur(66px) saturate(160%);
  background:
    radial-gradient(38% 32% at 20% 22%, rgba(255, 0, 128, .95), transparent 68%),
    radial-gradient(34% 30% at 80% 15%, rgba(255, 0, 255, .85), transparent 66%),
    radial-gradient(46% 38% at 64% 76%, rgba(118, 26, 196, .92), transparent 70%),
    radial-gradient(38% 32% at 28% 88%, rgba(255, 64, 150, .8), transparent 70%);
  animation: aurora 28s ease-in-out infinite alternate;
}

@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1.05) rotate(-2deg); }
  to { transform: translate3d(3%, 2%, 0) scale(1.16) rotate(3deg); }
}

.dots {
  inset: 0;
  opacity: .28;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .4) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .4) 55%, transparent 100%);
}

.site-head,
main,
.site-foot {
  position: relative;
  z-index: 1;
}

/* 顶栏 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 6;
  background: rgba(13, 8, 12, .86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.topbar {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(90deg, rgba(255, 0, 128, .3), rgba(255, 0, 255, .3), rgba(255, 0, 128, .3));
}

.topbar-word {
  display: block;
  padding: 6px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .42em;
  color: rgba(255, 255, 255, .9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 导航 */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 16px 8px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.nav-list--l { justify-content: flex-end; }
.nav-list--r { justify-content: flex-start; }

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  padding: 6px 10px;
  color: rgba(247, 238, 244, .86);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .25s ease;
}

.nav-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0080, #ff00ff);
  transition: transform .25s ease, box-shadow .25s ease;
}

.nav-list a:hover { color: #fff; }
.nav-list a:hover::before { transform: scale(1.7); box-shadow: 0 0 12px #ff0080; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 46px;
  padding: 6px 14px;
  text-decoration: none;
  color: #fff;
  font-family: var(--disp);
  font-size: 18px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.brand:hover { color: #fff; }

.brand-mark {
  width: 12px;
  height: 12px;
  flex: none;
  background: conic-gradient(from 0deg, #ff0080, #ff00ff, #ff0080);
  box-shadow: 0 0 16px rgba(255, 0, 128, .9);
  animation: spin 6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 首屏 */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 4.5vw, 60px) 20px clamp(30px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  min-height: 70vh;
  text-align: center;
}

.hero-tx h1 {
  margin: 0 0 .45em;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(2rem, 5.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: .01em;
  background: linear-gradient(100deg, #fff 0%, #ffd6ec 20%, #ff0080 46%, #ff00ff 72%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s linear infinite;
}

@keyframes sheen { to { background-position: 220% 0; } }

.hero-sub {
  margin: 0 auto;
  max-width: 44ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.7;
  color: var(--muted);
}

.hero-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: conic-gradient(from 200deg at 50% 45%, #ff0080, #ff00ff, #4a1358, #ff0080);
  box-shadow: 0 30px 80px -30px rgba(255, 0, 128, .75);
  isolation: isolate;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, .45) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .5;
  mix-blend-mode: multiply;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(26px);
}

.orb-a {
  width: 55%;
  aspect-ratio: 1;
  top: -12%;
  right: -10%;
  background: #ff00ff;
  animation: float 12s ease-in-out infinite alternate;
}

.orb-b {
  width: 60%;
  aspect-ratio: 1;
  bottom: -14%;
  left: -12%;
  background: #ff0080;
  animation: float 15s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  to { transform: translate3d(12%, -10%, 0) scale(1.15); }
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
}

/* 内容区 */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px clamp(48px, 7vw, 90px);
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 48px);
  align-items: start;
}

.side {
  position: sticky;
  top: 116px;
  padding: 20px 16px 22px;
  background: rgba(38, 23, 31, .78);
  border-left: 3px solid var(--pink);
}

.side-t {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3em;
  color: #ff8dc4;
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(247, 238, 244, .78);
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}

.side-list a:hover {
  color: #fff;
  padding-left: 6px;
}

.doc-shell { min-width: 0; }

.doc > article {
  padding: clamp(28px, 4vw, 54px) 0;
  border-top: 1px solid var(--line);
}

.doc > article:first-child {
  border-top: 0;
  padding-top: 0;
}

.doc article[id] { scroll-margin-top: 118px; }

.doc h2 {
  margin: .35em 0 .55em;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: .01em;
  color: #fff;
}

.doc h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: .55em;
  background: linear-gradient(90deg, #ff0080, #ff00ff);
}

.doc h3 {
  margin: 1.5em 0 .5em;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  color: #fff;
}

.doc small {
  display: block;
  margin: 0 0 .25em;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  color: #ff5fa8;
}

.doc p {
  margin: 0 0 1.1em;
  max-width: 72ch;
  color: rgba(247, 238, 244, .9);
}

.doc ul,
.doc ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  max-width: 70ch;
}

.doc li { margin: .4em 0; }

.doc a {
  color: #ffb3d9;
  text-underline-offset: .22em;
}

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

.doc strong { color: #fff; }

.doc blockquote {
  margin: 1.4em 0;
  padding: .25em 0 .25em 1.2em;
  border-left: 3px solid var(--magenta);
  color: rgba(247, 238, 244, .85);
}

.doc img {
  width: 100%;
  margin: 1.4em 0;
}

.doc code {
  font-size: .92em;
  padding: .1em .4em;
  background: rgba(255, 0, 128, .16);
}

/* 页脚 */
.site-foot {
  background: linear-gradient(180deg, rgba(38, 23, 31, .35), rgba(20, 11, 17, .96));
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.foot-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 68px) 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-t {
  margin: 0;
  font-family: var(--disp);
  font-size: clamp(1.6rem, 4.6vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: .02em;
  background: linear-gradient(96deg, #fff, #ffa8d3 40%, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px #ff0080;
}

.foot-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 26px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.foot-col {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foot-col .brand-mark {
  width: 14px;
  height: 14px;
  margin-bottom: 10px;
}

.foot-name {
  font-family: var(--disp);
  font-size: 17px;
  color: #fff;
  line-height: 1.4;
}

.foot-col ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(247, 238, 244, .72);
  text-decoration: none;
  transition: color .2s ease;
}

.foot-col a:hover { color: #fff; }

.foot-base {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 16px 20px 28px;
  text-align: center;
}

.foot-base p {
  margin: 0;
  font-size: 16px;
  color: rgba(247, 238, 244, .62);
}

/* 滚动显现 */
.pre {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

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

/* 断点 */
@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 12px 10px;
  }

  .brand { margin: 0 auto; }

  .nav-list--l,
  .nav-list--r { justify-content: center; }

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

  .hero-art { aspect-ratio: 16 / 9; }

  .wrap {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
    border-left-width: 3px;
  }

  .side-list {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0 8px;
  }

  .doc article[id] { scroll-margin-top: 24px; }

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

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

  .topbar-word {
    font-size: 12px;
    letter-spacing: .3em;
  }

  .nav-list a {
    font-size: 15px;
    padding: 6px 8px;
  }

  .brand { font-size: 17px; }

  .hero { padding: 22px 16px 34px; }

  .hero-art { aspect-ratio: 3 / 2; }

  .wrap { padding: 0 16px 56px; }

  .foot-cta {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 16px;
    padding-right: 16px;
  }

  .foot-row {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .foot-base { padding-left: 16px; padding-right: 16px; }
}

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

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

  .pre {
    opacity: 1;
    transform: none;
  }
}

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