:root {
  color-scheme: dark;
  --c-bg: #0c0817;
  --c-bg-2: #151024;
  --c-surface: rgba(255, 255, 255, 0.04);
  --c-surface-2: rgba(255, 255, 255, 0.08);
  --c-border: rgba(255, 255, 255, 0.10);
  --c-border-soft: rgba(255, 255, 255, 0.06);
  --c-pink: #ff2a6d;
  --c-purple: #9d4edd;
  --c-gold: #f9c22e;
  --c-text: #f4eefb;
  --c-text-dim: #a89fc0;
  --c-white: #ffffff;
  --grad-pink-purple: linear-gradient(135deg, #ff2a6d 0%, #9d4edd 100%);
  --grad-gold-line: linear-gradient(90deg, transparent, #f9c22e, #ff2a6d, #9d4edd, transparent);
  --container-w: 1240px;
  --container-pad: 24px;
  --header-h: 76px;
  --header-topline-h: 2px;
  --radius: 2px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.32s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(52% 38% at 86% 0%, rgba(157, 78, 221, 0.14) 0%, transparent 100%),
    radial-gradient(42% 30% at 0% 12%, rgba(255, 42, 109, 0.08) 0%, transparent 100%);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
  flex: 1 0 auto;
}

#main-content {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Arial Black", "Impact", "Hiragino Kaku Gothic Std", "Noto Sans CJK SC", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

a {
  color: var(--c-pink);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--c-gold);
}

ul[class], ol[class] {
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px dashed var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--c-pink);
  color: var(--c-white);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c-purple), var(--c-pink));
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.mono {
  font-family: "Courier New", "SF Mono", Menlo, Consolas, monospace;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.divider {
  height: 1px;
  border: 0;
  margin: 32px 0;
  background: linear-gradient(90deg, transparent, rgba(249, 194, 46, 0.5), rgba(255, 42, 109, 0.5), transparent);
}

.prose-content {
  max-width: 76ch;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--c-text-dim);
}

.prose-content p {
  margin-bottom: 1.15em;
}

.prose-content h2,
.prose-content h3,
.prose-content h4 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: var(--c-text);
}

.prose-content ul,
.prose-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

.prose-content ul {
  list-style: square;
}

.prose-content ol {
  list-style: decimal;
}

.prose-content li {
  margin-block: 0.4em;
}

.prose-content blockquote {
  margin: 1.4em 0;
  padding: 1em 1.2em;
  border-left: 3px solid var(--c-gold);
  background: var(--c-surface);
  color: var(--c-text);
}

.prose-content a {
  color: var(--c-pink);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
}

.prose-content a:hover {
  color: var(--c-gold);
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.section-head__kicker {
  font-family: "Courier New", "SF Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-pink);
}

.section-head__title {
  font-family: "Arial Black", "Impact", "Hiragino Kaku Gothic Std", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--c-text);
}

.section-head__title::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.3em;
  vertical-align: 0.06em;
  background: var(--grad-pink-purple);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text-dim);
}

.breadcrumb a {
  color: var(--c-text-dim);
}

.breadcrumb a:hover {
  color: var(--c-pink);
}

.breadcrumb [aria-current="page"] {
  color: var(--c-gold);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-text);
  background: transparent;
  border: 1px solid var(--c-border);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform 0.28s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.btn--primary {
  background: var(--grad-pink-purple);
  border-color: transparent;
  color: var(--c-white);
}

.btn--primary:hover {
  color: var(--c-white);
  box-shadow: 0 12px 30px rgba(255, 42, 109, 0.35);
}

.btn--ghost {
  border-color: rgba(255, 42, 109, 0.55);
  color: var(--c-pink);
}

.btn--ghost:hover {
  border-color: var(--c-pink);
  color: var(--c-pink);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: "Courier New", "SF Mono", monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.06em;
  border: 1px solid var(--c-border);
  color: var(--c-text-dim);
  white-space: nowrap;
}

.tag--neo {
  border-color: rgba(255, 42, 109, 0.42);
  color: var(--c-pink);
}

.tag--gold {
  border-color: rgba(249, 194, 46, 0.45);
  color: var(--c-gold);
}

.card-surface {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--c-bg-2), var(--c-bg));
  border: 1px solid var(--c-border);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  overflow: hidden;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 64%, rgba(255, 42, 109, 0.18) 88%, rgba(157, 78, 221, 0.22) 100%);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 8, 23, 0.55);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s ease;
}

.site-header.is-scrolled {
  background: rgba(12, 8, 23, 0.96);
  border-bottom-color: var(--c-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}

.site-header__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-pink), var(--c-purple));
  box-shadow: 0 0 12px rgba(255, 42, 109, 0.55);
  z-index: 5;
  pointer-events: none;
}

.site-header__topline {
  height: var(--header-topline-h);
  background: linear-gradient(90deg, var(--c-pink) 0%, var(--c-purple) 55%, var(--c-gold) 100%);
  opacity: 0.45;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--container-w) + 2 * var(--container-pad));
  margin-inline: auto;
  min-height: calc(var(--header-h) - var(--header-topline-h));
  padding-inline: var(--container-pad);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--c-text);
}

.site-brand:hover {
  color: var(--c-text);
}

.site-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  color: var(--c-white);
  background: var(--grad-pink-purple);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  box-shadow: 0 6px 16px rgba(255, 42, 109, 0.25);
}

.site-brand__names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-brand__name {
  font-family: "Arial Black", "Hiragino Kaku Gothic Std", "Noto Sans CJK SC", sans-serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--c-text);
}

.site-brand__tag {
  font-family: "Courier New", "SF Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 10px 12px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--c-text-dim);
  border-radius: 2px;
  transition: color 0.25s ease;
}

.site-nav__link::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--grad-pink-purple);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out);
}

.site-nav__link::after {
  content: "*";
  font-family: "Courier New", "SF Mono", monospace;
  font-size: 11px;
  line-height: 1;
  color: var(--c-gold);
  opacity: 0.45;
  transform: translate(0, 0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--c-text);
}

.site-nav__link:hover::before,
.site-nav__link[aria-current="page"]::before {
  transform: scaleX(1);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--c-border);
  border-radius: 2px;
  transition: border-color 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--c-pink);
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--c-pink);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--c-pink);
}

.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  background: #070512;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-dim);
  overflow: hidden;
}

.site-footer::after {
  content: "映";
  position: absolute;
  right: 16px;
  bottom: -42px;
  z-index: 0;
  font-family: "Arial Black", "Noto Sans CJK SC", sans-serif;
  font-weight: 900;
  font-size: 220px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.022);
  pointer-events: none;
  user-select: none;
}

.site-footer__topline {
  height: 2px;
  background: var(--grad-gold-line);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: calc(var(--container-w) + 2 * var(--container-pad));
  margin-inline: auto;
  padding: 56px var(--container-pad) 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 44px;
}

.site-footer__brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.site-footer__logo {
  font-family: "Arial Black", "Hiragino Kaku Gothic Std", "Noto Sans CJK SC", sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: var(--c-text);
}

.site-footer__logo:hover {
  color: var(--c-text);
}

.site-footer__motto {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
}

.site-footer__contact {
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.site-footer__col {
  display: grid;
  align-content: start;
  gap: 14px;
}

.site-footer__heading {
  font-family: "Courier New", "SF Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.site-footer__list {
  display: grid;
  gap: 8px;
}

.site-footer__list a {
  font-size: 14px;
  color: var(--c-text-dim);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.site-footer__list a:hover {
  color: var(--c-pink);
  padding-left: 4px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-soft);
}

.site-footer__copyright {
  font-size: 13px;
  color: var(--c-text-dim);
}

.site-footer__icp {
  font-family: "Courier New", "SF Mono", monospace;
  font-size: 12px;
  color: var(--c-gold);
  border: 1px solid rgba(249, 194, 46, 0.3);
  padding: 4px 10px;
  border-radius: 2px;
}

.site-footer__legal {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.site-footer__legal a {
  font-size: 13px;
  color: var(--c-text-dim);
}

.site-footer__legal a:hover {
  color: var(--c-pink);
}

.site-footer__note {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(168, 159, 192, 0.7);
  text-align: center;
}

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(12, 8, 23, 0.98);
    border: 1px solid transparent;
    border-radius: 4px;
    transition: max-height 0.45s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .site-nav[data-open] {
    max-height: 420px;
    border-color: var(--c-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .site-nav__link {
    display: flex;
    padding: 13px 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--c-border-soft);
  }

  .site-nav__link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__legal {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}
