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

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

:root {
  --ink: #1c1726;
  --ink-2: #241d33;
  --ink-3: #2e2445;
  --violet: #6514ff;
  --magenta: #bf00ff;
  --paper: #f7f4ff;
  --dim: #bdb0dd;
  --rail: 66px;
  --r: 18px;
  --sans: "Barlow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Barlow", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(101, 20, 255, .17) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(191, 0, 255, .13) 0 1px, transparent 1px 88px);
  animation: drift 30s linear infinite;
}

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

main { position: relative; z-index: 1; display: block; }

a { color: #d8c8ff; }

/* ---------- 顶栏 ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--rail);
  padding: 0 14px;
  background: rgba(22, 18, 32, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(191, 0, 255, .3);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--violet);
  color: #fff;
  font-family: var(--cond);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .07em;
  text-decoration: none;
  transition: background .22s, transform .22s;
}

.brand:hover { background: var(--magenta); transform: translateY(-2px); }

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

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

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

.nav-ul a,
.drop-btn {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--dim);
  font-family: var(--cond);
  font-size: 19px;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}

.nav-ul a:hover,
.nav-ul a:focus-visible,
.drop-btn:hover,
.drop-btn:focus-visible {
  color: #fff;
  background: var(--violet);
  transform: translateY(-2px);
}

.has-drop { position: relative; }

.drop-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.drop-ul {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  flex-direction: column;
  gap: 3px;
  min-width: 176px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--ink-3);
  border-radius: 14px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .5);
}

.has-drop:hover .drop-ul,
.has-drop:focus-within .drop-ul,
.has-drop.open .drop-ul { display: flex; }

.rail-cta {
  flex: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-family: var(--cond);
  font-size: 19px;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .22s, transform .22s;
}

.rail-cta:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--rail) + 44px) 20px 64px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(191, 0, 255, .5), transparent 60%),
    radial-gradient(110% 80% at 90% 90%, rgba(101, 20, 255, .55), transparent 62%),
    var(--ink);
}

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

.hero-media img,
.hero-media .hero-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.35) contrast(1.15) brightness(.7);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(155deg, rgba(101, 20, 255, .72), rgba(191, 0, 255, .4) 52%, rgba(28, 23, 38, .94));
}

.hero-ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: -1;
  pointer-events: none;
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(76px, 21vw, 230px);
  line-height: .9;
  letter-spacing: .05em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .14);
}

.hero-inner { max-width: 900px; }

.hero-kicker {
  margin: 0 0 16px;
  font-family: var(--cond);
  font-size: 20px;
  letter-spacing: .34em;
  color: #ecdfff;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--cond);
  font-size: clamp(40px, 7.4vw, 88px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 12px 40px rgba(20, 8, 44, .6);
  overflow-wrap: anywhere;
}

.hero-desc {
  max-width: 44ch;
  margin: 0 auto 34px;
  font-size: 18px;
  color: #f0eaff;
}

.hero-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--cond);
  font-size: 20px;
  letter-spacing: .06em;
  text-decoration: none;
  transition: transform .22s, background .22s, color .22s;
}

.btn-solid { background: var(--magenta); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.btn:hover { transform: translateY(-3px); }
.btn-solid:hover { background: #fff; color: var(--ink); }
.btn-ghost:hover { background: var(--violet); }

/* ---------- 主体栅格 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 22px 0;
}

.content { min-width: 0; }

/* ---------- 正文 ---------- */
.prose > section {
  position: relative;
  margin: 0 0 48px;
  padding: clamp(24px, 4vw, 52px);
  border-radius: var(--r);
  background: var(--ink-2);
  scroll-margin-top: calc(var(--rail) + 24px);
}

.prose > section:nth-child(3n+2) { background: var(--ink-3); }

.prose > section:nth-child(3n+3) {
  background: linear-gradient(152deg, var(--violet), #33097f 78%);
}

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

.prose h2 {
  margin: 0 0 22px;
  font-family: var(--cond);
  font-size: clamp(27px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .015em;
  color: #fff;
}

.prose h2 span,
.side-h span,
.foot-h span {
  position: relative;
  display: inline-block;
}

.prose h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--magenta), #ff8bf0);
}

.prose h3 {
  margin: 34px 0 12px;
  font-family: var(--cond);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

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

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

.prose a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover { background: var(--magenta); text-decoration-color: transparent; }

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

.prose blockquote {
  margin: 0 0 22px;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(191, 0, 255, .22);
  font-size: 18px;
}

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

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

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

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: calc(var(--rail) + 22px);
  align-self: start;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
  border-radius: var(--r);
  background: var(--ink-2);
}

.side-card--accent { background: linear-gradient(150deg, var(--magenta), #45069b); }

.side-h {
  margin: 0 0 18px;
  font-family: var(--cond);
  font-size: 22px;
  letter-spacing: .08em;
  color: #fff;
}

.side-h span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--magenta);
}

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

.side-ol a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}

.side-ol a:hover { background: var(--violet); color: #fff; transform: translateX(3px); }

.side-ol em {
  font-family: var(--cond);
  font-style: normal;
  font-size: 16px;
  color: var(--magenta);
}

.side-card--accent .side-ol em { color: #fff; }

.side-h3 {
  margin: 0 0 14px;
  font-family: var(--cond);
  font-size: 21px;
  letter-spacing: .06em;
  color: #fff;
}

.side-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.side-link + .side-link { margin-top: 8px; }
.side-link:hover { background: #fff; color: var(--ink); transform: translateX(3px); }

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  max-width: 1200px;
  margin: 84px auto 0;
  padding: 56px 22px 26px;
  border-top: 3px solid var(--violet);
  background: linear-gradient(180deg, rgba(46, 36, 69, .9), rgba(18, 14, 26, .98));
}

.foot-h {
  margin: 0 0 16px;
  font-family: var(--cond);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  color: #fff;
}

.foot-h span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 4px;
  background: var(--magenta);
}

.foot-p { margin: 0 0 24px; color: var(--dim); font-size: 16px; }

.sub-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--cond);
  font-size: 18px;
  letter-spacing: .1em;
  color: #fff;
}

.sub-row { display: flex; gap: 10px; }

.sub-input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
}

.sub-input:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

.sub-btn {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--magenta);
  color: #fff;
  font-family: var(--cond);
  font-size: 19px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.sub-btn:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.foot-ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-ul a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 10px;
  border-radius: 10px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
  transition: background .2s, color .2s, padding-left .2s;
}

.foot-ul a:hover { background: var(--violet); color: #fff; padding-left: 16px; }

.base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
}

.base-c { margin: 0; font-family: var(--cond); font-size: 17px; letter-spacing: .1em; color: var(--dim); }

.base-top {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.base-top:hover { background: var(--magenta); }

/* ---------- 滚动进场 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 40px;
  }

  .side { position: static; order: 2; }

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

@media (max-width: 760px) {
  .rail { gap: 8px; padding: 0 10px; }
  .brand { font-size: 18px; padding: 0 10px; }
  .rail-cta { padding: 0 12px; font-size: 17px; }
  .nav-ul a, .drop-btn { font-size: 17px; padding: 0 10px; }

  .drop-ul {
    position: fixed;
    top: var(--rail);
    left: 0;
    right: 0;
    border-radius: 0 0 18px 18px;
  }

  .hero { padding-top: calc(var(--rail) + 32px); min-height: 92svh; }
  .hero-desc { font-size: 17px; }
}

@media (max-width: 420px) {
  .rail-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .nav-ul a:hover, .brand:hover, .rail-cta:hover { transform: none; }
}

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