@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: #fdf1f8;
  font-family: "Noto Sans JP", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: .01em;
  background-color: #160a12;
  background-image:
    radial-gradient(58% 52% at 12% 6%, rgba(255, 0, 128, .55), rgba(255, 0, 128, 0) 66%),
    radial-gradient(52% 46% at 88% 10%, rgba(255, 0, 255, .42), rgba(255, 0, 255, 0) 62%),
    radial-gradient(70% 58% at 72% 88%, rgba(124, 40, 255, .38), rgba(124, 40, 255, 0) 66%),
    conic-gradient(from 205deg at 50% 0%, #26171f, #3a1030, #1a0a16, #26171f);
  background-size: 180% 180%, 180% 180%, 200% 200%, 100% 100%;
  background-attachment: fixed;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { background-position: 0% 0%, 100% 0%, 60% 100%, 50% 50%; }
  to { background-position: 22% 16%, 76% 22%, 44% 82%, 50% 50%; }
}

body::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(30% 30% at 30% 20%, rgba(255, 0, 160, .30), transparent 70%),
    radial-gradient(26% 26% at 70% 62%, rgba(0, 224, 255, .18), transparent 70%),
    radial-gradient(34% 34% at 52% 88%, rgba(255, 214, 0, .12), transparent 72%);
  mix-blend-mode: screen;
  filter: blur(40px) hue-rotate(0deg);
  animation: shimmer 18s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from { filter: blur(40px) hue-rotate(-14deg); transform: translate3d(0, 0, 0) scale(1); }
  to { filter: blur(52px) hue-rotate(26deg); transform: translate3d(-2%, 2%, 0) scale(1.06); }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

:root {
  --pink: #ff0080;
  --mag: #ff00ff;
  --ink: #26171f;
  --serif: "Noto Serif JP", "Songti SC", "Noto Serif SC", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --glass: linear-gradient(155deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  --line: rgba(255, 255, 255, .18);
  --top: 68px;
}

/* ---------- 顶部 ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--top);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(22, 10, 18, .58);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}

.mark-img { width: 100%; height: 100%; object-fit: cover; }

.mark-glyph {
  width: 22px;
  height: 22px;
  display: block;
  background: conic-gradient(from 0deg, var(--pink), var(--mag), #7c28ff, #ffb400, var(--pink));
  animation: spin 12s linear infinite;
}

@keyframes spin { to { transform: rotate(1turn); } }

.burger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.burger .bar {
  width: 18px;
  height: 2px;
  background: #fff;
  display: block;
  transition: transform .3s ease, opacity .3s ease;
}

.burger-t { letter-spacing: .16em; }

body.menu-open .burger .bar:first-child { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger .bar:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-content: center;
  padding: 96px 24px 40px;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(255, 0, 128, .42), transparent 70%),
    radial-gradient(60% 60% at 80% 70%, rgba(255, 0, 255, .34), transparent 70%),
    rgba(16, 7, 13, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .34s ease, transform .34s ease, visibility .34s;
}

body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }

.menu p {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.menu a {
  display: block;
  min-height: 48px;
  padding: 10px 18px;
  font-family: var(--serif);
  font-size: clamp(20px, 3.6vw, 32px);
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: color .2s ease, letter-spacing .2s ease;
}

.menu a:hover, .menu a:focus-visible { color: #ffd6ea; letter-spacing: .12em; }

/* ---------- 粘性锚点条 ---------- */
.ribbon {
  position: sticky;
  top: var(--top);
  z-index: 40;
  margin-top: var(--top);
  background: rgba(18, 8, 14, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.ribbon p {
  margin: 0;
  display: flex;
  width: max-content;
  min-width: 100%;
}

.ribbon a {
  display: block;
  min-height: 44px;
  padding: 11px 14px;
  font-size: 16px;
  white-space: nowrap;
  color: rgba(255, 244, 250, .78);
  border-right: 1px solid rgba(255, 255, 255, .1);
  transition: color .2s ease, background .2s ease;
}

.ribbon a:hover, .ribbon a:focus-visible, .ribbon a.on {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 0, 128, .34), rgba(255, 0, 255, .12));
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--top);
}

.hero-art {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  background:
    radial-gradient(70% 70% at 30% 30%, rgba(255, 0, 128, .55), transparent 70%),
    radial-gradient(60% 60% at 70% 70%, rgba(255, 0, 255, .42), transparent 70%),
    #1d0d18;
  animation: rise .9s ease both;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: .82;
}

.prism {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 40deg, rgba(255, 0, 128, .5), rgba(0, 230, 255, .34), rgba(255, 0, 255, .5), rgba(255, 200, 0, .3), rgba(255, 0, 128, .5));
  filter: blur(46px);
  mix-blend-mode: screen;
  animation: spin 30s linear infinite;
}

.slash {
  position: absolute;
  top: -10%;
  right: 6%;
  width: 26%;
  height: 120%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 0, 255, .12), transparent);
  transform: skewX(-9deg);
  mix-blend-mode: screen;
}

.hero-say {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 48px 24px 64px;
}

.kicker {
  margin: 0;
  font-size: 16px;
  letter-spacing: .34em;
  color: #ffb8dd;
  animation: rise .8s .1s ease both;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.2vw, 3.7rem);
  line-height: 1.28;
  letter-spacing: .04em;
  max-width: 22ch;
  background-image: linear-gradient(105deg, #ffffff 18%, #ffd0e8 46%, #ff8fd0 68%, #d7a6ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise .9s .2s ease both;
}

.jump {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 26px;
  font-size: 16px;
  letter-spacing: .22em;
  border: 1px solid rgba(255, 255, 255, .34);
  background: var(--glass);
  backdrop-filter: blur(10px);
  animation: rise .9s .3s ease both;
  transition: background .25s ease, border-color .25s ease;
}

.jump:hover, .jump:focus-visible {
  background: linear-gradient(100deg, rgba(255, 0, 128, .5), rgba(255, 0, 255, .35));
  border-color: #ff9ad4;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 主体 ---------- */
main { position: relative; z-index: 1; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 18px 72px;
}

.sheet {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rail {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: calc(var(--top) + 66px);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 16px;
}

.rail-t {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .2em;
  margin-bottom: 10px;
}

.rail-t span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--pink), var(--mag)) 1;
}

.rail p {
  margin: 0;
  display: flex;
  flex-direction: column;
  counter-reset: rail;
}

.rail a {
  display: block;
  padding: 9px 6px;
  min-height: 40px;
  font-size: 16px;
  color: rgba(255, 246, 251, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: color .2s ease, padding-left .2s ease;
}

.rail a::before {
  counter-increment: rail;
  content: counter(rail, decimal-leading-zero);
  font-size: 12px;
  letter-spacing: .1em;
  color: #ff8ac8;
  margin-right: 8px;
}

.rail a:hover, .rail a:focus-visible {
  color: #fff;
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(255, 0, 128, .26), transparent);
}

.prose {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  max-width: 74ch;
  padding: 30px clamp(18px, 3.2vw, 44px) 44px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(28, 12, 22, .78), rgba(28, 12, 22, .52));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 24px 70px rgba(12, 4, 10, .52);
}

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

.prose section + section {
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.prose section.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.prose section.rv.in { opacity: 1; transform: none; }

.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.42;
  letter-spacing: .03em;
  margin-bottom: 1rem;
}

.prose h3 {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.4vw, 1.45rem);
  line-height: 1.5;
  margin: 1.6rem 0 .7rem;
}

.prose h2 span, .prose h3 span {
  background-image: linear-gradient(100deg, #ffffff 14%, #ff9ad4 54%, #d9a6ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  box-decoration-break: clone;
}

.prose h2 + p, .prose h3 + p { margin-top: .2rem; }

.prose p { color: rgba(255, 242, 249, .9); }

.prose a {
  color: #ffb3dc;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.prose ul, .prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}

.prose li { margin-bottom: .45rem; }
.prose li::marker { color: #ff6fbe; }

.prose strong { color: #fff; }

.prose blockquote {
  margin: 1.3rem 0;
  padding: 14px 18px;
  border-left: 3px solid var(--mag);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 240, 248, .92);
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 16px;
}

.prose th, .prose td {
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th { background: rgba(255, 0, 128, .16); }

.prose img { margin: 1.2rem 0; border: 1px solid var(--line); }

.prose time {
  font-size: 15px;
  letter-spacing: .08em;
  color: #ffa7d3;
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 22px 18px 34px;
  border-top: 1px solid var(--line);
  background: rgba(14, 6, 11, .66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mark-s { width: 40px; height: 40px; }
.mark-s .mark-glyph { width: 18px; height: 18px; }

.foot nav p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.foot nav a {
  display: inline-block;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 16px;
  color: rgba(255, 245, 250, .8);
  border-bottom: 1px solid transparent;
}

.foot nav a:hover, .foot nav a:focus-visible {
  color: #fff;
  border-bottom-color: var(--mag);
}

.copy {
  margin: 0;
  font-size: 15px;
  letter-spacing: .06em;
  color: rgba(255, 240, 247, .62);
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  :root { --top: 62px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-art {
    min-height: 40vh;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  }

  .hero-say { padding: 32px 18px 44px; }

  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.6rem); }

  .wrap { padding: 34px 14px 52px; }

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

  .rail {
    position: static;
    grid-column: 1;
    grid-row: 1;
    padding: 12px 14px;
  }

  .rail p { flex-direction: row; flex-wrap: wrap; gap: 0 6px; }

  .rail a {
    min-height: 44px;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .rail a:hover, .rail a:focus-visible { padding-left: 4px; }

  .prose {
    grid-column: 1;
    grid-row: 2;
    padding: 22px 16px 32px;
  }

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

  .foot { justify-content: flex-start; }
  .copy { width: 100%; }
}

@media (max-width: 400px) {
  body { font-size: 16px; }
  .ribbon a { padding: 11px 11px; }
  .hero-art { min-height: 34vh; }
}

/* ---------- 减动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, body::after, .prism, .mark-glyph { animation: none; }
  .hero-art, .kicker, .hero h1, .jump { animation: none; }
  .prose section.rv { opacity: 1; transform: none; transition: none; }
  .menu, .burger .bar { transition: none; }
}

:focus-visible { outline: 2px solid #ff9ad4; outline-offset: 3px; }

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