@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root {
  --pink: #ff0080;
  --magenta: #ff00ff;
  --ink: #26171f;
  --night: #0a0509;
  --paper: #f8eff5;
  --dim: rgba(248, 239, 245, 0.66);
  --line: rgba(255, 0, 128, 0.26);
  --card: rgba(255, 255, 255, 0.055);
  --rad: 28px;
  --pad: clamp(18px, 5vw, 42px);
  --dock-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(var(--dock-h) + 46px);
  background: var(--night);
  color: var(--paper);
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ---------- 极光底层 ---------- */
.sky {
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(72px);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.sky i:nth-child(1) {
  width: 68vmax;
  height: 68vmax;
  left: -18vmax;
  top: -22vmax;
  background: radial-gradient(circle at 50% 50%, var(--pink), transparent 62%);
  animation: drift-a 24s ease-in-out infinite alternate;
}

.sky i:nth-child(2) {
  width: 54vmax;
  height: 54vmax;
  right: -16vmax;
  top: 14vmax;
  background: radial-gradient(circle at 50% 50%, var(--magenta), transparent 64%);
  animation: drift-b 31s ease-in-out infinite alternate;
}

.sky i:nth-child(3) {
  width: 62vmax;
  height: 62vmax;
  left: 24vmax;
  bottom: -30vmax;
  background: conic-gradient(from 40deg, var(--pink), var(--magenta), #6a1a4a, var(--pink));
  opacity: 0.42;
  animation: drift-c 27s ease-in-out infinite alternate, morph 18s linear infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(9vmax, 7vmax, 0) scale(1.22); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to { transform: translate3d(-8vmax, 5vmax, 0) scale(0.92); }
}

@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) rotate(12deg); }
  to { transform: translate3d(-6vmax, -6vmax, 0) rotate(-14deg); }
}

@keyframes morph {
  from { filter: hue-rotate(0deg) blur(72px); }
  to { filter: hue-rotate(70deg) blur(72px); }
}

/* ---------- 顶部品牌行 ---------- */
.brandline {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  padding: 15px var(--pad);
  background: rgba(10, 5, 9, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--paper);
  text-decoration: none;
  padding-block: 4px;
}

.brandline .mark:hover {
  color: var(--magenta);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 70vh;
  padding: clamp(70px, 13vh, 140px) var(--pad) clamp(44px, 8vh, 86px);
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
}

.hero-shot {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.06);
}

.hero-mask {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 5, 9, 0.72), rgba(10, 5, 9, 0.12) 38%, rgba(10, 5, 9, 0.94) 92%),
    radial-gradient(130% 90% at 8% 92%, rgba(255, 0, 128, 0.5), transparent 66%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 24ch;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8.6vw, 5.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}

.hero-sub {
  margin: 20px 0 0;
  max-width: 44ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.6;
  color: rgba(248, 239, 245, 0.88);
}

.slash {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -14px;
  height: 34px;
  z-index: -1;
  background: linear-gradient(90deg, var(--pink), var(--magenta) 42%, rgba(38, 23, 31, 0.9));
  transform: skewY(-2.4deg);
  opacity: 0.92;
}

/* ---------- 主体 ---------- */
.layout {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 58px) var(--pad) 0;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 52px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 96px;
  padding: 22px 18px;
  border-radius: var(--rad);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rail-h {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.rail-h span {
  background: linear-gradient(96deg, var(--pink), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 6px;
  font-size: 0.95rem;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.rail-list a:hover,
.rail-list a[aria-current='true'] {
  color: var(--paper);
  padding-left: 12px;
}

.rail-list li:last-child a {
  border-bottom: 0;
}

.prose {
  min-width: 0;
}

.prose > article {
  padding: clamp(26px, 4vw, 52px) 0;
  border-bottom: 1px dashed var(--line);
  scroll-margin-top: 96px;
}

.prose > article:last-child {
  border-bottom: 0;
}

.prose > article:first-child {
  padding-top: clamp(6px, 1.6vw, 18px);
}

.prose h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.prose h2 span {
  background: linear-gradient(96deg, #ffffff, var(--magenta) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose h3 {
  margin: 30px 0 12px;
  font-size: clamp(1.2rem, 2.2vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose h3 span {
  border-bottom: 2px solid rgba(255, 0, 128, 0.55);
  padding-bottom: 2px;
}

.prose p {
  margin: 0 0 1.05em;
  max-width: 68ch;
  color: rgba(248, 239, 245, 0.84);
}

.prose strong {
  color: #fff;
}

.prose a {
  color: var(--magenta);
  text-decoration-color: rgba(255, 0, 255, 0.45);
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
  max-width: 66ch;
  color: rgba(248, 239, 245, 0.84);
}

.prose li {
  margin-bottom: 0.45em;
}

.prose blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--pink);
  border-radius: 0 20px 20px 0;
  background: var(--card);
  color: rgba(248, 239, 245, 0.9);
}

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

.prose img {
  border-radius: 20px;
  margin: 18px 0;
}

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

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: clamp(42px, 7vw, 88px) auto 0;
  padding: clamp(30px, 5vw, 54px) var(--pad) 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.foot h2 {
  margin: 0 0 12px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.foot h2 span {
  background: linear-gradient(96deg, var(--pink), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-brand p {
  margin: 0;
  max-width: 42ch;
  font-size: 0.96rem;
  color: var(--dim);
}

.foot-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.95rem;
  color: var(--dim);
  text-decoration: none;
}

.foot-nav a:hover {
  color: var(--paper);
}

.foot-base {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  text-align: center;
}

.foot-base p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dim);
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px clamp(12px, 4vw, 28px) calc(10px + env(safe-area-inset-bottom));
  min-height: var(--dock-h);
  background: rgba(16, 8, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock-nav::-webkit-scrollbar {
  display: none;
}

.dock-nav ol {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.94rem;
  color: rgba(248, 239, 245, 0.82);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.22s ease, color 0.22s ease;
}

.dock-nav a:hover,
.dock-nav a[aria-current='true'] {
  background: linear-gradient(100deg, var(--pink), var(--magenta));
  color: #140310;
}

.burger,
.closer {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 66px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  background: linear-gradient(100deg, var(--pink), var(--magenta));
  color: #140310;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.burger:hover,
.closer:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ---------- 全屏菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: calc(18px + env(safe-area-inset-top)) var(--pad) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(90% 60% at 88% 4%, rgba(255, 0, 255, 0.34), transparent 62%),
    radial-gradient(80% 60% at 4% 96%, rgba(255, 0, 128, 0.34), transparent 60%),
    #0a0509;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.45s;
}

.menu.is-open {
  transform: translateY(0);
  visibility: visible;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.menu-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-nav a {
  display: flex;
  align-items: center;
  min-height: 58px;
  font-size: clamp(1.1rem, 3.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.menu-nav a:hover {
  color: var(--magenta);
  padding-left: 10px;
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .rail {
    position: static;
    border-radius: 22px;
    padding: 16px 14px;
  }

  .rail-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .rail-list a {
    min-height: 40px;
    padding: 0 12px;
    border-bottom: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
  }

  .rail-list a:hover,
  .rail-list a[aria-current='true'] {
    padding-left: 12px;
    background: linear-gradient(100deg, var(--pink), var(--magenta));
    color: #140310;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: 68vh;
    align-items: center;
  }

  .hero-copy {
    max-width: none;
  }

  .slash {
    height: 22px;
  }

  .foot-nav ul {
    gap: 0 16px;
  }
}

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

  .sky i,
  .menu,
  .dock-nav a,
  .burger,
  .closer,
  .rail-list a,
  .menu-nav a {
    animation: none !important;
    transition: none !important;
  }
}

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