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

:root {
  --violet: #6514ff;
  --magenta: #bf00ff;
  --ink: #1c1726;
  --ink-2: #241c33;
  --paper: #f5f0ff;
  --muted: #c9bde6;
  --glass: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.15);
  --radius: 10px;
  --dock-h: 84px;
}

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

[hidden] {
  display: none !important;
}

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

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

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(191, 0, 255, 0.17) 1.4px, transparent 1.6px),
    repeating-linear-gradient(116deg, rgba(101, 20, 255, 0.15) 0 2px, transparent 2px 62px);
  background-size: 46px 46px, auto;
  animation: drift 28s linear infinite;
}

@keyframes drift {
  to {
    background-position: 460px 460px, 0 0;
  }
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, "Songti SC", serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- 框架 ---------- */

.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 44px 18px 30px 0;
  border-right: 1px solid var(--line);
}

.rail-title {
  font-size: 21px;
  letter-spacing: 0.02em;
  color: #fff;
}

.rail-title span {
  display: block;
}

.rail-nav ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.rail-nav li {
  margin-bottom: 4px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px;
  font-size: 16px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: var(--muted);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.rail-nav a:hover {
  color: #fff;
  background: rgba(101, 20, 255, 0.28);
  border-left-color: var(--magenta);
}

main {
  min-width: 0;
}

.wrap {
  max-width: 880px;
  padding-bottom: 40px;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 48px;
  padding: 88px 0 72px;
}

.hero-copy h1 {
  font-size: clamp(44px, 8vw, 92px);
  background: linear-gradient(118deg, #ffffff 12%, #d8c6ff 58%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 26px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--violet);
  max-width: 34ch;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
}

.hero-art {
  position: relative;
  min-height: 54vh;
}

.hero-art img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.85) contrast(1.06);
  box-shadow: 0 34px 70px -44px #000;
  will-change: transform;
}

.hero-art img.art-a {
  width: 78%;
  aspect-ratio: 3 / 4;
}

.hero-art img.art-b {
  position: absolute;
  right: 0;
  bottom: -8%;
  width: 62%;
  aspect-ratio: 1 / 1;
  border: 5px solid var(--ink);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  background: linear-gradient(150deg, rgba(101, 20, 255, 0.55), rgba(191, 0, 255, 0.18) 58%, transparent);
  mix-blend-mode: screen;
}

.slant {
  position: absolute;
  left: -44px;
  right: -44px;
  bottom: 6%;
  height: 116px;
  z-index: -1;
  transform: skewY(-5deg);
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  opacity: 0.26;
  filter: blur(1px);
}

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

.block {
  padding: 32px 0 72px;
}

.prose {
  max-width: 76ch;
}

.prose > div {
  position: relative;
  margin: 0 0 56px;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 62px -48px #000;
  scroll-margin-top: 28px;
  scroll-margin-bottom: 180px;
}

.prose > div::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
}

.prose > div:nth-child(even)::before {
  background: linear-gradient(90deg, var(--magenta), var(--violet));
}

.prose > div:nth-child(3n) {
  border-radius: var(--radius) 34px var(--radius) var(--radius);
}

.prose > div > *:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 0 0 18px;
  color: #fff;
}

.prose h2 span,
.prose h3 span {
  display: inline;
}

.prose h3 {
  font-size: clamp(21px, 2.4vw, 26px);
  margin: 30px 0 12px;
  color: #efe4ff;
}

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

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin: 8px 0;
}

.prose strong {
  color: #fff;
}

.prose a {
  color: #dcc2ff;
  border-bottom: 1px solid rgba(191, 0, 255, 0.55);
}

.prose a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.prose img {
  border-radius: var(--radius);
  height: auto;
}

.prose blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--magenta);
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}

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

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

.foot {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding: 72px 28px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}

.foot-brand {
  font-size: clamp(46px, 13vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #ffffff 20%, #d3b3ff 62%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 26px;
  margin: 28px 0 0;
}

.foot address {
  font-style: normal;
  font-size: 16px;
  color: var(--muted);
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  transition: background 220ms ease, border-color 220ms ease;
}

.foot ul a:hover {
  background: rgba(101, 20, 255, 0.3);
  border-color: transparent;
}

.copy {
  margin: 26px 0 0;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- 底部固定条 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(23, 18, 33, 0.9);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.dock nav {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 18px;
}

.dock ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-l {
  flex: 1;
  justify-content: flex-end;
}

.side-r {
  flex: 1;
  justify-content: flex-start;
}

.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  transition: background 220ms ease, color 220ms ease;
}

.dock a:hover {
  background: linear-gradient(118deg, var(--violet), var(--magenta));
  color: #fff;
}

.dock a.on {
  background: rgba(101, 20, 255, 0.3);
  border-color: var(--line);
}

.dock-mid {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand img {
  border-radius: 6px;
  flex: 0 0 auto;
}

.search {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.search input {
  width: 132px;
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
}

.search input::placeholder {
  color: #b7a9d6;
}

.search button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(118deg, var(--violet), var(--magenta));
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

/* ---------- 动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 260ms ease, transform 260ms ease;
}

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

/* ---------- 断点 ---------- */

@media (max-width: 1000px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 20px;
  }

  .rail {
    position: static;
    padding: 26px 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 12px;
  }

  .rail-nav a {
    border-left: 0;
    border: 1px solid var(--line);
  }

  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 44px 0 32px;
  }

  .hero-art {
    min-height: 320px;
  }

  .hero-art img.art-b {
    bottom: -4%;
  }

  .slant {
    bottom: 2%;
    left: -20px;
    right: -20px;
  }
}

@media (max-width: 780px) {
  :root {
    --dock-h: 162px;
  }

  body {
    padding-bottom: calc(var(--dock-h) + 24px);
    font-size: 17px;
  }

  .dock nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
  }

  .dock-mid {
    order: -1;
    flex: 1 0 100%;
    justify-content: center;
  }

  .side-l,
  .side-r {
    flex: 1 0 100%;
    justify-content: center;
  }

  .dock a {
    padding: 0 8px;
  }

  .search {
    flex: 1;
    min-width: 0;
  }

  .search input {
    width: 100%;
  }

  .brand {
    font-size: 18px;
  }

  .foot {
    padding: 52px 18px 34px;
  }

  .prose > div {
    margin-bottom: 40px;
    scroll-margin-bottom: 200px;
  }
}

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

  body::before {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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