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

:root {
  --pink: #ff0080;
  --mag: #ff00ff;
  --ink: #26171f;
  --deep: #160c12;
  --paper: #fff3f9;
  --line: rgba(255, 255, 255, 0.22);
  --soft: rgba(255, 255, 255, 0.06);
  --r: 28px;
  --topH: 124px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--deep);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--paper);
  font-family: Rubik, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    conic-gradient(from 210deg at 28% 32%, #ff0080, #ff00ff 22%, #4a1060 46%, #160c12 64%, #ff0080 100%),
    conic-gradient(from 20deg at 78% 70%, #ff00ff, #ff0080 30%, #160c12 62%, #ff00ff 100%);
  filter: blur(64px) saturate(1.15);
  opacity: 0.48;
  animation: spin 36s linear infinite;
  will-change: transform;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

a {
  color: #ff9fce;
  text-decoration-color: rgba(255, 0, 128, 0.55);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 顶部两行 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 8px clamp(14px, 4vw, 40px) 10px;
  background: linear-gradient(180deg, rgba(22, 12, 18, 0.96), rgba(22, 12, 18, 0.74));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brandrow {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: Outfit, Rubik, sans-serif;
  font-weight: 700;
  font-size: clamp(21px, 3.6vw, 29px);
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.menurrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.pills {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

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

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: #ffe4f1;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.pill:hover,
.pill:focus-visible {
  background: linear-gradient(100deg, var(--pink), var(--mag));
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
}

.find {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 3px 3px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(38, 23, 31, 0.6);
}

.find-input {
  width: 84px;
  min-height: 34px;
  border: 0;
  background: none;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.find-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.find button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--pink), var(--mag));
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - var(--topH));
  min-height: calc(100svh - var(--topH));
  padding: clamp(24px, 6vw, 56px) clamp(16px, 5vw, 64px) clamp(64px, 9vw, 108px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 82% 18%, rgba(255, 0, 255, 0.32), transparent 70%),
    radial-gradient(58% 52% at 12% 88%, rgba(255, 0, 128, 0.32), transparent 72%);
}

.tile {
  position: absolute;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(142deg, var(--pink), var(--mag) 54%, #6d2bff);
}

.tile-a {
  top: 7%;
  left: 3%;
  width: clamp(120px, 27vw, 290px);
  aspect-ratio: 3 / 4;
  transform: rotate(-9deg);
}

.tile-b {
  top: 42%;
  left: 22%;
  width: clamp(104px, 22vw, 240px);
  aspect-ratio: 4 / 5;
  transform: rotate(7deg);
  mix-blend-mode: screen;
}

.tile-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 30ch;
  text-align: right;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: Outfit, Rubik, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6.2vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  background: linear-gradient(96deg, #ffffff, #ffd6ea 34%, var(--pink) 72%, var(--mag));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.84);
}

.jump {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  background: rgba(22, 12, 18, 0.36);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.jump:hover {
  background: linear-gradient(100deg, var(--pink), var(--mag));
  color: #ffffff;
  transform: translateY(-2px);
}

.slash {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -5%;
  height: clamp(56px, 11vw, 124px);
  z-index: 1;
  pointer-events: none;
  transform: skewY(-4deg);
  background: linear-gradient(90deg, var(--pink), var(--mag) 46%, #7a2bff);
  opacity: 0.86;
  mix-blend-mode: screen;
}

/* ---------- 正文与侧栏 ---------- */

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 292px);
  align-items: start;
  gap: clamp(20px, 3.4vw, 46px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 62px) clamp(16px, 4vw, 40px) clamp(40px, 7vw, 78px);
}

.doc > div {
  margin: 0 0 clamp(18px, 2.6vw, 30px);
  padding: clamp(20px, 3.2vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
  scroll-margin-top: calc(var(--topH) + 18px);
  animation: rise 0.6s both;
}

.doc > div:nth-child(1) { animation-delay: 0.02s; }
.doc > div:nth-child(2) { animation-delay: 0.07s; }
.doc > div:nth-child(3) { animation-delay: 0.12s; }
.doc > div:nth-child(4) { animation-delay: 0.17s; }
.doc > div:nth-child(5) { animation-delay: 0.22s; }
.doc > div:nth-child(6) { animation-delay: 0.27s; }
.doc > div:nth-child(7) { animation-delay: 0.32s; }

.doc h2,
.doc h3 {
  margin: 0 0 14px;
  font-family: Outfit, Rubik, sans-serif;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.doc h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.doc h3 {
  font-size: clamp(1.12rem, 1.9vw, 1.35rem);
}

.doc h2 > span,
.doc h3 > span {
  position: relative;
  display: inline-block;
}

.doc h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--mag));
}

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

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

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

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

.doc blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--mag);
  color: rgba(255, 255, 255, 0.85);
}

.doc img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.doc strong {
  color: #ffffff;
}

.side {
  position: sticky;
  top: calc(var(--topH) + 18px);
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(38, 23, 31, 0.5);
}

.side-t {
  margin: 0 0 10px;
  font-family: Outfit, Rubik, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #ffbcd9;
}

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

.side-nav li {
  animation: rise 0.5s both;
}

.side-nav li:nth-child(2) { animation-delay: 0.04s; }
.side-nav li:nth-child(3) { animation-delay: 0.08s; }
.side-nav li:nth-child(4) { animation-delay: 0.12s; }
.side-nav li:nth-child(5) { animation-delay: 0.16s; }
.side-nav li:nth-child(6) { animation-delay: 0.2s; }
.side-nav li:nth-child(7) { animation-delay: 0.24s; }

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 14px;
  color: #ffdcea;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  background: rgba(255, 0, 128, 0.18);
  border-left-color: var(--pink);
  color: #ffffff;
}

/* ---------- 页脚 ---------- */

.foot {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  grid-template-areas:
    "mega n1 n2 n3"
    "base base base base";
  gap: clamp(20px, 3vw, 38px);
  padding: clamp(30px, 5vw, 60px) clamp(16px, 4vw, 48px) 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 0, 128, 0.12), rgba(22, 12, 18, 0.92));
}

.f-mega {
  grid-area: mega;
}

.mega {
  margin: 0;
  font-family: Outfit, Rubik, sans-serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 7.6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #ffffff, var(--pink) 56%, var(--mag));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.f-n1 { grid-area: n1; }
.f-n2 { grid-area: n2; }
.f-n3 { grid-area: n3; }

.f-nav dl {
  margin: 0;
  display: grid;
  gap: 2px;
}

.f-nav dt {
  margin: 0;
  font-weight: 600;
  color: #ffffff;
}

.f-nav dd {
  margin: 0;
}

.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #ffd3e7;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s;
}

.f-nav a:hover,
.f-nav a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--pink);
}

.f-base {
  grid-area: base;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

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

.totop {
  margin: 0;
}

.totop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s;
}

.totop a:hover {
  background: rgba(255, 0, 128, 0.22);
  border-color: transparent;
}

/* ---------- 断点 ---------- */

@media (max-width: 980px) {
  .spread {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
  }

  .find-input {
    width: 68px;
  }
}

@media (max-width: 760px) {
  :root {
    --topH: 132px;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "mega mega"
      "n1 n2"
      "n3 n3"
      "base base";
  }

  .f-nav a {
    min-height: 44px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-bottom: 76px;
  }

  .hero-copy {
    max-width: 22ch;
  }

  .tile-a {
    width: 106px;
    top: 6%;
    left: 4%;
  }

  .tile-b {
    width: 92px;
    top: 27%;
    left: 30%;
  }

  .find-input {
    width: 54px;
  }

  .find button {
    padding: 0 12px;
  }
}

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

  body::before,
  .doc > div,
  .side-nav li {
    animation: none !important;
  }

  * {
    transition: none !important;
  }
}

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