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

:root {
  --v: #6514ff;
  --p: #bf00ff;
  --ink: #1c1726;
  --bg: #0b0812;
  --fg: #f3efff;
  --dim: #b8abd6;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.045);
  --hard: 9px 9px 0 var(--v);
  --font: 'Space Grotesk', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

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

html {
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  background: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: -30% -30% -30% -30%;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(46deg, rgba(101, 20, 255, 0.17) 0 2px, transparent 2px 26px),
    radial-gradient(60% 55% at 82% 6%, rgba(191, 0, 255, 0.24), transparent 70%),
    radial-gradient(55% 50% at 6% 92%, rgba(101, 20, 255, 0.22), transparent 72%);
  animation: drift 24s linear infinite;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(26px, 26px, 0); }
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--fg); }
b, strong { font-weight: 700; }

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

[id] { scroll-margin-top: 150px; }

/* ---------- 顶部 dock ---------- */
.dock {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0 clamp(12px, 3.5vw, 40px);
  background: rgba(11, 8, 18, 0.94);
  border-bottom: 3px solid var(--v);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.dock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.brand .mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(140deg, var(--v), var(--p));
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-tag {
  display: none;
  padding: 3px 9px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--dim);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.find {
  display: flex;
  margin-left: auto;
  border: 2px solid var(--p);
  background: #120c1c;
}

.find input {
  width: 96px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}

.find input::placeholder { color: #8f83ad; }

.find button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: var(--p);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 220ms ease;
}

.find button:hover { background: var(--v); }

.nav { display: flex; padding: 6px 0; }

.nav-list {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 2px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.nav-list a::before {
  content: attr(data-ico);
  font-size: 12px;
  font-weight: 700;
  color: var(--p);
  letter-spacing: 0.05em;
}

.nav-list a:hover,
.nav-list a.is-on {
  background: var(--v);
  border-color: #fff;
  transform: translate(-2px, -2px);
}

.nav-list a:hover::before,
.nav-list a.is-on::before { color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(26px, 5vw, 62px) clamp(16px, 5vw, 64px) clamp(68px, 11vw, 128px);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 62px));
  background: linear-gradient(140deg, #1a1030, #0b0812 60%);
}

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

.hero-media img,
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.12);
  opacity: 0.42;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(101, 20, 255, 0.86), rgba(28, 23, 38, 0.86) 62%, rgba(191, 0, 255, 0.5));
  mix-blend-mode: multiply;
}

.hero-ghost {
  position: absolute;
  left: clamp(6px, 2vw, 28px);
  bottom: clamp(-6px, -1vw, 4px);
  z-index: 1;
  margin: 0;
  font-size: clamp(78px, 21vw, 268px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(191, 0, 255, 0.55);
  user-select: none;
  will-change: transform;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6.6vw, 82px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-shadow: 6px 6px 0 rgba(101, 20, 255, 0.62);
}

.hero-desc {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: #e3dbf8;
}

/* ---------- 版心 ---------- */
main { display: block; }

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(28px, 4.5vw, 60px);
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 84px) clamp(16px, 5vw, 64px);
}

.body { min-width: 0; }

/* ---------- 正文 ---------- */
.prose { display: block; }

.prose > section {
  position: relative;
  margin: 0 0 clamp(28px, 4vw, 50px);
  padding: clamp(24px, 3.6vw, 46px);
  border: 2px solid var(--line);
  border-left: 7px solid var(--v);
  background: var(--glass);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease;
}

.prose > section:nth-child(even) {
  background: rgba(101, 20, 255, 0.12);
  border-left-color: var(--p);
}

.prose > section:hover {
  background: rgba(191, 0, 255, 0.13);
  border-color: rgba(191, 0, 255, 0.55);
}

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

.prose h2 {
  margin: 0 0 0.7em;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.prose h2 > span {
  box-shadow: inset 0 -0.36em 0 rgba(191, 0, 255, 0.38);
}

.prose h3 {
  margin: 1.5em 0 0.6em;
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.prose h3 > span {
  box-shadow: inset 0 -0.3em 0 rgba(101, 20, 255, 0.5);
}

.prose h4 {
  margin: 1.2em 0 0.5em;
  font-size: 17px;
  font-weight: 700;
  color: var(--p);
}

.prose p {
  margin: 0 0 1.1em;
  line-height: 1.92;
}

.prose a {
  color: #d3a8ff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background 200ms ease, color 200ms ease;
}

.prose a:hover {
  background: var(--v);
  color: #fff;
  text-decoration-color: #fff;
}

.prose strong {
  color: #fff;
  padding: 0 0.24em;
  background: rgba(101, 20, 255, 0.45);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--p); font-weight: 700; }

.prose blockquote {
  margin: 0 0 1.2em;
  padding: 14px 20px;
  border-left: 6px solid var(--p);
  background: rgba(191, 0, 255, 0.1);
  font-style: normal;
}

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

.prose img {
  margin: 1.2em 0;
  border: 2px solid var(--line);
}

.prose hr {
  height: 3px;
  margin: 2em 0;
  border: 0;
  background: linear-gradient(90deg, var(--v), var(--p), transparent);
}

.prose table {
  display: block;
  width: 100%;
  margin: 0 0 1.3em;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}

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

.prose th {
  background: rgba(101, 20, 255, 0.28);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 152px;
  display: grid;
  gap: 16px;
}

.rail-card {
  padding: 20px;
  border: 2px solid var(--p);
  background: rgba(28, 23, 38, 0.7);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  box-shadow: var(--hard);
}

.rail-h {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.rail-h > span { color: #fff; }

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 0;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 200ms ease, padding-left 200ms ease;
}

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

.rail-list a i {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--p);
  letter-spacing: 0.05em;
}

.rail-list a:hover {
  color: #fff;
  padding-left: 6px;
  background: rgba(101, 20, 255, 0.25);
}

.rail-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--line);
  transition: 200ms ease;
}

.rail-top:hover {
  background: var(--v);
  border-color: #fff;
}

/* ---------- cta ---------- */
.cta {
  max-width: 1220px;
  margin: 0 auto clamp(6px, 2vw, 26px);
  padding: clamp(30px, 5vw, 62px) clamp(16px, 5vw, 64px);
  background: linear-gradient(118deg, var(--v), var(--p));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 34px));
}

.cta-h {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 4px 4px 0 rgba(28, 23, 38, 0.55);
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 520px;
  background: #0b0812;
  border: 3px solid #0b0812;
}

.cta-form input {
  flex: 1 1 160px;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  background: #0b0812;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}

.cta-form input::placeholder { color: #8f83ad; }

.cta-form button {
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}

.cta-form button:hover { background: var(--ink); color: #fff; }

/* ---------- 页脚 ---------- */
footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  padding: clamp(30px, 5vw, 58px) clamp(16px, 5vw, 64px);
  border-top: 3px solid var(--v);
  background: #08060e;
}

footer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--dim);
}

.f-brand b {
  display: block;
  font-size: 24px;
  letter-spacing: 0.09em;
  color: var(--fg);
}

.f-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 4px 18px;
}

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid var(--p);
}

.f-links a:hover { color: var(--p); }

footer small {
  padding-top: 14px;
  font-size: 13px;
  color: #8a7fa6;
  border-top: 1px solid var(--line);
}

footer small a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  color: var(--dim);
}

.f-top { text-align: right; }

/* ---------- 动效 ---------- */
.rv {
  opacity: 0;
  transform: translateY(22px);
}

.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .brand-tag { display: inline-block; }
  .find input { width: 130px; }
}

@media (max-width: 980px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: -1; }
  .rail-card { box-shadow: 6px 6px 0 var(--v); }
  .rail-list { display: flex; flex-wrap: wrap; gap: 4px 8px; }
  .rail-list a {
    border: 1px solid var(--line);
    padding: 6px 10px;
    min-height: 40px;
  }
  .rail-top { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero {
    min-height: 66vh;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 40px));
    padding-bottom: 76px;
  }
  .hero-copy h1 { text-shadow: 4px 4px 0 rgba(101, 20, 255, 0.7); }
  [id] { scroll-margin-top: 132px; }
  .cta { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 24px)); }
  footer { grid-template-columns: 1fr; }
  .f-links { justify-content: flex-start; }
  .f-top { text-align: left; }
}

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

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