@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

:root {
  --pink: #ff0080;
  --magenta: #ff00ff;
  --violet: #7a00ff;
  --ink: #26171f;
  --text: #f7e9f3;
  --soft: #e3d1de;
  --muted: #bda3b6;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 0, 128, 0.24);
  --edge: rgba(255, 255, 255, 0.09);
  --radius: 18px;
  --dock: 78px;
  --font: 'DM Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --disp: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  padding-bottom: calc(var(--dock) + 16px);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(36% 40% at 16% 18%, rgba(255, 0, 128, 0.4), transparent 66%),
    radial-gradient(32% 34% at 84% 12%, rgba(255, 0, 255, 0.3), transparent 64%),
    radial-gradient(44% 48% at 66% 84%, rgba(122, 0, 255, 0.26), transparent 68%),
    radial-gradient(26% 28% at 10% 90%, rgba(255, 0, 160, 0.22), transparent 70%);
  filter: blur(46px) saturate(1.15);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  to { transform: translate3d(2%, 2.5%, 0) scale(1.1); }
}

a { color: inherit; }

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

::selection { background: rgba(255, 0, 128, 0.45); color: #fff; }

/* 底部固定导航条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: var(--dock);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 11, 19, 0.86);
  backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 44px rgba(255, 0, 128, 0.16);
}

.wing {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.wing-r { justify-content: flex-end; }

.q {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.q:hover { color: #fff; background: rgba(255, 0, 128, 0.16); }

.q.extra { display: none; }

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  font-family: var(--disp);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: transparent;
  background: linear-gradient(96deg, #ff5fb0, var(--pink) 45%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

/* 汉堡 + 全屏遮罩菜单 */
.drawer { position: static; }

.drawer summary {
  list-style: none;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255, 0, 128, 0.18);
  border: 1px solid rgba(255, 0, 128, 0.42);
  margin-left: 4px;
}

.drawer summary::-webkit-details-marker { display: none; }

.burger {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.burger::before { top: 0; box-shadow: 0 6px 0 #fff; }
.burger::after { bottom: 0; }

.drawer[open] .burger::before { transform: translateY(6px) rotate(45deg); box-shadow: none; }
.drawer[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }

.drawer-list {
  position: fixed;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: clamp(56px, 12vh, 100px) 22px 118px;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow-y: auto;
  background:
    radial-gradient(70% 55% at 82% 8%, rgba(255, 0, 255, 0.3), transparent 62%),
    radial-gradient(70% 60% at 8% 92%, rgba(255, 0, 128, 0.32), transparent 62%),
    rgba(16, 9, 15, 0.97);
  backdrop-filter: blur(8px);
}

.drawer[open] .drawer-list { animation: menuIn 0.32s ease both; }

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

.drawer-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 6px;
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(1.35rem, 5.6vw, 1.9rem);
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-link:hover { color: #ff8ac4; }

html.menu-open body { overflow: hidden; }

/* 首屏 */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  text-align: right;
  padding: clamp(80px, 14vh, 150px) 20px clamp(110px, 16vh, 170px);
}

.veil {
  position: absolute;
  inset: -12% -10% -18%;
  z-index: -1;
  filter: blur(58px);
  transition: opacity 0.2s linear;
}

.veil span {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.veil span:nth-child(1) {
  width: 62vw; height: 62vw; left: -8vw; top: 4vh;
  background: radial-gradient(circle at 42% 42%, #ff0080, transparent 68%);
  animation: floatA 19s ease-in-out infinite alternate;
}

.veil span:nth-child(2) {
  width: 52vw; height: 52vw; right: -6vw; top: 12vh;
  background: radial-gradient(circle at 50% 50%, #ff00ff, transparent 66%);
  animation: floatB 23s ease-in-out infinite alternate;
}

.veil span:nth-child(3) {
  width: 70vw; height: 46vw; left: 18vw; bottom: -12vh;
  background: radial-gradient(circle at 50% 50%, #7a00ff, transparent 70%);
  animation: floatA 27s ease-in-out infinite alternate-reverse;
}

.veil span:nth-child(4) {
  width: 34vw; height: 34vw; right: 12vw; bottom: 6vh;
  background: radial-gradient(circle at 50% 50%, #ff5fb0, transparent 68%);
  opacity: 0.6;
  animation: floatB 21s ease-in-out infinite alternate;
}

@keyframes floatA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, -5vh, 0) scale(1.18); }
}

@keyframes floatB {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-5vw, 6vh, 0) scale(0.92); }
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(2.15rem, 8.4vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: transparent;
  background: linear-gradient(100deg, #ffffff 12%, #ffc2e4 42%, var(--magenta) 72%, var(--pink) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 12px 34px rgba(255, 0, 128, 0.35));
}

.deck {
  margin: 0 0 0 auto;
  max-width: 46ch;
  font-size: clamp(1rem, 2.3vw, 1.12rem);
  line-height: 1.7;
  color: var(--soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(56px, 9vw, 120px);
  background: linear-gradient(100deg, var(--pink), var(--magenta) 55%, var(--violet));
  clip-path: polygon(0 68%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.92;
}

/* 正文区 */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 20px clamp(40px, 6vw, 70px);
}

.rail {
  order: 2;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 26px 50px -30px rgba(255, 0, 128, 0.9);
}

.rail h2 {
  margin: 0 0 10px;
  font-family: var(--disp);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.rail h2 span { position: relative; padding-left: 14px; }

.rail h2 span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}

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

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--soft);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.rail a:hover { background: rgba(255, 0, 128, 0.18); color: #fff; }

.prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.prose > * { scroll-margin-top: 40px; }

.prose section {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3.6vw, 34px);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(162deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 34px 64px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.prose section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--magenta), transparent);
  opacity: 0.9;
}

.prose h2 {
  margin: 0 0 12px;
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(1.32rem, 3.4vw, 1.82rem);
  line-height: 1.32;
  color: #fff;
}

.prose h2 span { position: relative; }

.prose h2 span::after {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), var(--magenta));
}

.prose h3 {
  margin: 1.2em 0 0.5em;
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #ffd9ec;
}

.prose p {
  margin: 0 0 1em;
  max-width: 66ch;
  color: var(--soft);
  line-height: 1.85;
}

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

.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--soft); }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--pink); }
.prose strong { color: #fff; }
.prose em { color: #ffc8e6; }

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

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

.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--magenta);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 0, 255, 0.09);
  color: var(--soft);
}

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

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

.prose figure { margin: 1.2em 0; }
.prose figcaption { font-size: 0.94rem; color: var(--muted); margin-top: 8px; }

.prose aside {
  margin: 1.2em 0;
  padding: 14px 18px;
  border: 1px dashed rgba(255, 0, 255, 0.36);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.98rem; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); text-align: left; }
.prose th { color: #fff; }

.prose code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.94rem;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

/* 进入视口动效 */
.rise {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.2, 0.72, 0.3, 1);
}

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

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) 20px 22px;
  border-top: 1px solid var(--edge);
}

.foot p { margin: 0; }

.f-brand {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 1.3rem;
  color: transparent;
  background: linear-gradient(96deg, #ff5fb0, var(--pink) 50%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
}

.f-note { color: var(--muted); line-height: 1.7; }

.f-links { display: flex; flex-direction: column; gap: 1px; }

.f-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--soft);
  text-decoration: none;
}

.f-links a:hover { color: #fff; }

.f-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--disp);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(96deg, var(--pink), var(--magenta));
  box-shadow: 0 18px 38px -16px rgba(255, 0, 128, 0.95);
}

.f-copy { color: var(--muted); }

.f-small {
  text-align: right;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.f-small a { text-decoration: none; color: var(--soft); padding: 6px 0; display: inline-block; }
.f-small a:hover { color: #fff; }

/* 断点 */
@media (max-width: 420px) {
  .q { padding: 0 6px; }
  .hero { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 560px) {
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .q.extra { display: flex; }
  .dock { padding-left: 20px; padding-right: 20px; }
  .stage {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
  }
  .rail { order: 0; position: sticky; top: 24px; }
  .rail ul { flex-direction: column; flex-wrap: nowrap; }
  .rail a { padding: 0 12px; }
  .foot { grid-template-columns: 1.1fr 1.6fr 0.9fr 0.9fr; align-items: start; }
  .f-copy { grid-column: 1 / 3; }
  .f-small { grid-column: 3 / 5; }
}

@media (min-width: 1100px) {
  .hero h1 { letter-spacing: -0.02em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .veil span { animation: none; }
  .drawer[open] .drawer-list { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .veil { transition: none; }
}

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