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

:root {
  --ink: #0d0d0d;
  --ink-2: #141019;
  --violet: #8000ff;
  --magenta: #ff00ff;
  --text: #ece7f6;
  --dim: #a79ec0;
  --line: rgba(128, 0, 255, 0.32);
  --rail: 246px;
  --serif: "Libre Bodoni", Georgia, "Songti SC", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 10% -12%, rgba(128, 0, 255, 0.24), transparent 62%),
    radial-gradient(760px 460px at 102% 4%, rgba(255, 0, 255, 0.16), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045) 0 1px,
    transparent 1px 3px
  );
}

::selection {
  background: var(--magenta);
  color: #0d0d0d;
}

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

/* ---------- 左侧固定导航 ---------- */

.rail {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(13, 13, 13, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 6px;
  margin-right: auto;
  color: #fff;
  text-decoration: none;
}

.brand-glyph {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--magenta);
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 255, 0.95);
  box-shadow: inset 0 0 14px rgba(255, 0, 255, 0.35);
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rail-contact {
  order: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: #e6c9ff;
  text-decoration: none;
}

.rail-contact:hover {
  border-color: var(--magenta);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 0, 255, 0.3);
}

.rail-nav {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
}

.rail-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.rail-nav li {
  flex: 0 0 auto;
}

.rail-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--dim);
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: #fff;
  border-color: var(--line);
  background: rgba(128, 0, 255, 0.14);
}

.rail-idx {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--violet);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 45vh;
  padding: clamp(26px, 6vw, 62px) clamp(20px, 5vw, 58px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(128, 0, 255, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 0, 255, 0.12) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(130% 110% at 0% 100%, #000 16%, transparent 76%);
  mask-image: radial-gradient(130% 110% at 0% 100%, #000 16%, transparent 76%);
}

.hero-frame {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.94) 0%, rgba(13, 13, 13, 0.42) 58%, rgba(13, 13, 13, 0.88) 100%),
    linear-gradient(0deg, rgba(13, 13, 13, 0.96), transparent 62%);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.25) contrast(1.06);
  transition: opacity 1.1s ease;
}

.hero-media.is-on {
  opacity: 0.44;
}

.hero-copy {
  position: relative;
  max-width: 100%;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.05rem, 6.4vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow:
    0 0 18px rgba(255, 0, 255, 0.55),
    0 0 48px rgba(128, 0, 255, 0.5);
  animation: glitch 7s steps(1, end) infinite;
}

@keyframes glitch {
  0%, 92%, 100% { transform: none; }
  93% { transform: translate(-2px, 1px) skewX(-1.4deg); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, 0) skewX(1deg); }
}

.hero-lede {
  max-width: 48ch;
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- 正文 ---------- */

.stage {
  display: block;
}

.prose {
  max-width: 860px;
  padding: clamp(26px, 5vw, 56px) clamp(18px, 4vw, 50px);
}

.prose > section {
  position: relative;
  margin: 0 0 22px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  scroll-margin-top: 108px;
}

.prose > section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), transparent);
}

.prose h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  line-height: 1.22;
  color: #fff;
  text-shadow: 0 0 16px rgba(128, 0, 255, 0.45);
}

.prose h3 {
  margin: 22px 0 10px;
  font-size: 1.14rem;
  font-weight: 600;
  color: #f2dcff;
}

.prose p {
  margin: 0 0 14px;
}

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

.prose li {
  margin: 0 0 8px;
}

.prose li::marker {
  color: var(--magenta);
}

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

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

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 2px solid var(--magenta);
  background: rgba(255, 0, 255, 0.06);
  color: var(--dim);
}

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

.prose small,
.foot small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--magenta);
}

/* ---------- 滚动显现 ---------- */

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

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

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

.foot {
  display: grid;
  gap: 16px;
  padding: 34px clamp(18px, 4vw, 50px) 42px;
  border-top: 1px solid var(--line);
  background: rgba(128, 0, 255, 0.06);
}

.foot-word {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 7vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 0, 255, 0.75);
  text-shadow: 0 0 26px rgba(128, 0, 255, 0.55);
}

.foot-note p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 0;
  color: #dbb6ff;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-links a:hover {
  color: #fff;
  border-bottom-color: var(--magenta);
}

/* ---------- 桌面 ---------- */

@media (min-width: 900px) {
  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 28px 20px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .brand {
    margin-right: 0;
  }

  .rail-nav {
    order: 2;
    flex: 0 0 auto;
    margin-top: 28px;
  }

  .rail-nav ul {
    flex-direction: column;
    gap: 2px;
    overflow: visible;
    padding-bottom: 0;
  }

  .rail-nav a {
    white-space: normal;
  }

  .rail-contact {
    order: 3;
    margin-top: auto;
    justify-content: center;
  }

  .stage,
  .foot {
    margin-left: var(--rail);
  }

  .foot {
    grid-template-columns: 1fr auto auto;
    align-items: end;
    gap: 26px;
  }

  .foot-links {
    justify-content: flex-end;
  }
}

@media (min-width: 1240px) {
  .hero {
    min-height: 45vh;
    padding-left: 62px;
  }

  .prose {
    padding-left: 62px;
  }
}

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

  .hero-title {
    animation: none;
  }

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

  .hero-media {
    transition: none;
  }
}

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