@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

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

:root {
  --pink: #ff0080;
  --magenta: #ff00ff;
  --ink: #26171f;
  --bg: #120a0f;
  --panel: #1e1118;
  --panel-2: #2b1822;
  --fg: #ffe9f4;
  --dim: #d3a6bd;
  --r: 18px;
  --pix: 'Press Start 2P', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'VT323', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -25% -20% -10%;
  z-index: 0;
  pointer-events: none;
  opacity: .8;
  background:
    radial-gradient(42% 38% at 14% 12%, rgba(255, 0, 128, .55), transparent 70%),
    radial-gradient(40% 46% at 84% 18%, rgba(255, 0, 255, .42), transparent 72%),
    radial-gradient(52% 42% at 62% 88%, rgba(255, 0, 128, .3), transparent 70%);
  filter: blur(64px) saturate(1.25);
  animation: aurora 24s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.03); }
}

img { max-width: 100%; }

a { color: var(--pink); }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}

/* ---------- 顶部品牌条 ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(18, 10, 15, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 0, 128, .38);
}

.mast-orn {
  height: 8px;
  width: 54px;
  justify-self: start;
  background-image: repeating-linear-gradient(90deg, var(--pink) 0 6px, transparent 6px 12px);
  opacity: .85;
}

.mast-orn-r {
  justify-self: end;
  background-image: repeating-linear-gradient(90deg, var(--magenta) 0 6px, transparent 6px 12px);
}

.mast-brand {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
  color: var(--fg);
}

.mast-logo {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.mast-word {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
  background: linear-gradient(96deg, var(--pink), var(--magenta) 65%, #ffd2ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 128px 26px 108px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 62px), 0 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: screen;
  background: conic-gradient(from 210deg at 72% 28%,
      rgba(255, 0, 128, .6),
      rgba(255, 0, 255, .34),
      rgba(38, 23, 31, .45),
      rgba(255, 0, 128, .55));
  animation: prism 18s ease-in-out infinite alternate;
}

@keyframes prism {
  0% { filter: hue-rotate(0deg) saturate(1); }
  100% { filter: hue-rotate(52deg) saturate(1.3); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .2;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 78%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  mix-blend-mode: screen;
  will-change: transform;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
  text-align: right;
}

.hero-copy h1 {
  margin: 0 0 26px;
  font-family: var(--pix);
  font-size: clamp(1.6rem, 5.4vw, 3.2rem);
  line-height: 1.5;
  letter-spacing: .01em;
  color: #fff;
  text-shadow:
    0 0 16px rgba(255, 0, 128, .85),
    0 0 52px rgba(255, 0, 255, .5);
}

.hero-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--pink), var(--magenta));
  color: #23101a;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(255, 0, 128, .42);
  transition: transform .22s ease, box-shadow .22s ease;
}

.hero-jump:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(255, 0, 255, .5);
}

/* ---------- 版面骨架 ---------- */
.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px 76px;
}

/* ---------- 左侧锚点栏 ---------- */
.rail {
  position: sticky;
  top: 76px;
  align-self: start;
  padding: 20px 14px 18px;
  border-radius: var(--r);
  background: rgba(30, 17, 24, .92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.rail-t {
  margin: 0;
  font-family: var(--pix);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .16em;
  color: #ffd4ea;
}

.rail hr,
.post hr {
  display: block;
  width: 66px;
  height: 6px;
  margin: 12px 0 18px;
  border: 0;
  background-image: repeating-linear-gradient(90deg, var(--magenta) 0 6px, transparent 6px 12px);
  opacity: .85;
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease, background .2s ease;
}

.rail a:hover,
.rail a:focus-visible {
  color: #fff;
  transform: translateX(4px);
  background: linear-gradient(100deg, rgba(255, 0, 128, .32), rgba(255, 0, 255, .16));
}

.rail a.is-on {
  color: #23101a;
  font-weight: 800;
  background: linear-gradient(100deg, var(--pink), var(--magenta));
}

/* ---------- 正文 ---------- */
.main { min-width: 0; }

.post > section {
  scroll-margin-top: 96px;
  margin: 0 0 26px;
  padding: 32px 28px;
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}

.post > section:nth-child(even) { background: var(--panel-2); }
.post > section:last-child { margin-bottom: 0; }

.post h2 {
  margin: 0 0 6px;
  font-family: var(--pix);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.65;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 255, .45);
}

.post h3 {
  margin: 1.5em 0 .4em;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #ffd0e8;
}

.post h3 + hr {
  margin-top: 8px;
}

.post p { margin: 0 0 1.05em; }
.post p:last-child { margin-bottom: 0; }

.post ul,
.post ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}

.post li { margin: 0 0 .45em; }

.post strong { color: #fff; }

.post a {
  color: #ff5cb0;
  text-underline-offset: 3px;
}

.post a:hover { color: var(--magenta); }

.post img {
  height: auto;
  border-radius: 14px;
  margin: 6px 0 14px;
}

.post blockquote {
  margin: 0 0 1.1em;
  padding: 12px 18px;
  border-left: 6px solid var(--pink);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 0, 128, .1);
  color: #ffd9ec;
}

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

.post th,
.post td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 0, 255, .22);
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 22px 34px;
  border-top: 2px solid rgba(255, 0, 128, .32);
}

.foot-brand {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .06em;
}

.foot-brand a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
}

.foot-blurb {
  grid-column: 1;
  grid-row: 2;
  margin: 0 0 8px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.7;
}

.foot-links {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2px 16px;
  margin: 0;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
}

.foot-links a:hover { color: var(--magenta); }

.foot-form {
  grid-column: 1 / -1;
  margin: 24px 0 0;
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sub input {
  flex: 1 1 220px;
  min-height: 50px;
  padding: 0 18px;
  border: 2px solid rgba(255, 0, 255, .42);
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;
}

.sub input::placeholder { color: #b98aa4; }

.sub button {
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--pink), var(--magenta));
  color: #23101a;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
  transition: filter .2s ease;
}

.sub button:hover { filter: brightness(1.12); }

.foot-copy {
  grid-column: 1 / -1;
  display: block;
  margin-top: 26px;
  text-align: center;
  color: #b98aa4;
  font-size: 16px;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 880px) {
  body::before { filter: blur(48px) saturate(1.15); opacity: .7; }

  .mast { padding: 6px 12px; }
  .mast-orn { width: 30px; height: 6px; }
  .mast-word { font-size: 16px; letter-spacing: .02em; }

  .hero {
    min-height: 88svh;
    padding: 100px 18px 74px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
  }

  .hero-copy h1 { margin-bottom: 20px; }

  .layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 14px 56px;
  }

  .rail {
    position: sticky;
    top: 62px;
    z-index: 25;
    padding: 8px;
    border-radius: 14px;
  }

  .rail-t,
  .rail hr { display: none; }

  .rail ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .rail ul::-webkit-scrollbar { display: none; }

  .rail a {
    white-space: nowrap;
    padding: 8px 14px;
  }

  .rail a:hover,
  .rail a:focus-visible { transform: none; }

  .post > section {
    padding: 24px 16px;
    border-radius: 14px;
  }

  .foot {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 34px 16px 28px;
  }

  .foot-links { grid-column: 1; grid-row: auto; }
  .foot-blurb { grid-row: auto; }
  .foot-form { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-media { transform: none !important; }
}

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