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

:root {
  --ink: #1f1726;
  --ink-deep: #150e1c;
  --plum: #56228b;
  --plum-soft: #9a63d8;
  --ochre: #8b4513;
  --ochre-soft: #c98a4b;
  --cream: #f4eef8;
  --dim: #c6b7d4;
  --glass: rgba(244, 238, 248, 0.06);
  --line: rgba(244, 238, 248, 0.14);
  --shadow: 0 22px 48px -28px rgba(0, 0, 0, 0.88);
  --card-r: 10px;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  font-family: "Cormorant Infant", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--cream);
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(58vw 44vw at 84% -8%, rgba(86, 34, 139, 0.55), transparent 70%),
    radial-gradient(46vw 38vw at 2% 12%, rgba(139, 69, 19, 0.32), transparent 72%),
    radial-gradient(72vw 58vw at 48% 106%, rgba(86, 34, 139, 0.34), transparent 68%),
    linear-gradient(180deg, #1c1325 0%, #150e1c 58%, #120c18 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ochre-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(26vw 26vw at 78% 26%, rgba(154, 99, 216, 0.16), transparent 70%),
    radial-gradient(22vw 22vw at 12% 72%, rgba(201, 138, 75, 0.12), transparent 72%);
}

.head {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px clamp(14px, 4vw, 48px);
}

.head__nav p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
}

.head__nav--a p {
  justify-content: flex-start;
}

.head__nav--b p {
  justify-content: flex-end;
}

.head__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: color 0.25s ease, background 0.25s ease;
}

.head__nav a:hover {
  color: #fff;
  background: rgba(154, 99, 216, 0.2);
}

.head__cta {
  color: var(--cream) !important;
  padding: 0 18px !important;
  background: linear-gradient(100deg, var(--plum), var(--ochre));
  box-shadow: 0 12px 26px -18px #000;
}

.head__cta:hover {
  background: linear-gradient(100deg, #6d2cae, #a4520f);
}

.head__brand {
  display: flex;
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
}

.brand__dot {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 64% 36% 58% 42% / 52% 46% 54% 48%;
  background: linear-gradient(140deg, var(--plum-soft), var(--ochre-soft));
  box-shadow: 0 0 22px rgba(154, 99, 216, 0.62);
}

.brand__name {
  font-family: "Great Vibes", "Cormorant Infant", "Songti SC", "SimSun", serif;
  font-size: clamp(21px, 3vw, 29px);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.rail {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(21, 14, 28, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rail nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 5px clamp(12px, 4vw, 48px);
}

.rail p {
  display: flex;
  gap: 4px;
  margin: 0;
  min-width: max-content;
}

.rail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.rail a:hover {
  color: #fff;
  background: rgba(154, 99, 216, 0.18);
  border-color: var(--line);
}

.rail nav::-webkit-scrollbar {
  height: 4px;
}

.rail nav::-webkit-scrollbar-thumb {
  background: rgba(154, 99, 216, 0.5);
  border-radius: 9px;
}

.shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 38px);
  max-width: 1220px;
  margin-inline: auto;
  padding: clamp(18px, 3vw, 34px) clamp(14px, 4vw, 48px) clamp(48px, 8vw, 92px);
}

.hero {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 26px;
  min-height: 70vh;
  padding: clamp(40px, 10vh, 90px) clamp(22px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px 64px 24px 24px;
  background: linear-gradient(152deg, rgba(86, 34, 139, 0.42), rgba(21, 14, 28, 0.52) 58%, rgba(139, 69, 19, 0.28));
  box-shadow: var(--shadow);
}

.hero__blob {
  position: absolute;
  z-index: -1;
  top: -14%;
  right: -8%;
  width: min(58vw, 520px);
  aspect-ratio: 1;
  border-radius: 58% 42% 63% 37% / 47% 55% 45% 53%;
  background: radial-gradient(circle at 34% 30%, rgba(154, 99, 216, 0.55), rgba(86, 34, 139, 0.12) 62%, transparent 74%);
  filter: blur(6px);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -12%;
  right: -12%;
  bottom: -24%;
  height: 46%;
  border-radius: 50% 30% 46% 54% / 60% 50% 50% 40%;
  background: linear-gradient(95deg, var(--plum), var(--ochre-soft));
  opacity: 0.34;
  transform: skewY(-4.5deg);
}

.hero__title {
  margin: 0;
  max-width: 20ch;
  font-family: "Cormorant Infant", "Songti SC", "SimSun", serif;
  font-weight: 700;
  font-size: clamp(38px, 8.4vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(100deg, var(--plum), var(--ochre));
  box-shadow: 0 14px 30px -18px #000;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(244, 238, 248, 0.08);
  border-color: var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.side {
  position: relative;
  min-width: 0;
}

.side h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ochre-soft);
}

.side h2::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  background: var(--ochre-soft);
}

.side ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.side a:hover {
  color: #fff;
  background: rgba(139, 69, 19, 0.26);
  border-color: rgba(201, 138, 75, 0.36);
}

.prose {
  min-width: 0;
  padding: clamp(20px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px var(--card-r) 22px var(--card-r);
  background: var(--glass);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  box-shadow: var(--shadow);
}

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

.prose > section + section {
  margin-top: clamp(26px, 4vw, 48px);
  padding-top: clamp(26px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Infant", "Songti SC", "SimSun", serif;
  font-size: clamp(23px, 3.4vw, 32px);
  line-height: 1.3;
  font-weight: 700;
}

.prose h2 span {
  padding: 0 0.08em;
  background: linear-gradient(transparent 64%, rgba(139, 69, 19, 0.5) 0);
}

.prose h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.prose h3 span {
  padding: 0 0.08em;
  background: linear-gradient(transparent 66%, rgba(86, 34, 139, 0.6) 0);
}

.prose p {
  margin: 0 0 1em;
}

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

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

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

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

.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--plum-soft);
  border-radius: 0 12px 12px 0;
  background: rgba(86, 34, 139, 0.18);
}

.prose img {
  border-radius: var(--card-r);
}

.prose figure {
  margin: 1.2em 0;
}

.prose code {
  font-size: 16px;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(244, 238, 248, 0.1);
}

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 26px;
  padding: clamp(26px, 4vw, 46px) clamp(14px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 14, 28, 0.4), rgba(21, 14, 28, 0.94));
}

.foot__brand {
  margin: 0;
  font-family: "Great Vibes", "Cormorant Infant", "Songti SC", serif;
  font-size: clamp(26px, 5.4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
}

.foot__brand a {
  color: var(--cream);
  text-decoration: none;
}

.foot__nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
}

.foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease, background 0.2s ease;
}

.foot__nav a:hover {
  color: #fff;
  background: rgba(154, 99, 216, 0.18);
}

.foot__legal {
  font-size: 16px;
  color: var(--dim);
}

.foot__legal p {
  margin: 0;
}

.totop {
  position: fixed;
  right: clamp(12px, 3vw, 26px);
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  color: var(--cream);
  text-decoration: none;
  background: rgba(31, 23, 38, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0.001;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 899px) {
  .head {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 10px;
  }

  .head__nav--a {
    order: 2;
  }

  .head__brand {
    order: 1;
    justify-self: center;
  }

  .head__nav--b {
    order: 3;
  }

  .head__nav p {
    justify-content: center;
  }

  .side ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hero {
    min-height: 62vh;
    border-radius: 20px 46px 20px 20px;
  }
}

@media (min-width: 900px) {
  .shell {
    grid-template-columns: minmax(176px, 224px) minmax(0, 1fr);
  }

  .side {
    position: sticky;
    top: 78px;
    align-self: start;
  }
}

@media (max-width: 700px) {
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

  .btn:hover {
    transform: none;
  }
}

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