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

:root {
  --violet: #6514ff;
  --neon: #bf00ff;
  --ink: #1c1726;
  --paper: #f6f2ff;
  --line: #e6ddff;
  --r: 28px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -22%;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 26%, rgba(101, 20, 255, .12), transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(191, 0, 255, .12), transparent 44%),
    repeating-linear-gradient(48deg, rgba(101, 20, 255, .055) 0 2px, transparent 2px 24px);
  animation: drift 26s linear infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, 0, 0); }
  to { transform: translate3d(2%, -2%, 0); }
}

img { max-width: 100%; }
a { color: var(--violet); }

/* 顶部 */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(14px, 4vw, 48px);
  background: var(--ink);
  color: #fff;
  border-bottom: 6px solid var(--violet);
}

.rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.railA { justify-content: flex-start; }
.railB { justify-content: flex-end; }

.rail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease;
}

.rail a:hover,
.rail a:focus-visible {
  background: var(--neon);
  color: #fff;
}

.brand {
  padding: 10px 8px;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: .08em;
  color: #fff;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: #e3d3ff; }

/* 粘性锚点条 */
.anchorStrip {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--violet);
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 3px solid var(--ink);
  scrollbar-width: thin;
}

.stripTrack {
  display: flex;
  gap: 6px;
  padding: 8px clamp(12px, 3vw, 32px);
  width: max-content;
  min-width: 100%;
}

.stripTrack a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 200ms ease;
}

.stripTrack a:hover,
.stripTrack a:focus-visible { background: var(--neon); }

/* 首屏 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 5vw, 44px);
  padding: clamp(30px, 7vw, 72px) clamp(18px, 5vw, 64px) clamp(58px, 9vw, 96px);
  background: linear-gradient(158deg, #1c1726 0%, #33144f 52%, #6514ff 100%);
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -58px;
  height: 156px;
  z-index: -1;
  background: linear-gradient(90deg, var(--neon), var(--violet));
  transform: skewY(-4deg);
  opacity: .9;
}

.heroWords { text-align: right; }

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 7.4vw, 78px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.01em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}

.heroArtWrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin-left: auto;
}

.heroArt {
  display: block;
  width: 100%;
  max-height: 46vh;
  object-fit: cover;
  border-radius: var(--r);
  border: 4px solid rgba(255, 255, 255, .4);
}

/* 主体 */
.stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px clamp(14px, 4vw, 40px) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 48px;
  align-items: start;
}

.doc {
  min-width: 0;
  background: #fff;
  border-radius: var(--r);
  padding: clamp(20px, 4vw, 52px);
  box-shadow: 0 24px 50px -34px rgba(28, 23, 38, .7);
}

.docBody { padding: 0; }

.doc .docBody > div { padding: 38px 0; }
.doc .docBody > div:first-child { padding-top: 6px; }
.doc .docBody > div + div { border-top: 3px solid var(--line); }

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

.doc h2 {
  margin: 0 0 .6em;
  font-size: clamp(23px, 3.2vw, 34px);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -.01em;
}

.doc h2 span { background: linear-gradient(transparent 62%, #ded0ff 62%); }

.doc h3 {
  margin: 1.4em 0 .5em;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 800;
  line-height: 1.35;
}

.doc h3 span {
  border-bottom: 3px solid var(--neon);
  padding-bottom: 2px;
}

.doc p { margin: 0 0 1.1em; }
.doc ul, .doc ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.doc li { margin: .35em 0; }
.doc li::marker { color: var(--neon); font-weight: 800; }
.doc strong { color: var(--violet); }
.doc a { word-break: break-word; }

.doc blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  background: #f2ecff;
  border-left: 8px solid var(--neon);
  border-radius: 0 var(--r) var(--r) 0;
}

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

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 16px;
}

.doc th, .doc td {
  padding: 10px 8px;
  border-bottom: 2px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th { background: #f2ecff; font-weight: 800; }

.doc img { border-radius: 20px; }
.doc figure { margin: 0 0 1.2em; }
.doc figcaption { margin-top: 8px; font-size: 16px; color: #6c5f85; }
.doc hr { border: 0; border-top: 3px solid var(--line); margin: 32px 0; }

/* 侧栏 */
.side {
  position: sticky;
  top: 76px;
  padding: 26px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
}

.sideTitle {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 900;
}

.sideTitle span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--neon);
  color: #fff;
}

.sideList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.sideList a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 200ms ease;
}

.sideList a:hover,
.sideList a:focus-visible { background: var(--violet); }

/* 页脚 */
.foot {
  margin-top: 24px;
  padding: 52px clamp(16px, 4vw, 48px) 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  background: var(--ink);
  color: #efe9ff;
  border-top: 8px solid var(--neon);
}

.foot h2 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .12em;
}

.foot h2 span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
}

.footHost {
  margin: 0;
  font-size: 17px;
  word-break: break-all;
  color: #cbbff0;
}

.subForm { display: grid; gap: 10px; }

.subForm input {
  font: inherit;
  min-height: 46px;
  padding: 11px 14px;
  border: 2px solid rgba(255, 255, 255, .26);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.subForm input::placeholder { color: #b5a8d8; }

.subForm button {
  font: inherit;
  font-weight: 900;
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--neon);
  color: #fff;
  cursor: pointer;
  transition: background 200ms ease;
}

.subForm button:hover { background: var(--violet); }
.subMsg { margin: 0; font-size: 16px; color: #d8c9ff; }

.foot nav dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.foot dt, .foot dd { margin: 0; }

.foot nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 200ms ease;
}

.foot nav a:hover,
.foot nav a:focus-visible { background: var(--violet); }

.footBar {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, .16);
  text-align: center;
}

.footBar p { margin: 0; font-size: 16px; color: #b9abdd; }

/* 回到顶部 */
.toTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 14px 30px -14px rgba(28, 23, 38, .9);
  transition: opacity 240ms ease, background 200ms ease;
}

.toTop.on { opacity: 1; pointer-events: auto; }
.toTop:hover { background: var(--neon); }

/* 动效 */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 300ms ease, transform 300ms ease;
}

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

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

@media (max-width: 960px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .side { position: static; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot nav dl { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .masthead { grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; }
  .brand { grid-column: 1 / -1; order: -1; }
  .railA { justify-content: flex-start; }
  .railB { justify-content: flex-end; }
  .rail a { padding: 9px 11px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-top: 34px; }
  .heroArt { max-height: 36vh; }
  .doc { padding: 20px 16px; border-radius: 22px; }
  .doc .docBody > div { padding: 30px 0; }
  .foot { padding: 36px 16px 20px; }
  .foot nav dl { grid-template-columns: minmax(0, 1fr); }
  .side { padding: 22px 18px; }
}

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