:root {
  --ink: #1c1726;
  --violet: #6514ff;
  --magenta: #bf00ff;
  --pink: #ff3ea5;
  --mint: #7dfcc4;
  --paper: #f7f1ff;
  --bg: #100c17;
  --line: rgba(247, 241, 255, 0.16);
  --soft: rgba(247, 241, 255, 0.05);
  --r: 4px;
  --pad: clamp(18px, 4vw, 46px);
  --shadow: 0 22px 46px -26px rgba(101, 20, 255, 0.85);
}
*,
*::before,
*::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: 'Baloo 2', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(114deg, rgba(101, 20, 255, 0.18) 0 2px, transparent 2px 28px),
    radial-gradient(58% 46% at 82% 4%, rgba(191, 0, 255, 0.32), transparent 72%),
    radial-gradient(52% 42% at 8% 34%, rgba(101, 20, 255, 0.26), transparent 74%);
  animation: drift 26s linear infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0.001deg); }
  to { transform: translate3d(-28px, 22px, 0) rotate(0.001deg); }
}
img { max-width: 100%; height: auto; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 页头 */
.top {
  position: relative;
  z-index: 3;
  padding: 16px var(--pad) 0;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 12, 23, 0.92), rgba(16, 12, 23, 0.35));
}
.brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 22px 6px 6px;
  text-decoration: none;
  color: var(--paper);
  font-weight: 700;
  font-size: clamp(19px, 2.6vw, 25px);
  letter-spacing: 0.01em;
  background: linear-gradient(102deg, rgba(101, 20, 255, 0.5), rgba(191, 0, 255, 0.14));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: background 240ms ease, color 240ms ease;
}
.brand:hover {
  background: var(--paper);
  color: var(--ink);
}
.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 2px;
  background: var(--magenta);
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}
.logoimg {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: cover;
  border-radius: 2px;
}
.q {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: rgba(247, 241, 255, 0.06);
}
.q input {
  width: min(44vw, 180px);
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--paper);
  font: inherit;
}
.q input::placeholder { color: rgba(247, 241, 255, 0.55); }
.q button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 2px;
  background: var(--violet);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.q button:hover { background: var(--mint); color: var(--ink); }
.menuline {
  margin-top: 12px;
  padding-bottom: 12px;
}
.drawer > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.drawer > summary::-webkit-details-marker { display: none; }
.drawer > summary::before {
  content: '';
  width: 18px;
  height: 12px;
  background: linear-gradient(var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 7px, transparent 7px 10px, var(--ink) 10px 12px);
}
.drawer[open] > summary { background: var(--magenta); }
.menu {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 6px 14px;
  text-decoration: none;
  color: var(--paper);
  font-weight: 600;
  background: rgba(247, 241, 255, 0.05);
  border-left: 3px solid transparent;
  border-radius: 2px;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.menu a:hover,
.menu a:focus-visible {
  background: var(--magenta);
  color: #140d1d;
  border-left-color: var(--mint);
}
.menu .idx {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--pink);
}
.menu a:hover .idx { color: #140d1d; }

/* 首屏 */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  align-content: end;
  justify-items: end;
  padding: clamp(28px, 9vh, 96px) var(--pad) clamp(64px, 11vh, 128px);
  overflow: hidden;
  background: linear-gradient(198deg, rgba(101, 20, 255, 0.55), rgba(191, 0, 255, 0.24) 48%, rgba(16, 12, 23, 0.92));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 66px), calc(100% - 66px) 100%, 0 100%);
}
.hero-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, calc(var(--p, 0) * 1px), 0);
}
.hero-deco span { position: absolute; display: block; }
.hero-deco span:nth-child(1) {
  width: min(40vw, 330px);
  aspect-ratio: 1;
  top: 9%;
  left: 5%;
  border: 2px solid rgba(247, 241, 255, 0.4);
  background: linear-gradient(142deg, rgba(101, 20, 255, 0.9), transparent 72%);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}
.hero-deco span:nth-child(2) {
  width: min(22vw, 176px);
  aspect-ratio: 1;
  top: 28%;
  right: 7%;
  background: var(--magenta);
  opacity: 0.9;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%, 0 28%);
  animation: bob 9s ease-in-out infinite;
}
.hero-deco span:nth-child(3) {
  width: min(32vw, 250px);
  height: 16px;
  bottom: 24%;
  left: 10%;
  background: repeating-linear-gradient(90deg, var(--mint) 0 10px, transparent 10px 24px);
  opacity: 0.85;
}
.hero-deco span:nth-child(4) {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  top: 54%;
  left: 46%;
  background: var(--pink);
  box-shadow: 0 0 0 10px rgba(255, 62, 165, 0.16);
  animation: bob 7s ease-in-out infinite reverse;
}
@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -18px, 0); }
}
.hero-body {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin-left: auto;
  text-align: right;
  transform: translate3d(0, calc(var(--hp, 0) * 1px), 0);
}
.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(44px, 11.4vw, 138px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 12px 44px rgba(16, 12, 23, 0.7);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid rgba(247, 241, 255, 0.45);
  border-radius: 999px;
  background: rgba(16, 12, 23, 0.55);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.chips a:hover,
.chips a:focus-visible {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}

/* 主体：左侧边栏 + 正文 */
.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 246px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--pad);
}
.rail-box {
  position: sticky;
  top: 22px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: rgba(247, 241, 255, 0.06);
  box-shadow: var(--shadow);
}
.rail small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--pink);
}
.rail h2 {
  margin: 2px 0 14px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.rail-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 8px;
  border-left: 2px solid rgba(191, 0, 255, 0.4);
  color: rgba(247, 241, 255, 0.85);
  font-size: 16px;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.rail-list a:hover,
.rail-list a:focus-visible {
  background: rgba(191, 0, 255, 0.2);
  border-left-color: var(--mint);
  color: #fff;
}
.rail-list b {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--pink);
}

/* 正文块 */
.doc { min-width: 0; }
.doc > div {
  padding: clamp(22px, 4vw, 46px);
  margin: 0 0 clamp(30px, 4.5vw, 54px);
  border-top: 3px solid var(--violet);
  border-radius: var(--r);
  background: var(--soft);
  box-shadow: var(--shadow);
  scroll-margin-top: 92px;
}
.doc > div:nth-of-type(even) {
  border-top-color: var(--magenta);
  background: rgba(191, 0, 255, 0.08);
}
.doc h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.012em;
}
.doc h3 {
  margin: 28px 0 10px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  color: var(--mint);
}
.doc small {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--pink);
}
.doc p {
  margin: 0 0 16px;
  color: rgba(247, 241, 255, 0.92);
}
.doc a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc a:hover { color: var(--pink); }
.doc ul,
.doc ol {
  margin: 0 0 18px;
  padding-left: 1.25em;
}
.doc li { margin-bottom: 8px; }
.doc strong { color: #fff; }
.doc blockquote {
  margin: 0 0 18px;
  padding: 14px 20px;
  border-left: 4px solid var(--magenta);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(191, 0, 255, 0.14);
}
.doc blockquote p:last-child { margin-bottom: 0; }
.doc img {
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.doc th,
.doc td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc th { color: var(--pink); }

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(44px, 7vw, 92px);
  padding: clamp(56px, 7vw, 80px) var(--pad) 24px;
  border-top: 3px solid var(--magenta);
  background: linear-gradient(180deg, rgba(101, 20, 255, 0.26), rgba(16, 12, 23, 0.98));
  clip-path: polygon(0 52px, 52px 0, 100% 0, 100% 100%, 0 100%);
}
.foot-top,
.foot-cols,
.foot-bottom {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 38px;
}
.foot-brand {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sub label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--pink);
}
.sub input {
  width: min(58vw, 220px);
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: rgba(16, 12, 23, 0.65);
  color: var(--paper);
  font: inherit;
}
.sub input::placeholder { color: rgba(247, 241, 255, 0.5); }
.sub button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r);
  background: var(--magenta);
  color: #140d1d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.sub button:hover { background: var(--mint); }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}
.foot-cols dl { margin: 0; }
.foot-cols dt {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--pink);
}
.foot-cols dd {
  margin: 0;
  color: rgba(247, 241, 255, 0.85);
}
.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: rgba(247, 241, 255, 0.85);
  text-decoration: none;
  transition: color 200ms ease;
}
.foot-cols a:hover,
.foot-cols a:focus-visible { color: var(--mint); }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.foot-bottom p { margin: 0; }
.foot-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--mint);
  text-decoration: none;
}
.foot-bottom a:hover { color: var(--pink); }

/* 滚动显现 */
@media (prefers-reduced-motion: no-preference) {
  .js .doc > div {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 480ms ease, transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .js .doc > div.in {
    opacity: 1;
    transform: none;
  }
}

/* 窄屏 */
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail-box { position: static; }
  .rail h2 { font-size: 20px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .menu { flex-direction: column; }
  .menu a { width: 100%; }
  .hero { min-height: 92svh; }
  .hero-deco span:nth-child(1) { top: 12%; left: 4%; width: 46vw; }
  .hero-deco span:nth-child(2) { width: 30vw; top: 32%; }
}
@media (max-width: 520px) {
  .q input { width: 100%; }
  .q { flex: 1 1 100%; order: 3; }
  .hero h1 { font-size: clamp(40px, 13vw, 62px); }
  .chips a { padding: 0 14px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .hero-deco span,
  .js .doc > div { animation: none; transition: none; opacity: 1; transform: none; }
}

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