@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');

:root {
  --v: #6514ff;
  --m: #bf00ff;
  --ink: #1c1726;
  --paper: #f5f1ff;
  --rail: 56px;
  --ease: 240ms cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-left: var(--rail);
  background: var(--ink);
  color: #f3eeff;
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(101, 20, 255, .5), transparent 45%),
    radial-gradient(circle at 86% 76%, rgba(191, 0, 255, .38), transparent 48%),
    radial-gradient(circle at 60% 4%, rgba(101, 20, 255, .3), transparent 42%);
  filter: blur(14px);
  animation: drift 22s ease-in-out infinite alternate;
}

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

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

/* ---------- 左侧固定栏 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 16px;
  background: rgba(20, 16, 30, .86);
  border-right: 1px solid rgba(191, 0, 255, .28);
  backdrop-filter: blur(10px);
}

.brand {
  display: block;
  width: 100%;
  padding: 16px 0;
  text-align: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 17px;
  letter-spacing: .14em;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff, var(--m));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-height: 44px;
}

.brand:hover { filter: brightness(1.2); }

.burger {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 16px;
  background: rgba(101, 20, 255, .25);
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform var(--ease);
}

.burger span:first-child { margin-bottom: 5px; }
.burger span:last-child { margin-top: 5px; }
.burger:hover { background: var(--v); border-color: var(--m); }

body.open .burger { background: var(--m); }
body.open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); margin-bottom: 0; }
body.open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); margin-top: 0; }

/* ---------- 全屏菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 72px 20px 72px calc(var(--rail) + 16px);
  background:
    radial-gradient(circle at 20% 25%, rgba(101, 20, 255, .48), transparent 52%),
    radial-gradient(circle at 80% 78%, rgba(191, 0, 255, .4), transparent 55%),
    var(--ink);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity 280ms ease, visibility 280ms ease;
}

body.open .menu { opacity: 1; visibility: visible; }

.menu p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  justify-content: center;
  max-width: 780px;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: clamp(20px, 4.4vw, 30px);
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.menu a:hover,
.menu a:focus-visible {
  background: linear-gradient(100deg, var(--v), var(--m));
  border-color: transparent;
  transform: translateY(-3px);
}

body.open { overflow: hidden; }

/* ---------- 主体 ---------- */
.main,
.foot,
.rail { position: relative; }

.main {
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 44px) clamp(40px, 8vw, 80px);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 26px;
  padding: clamp(56px, 9vh, 92px) 0 clamp(48px, 8vh, 72px);
}

.hero-copy { order: -1; text-align: center; }

.hero-copy h1 {
  margin: 0 0 16px;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: clamp(38px, 9.4vw, 84px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: .01em;
  background: linear-gradient(120deg, #ffffff 30%, #e3c9ff 55%, var(--m));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 auto 26px;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.7;
  color: #d6cbe9;
  text-wrap: pretty;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--v), var(--m));
  color: #fff;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  box-shadow: 0 16px 40px -18px rgba(191, 0, 255, .95);
  transition: transform var(--ease), filter var(--ease);
}

.cta:hover { transform: translateY(-3px); filter: brightness(1.12); }

.hero-fig {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--v), var(--m) 62%, #2b0b52);
  box-shadow: 0 40px 80px -46px rgba(101, 20, 255, .95);
}

.hero-img { width: 100%; height: 100%; object-fit: cover; }

.fig-orb {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  animation: bob 9s ease-in-out infinite alternate;
}

@keyframes bob {
  from { transform: translateY(0) }
  to { transform: translateY(-18px) }
}

/* ---------- 浮动徽章 ---------- */
.badge {
  position: static;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(28, 23, 38, .82);
  border: 1px solid rgba(191, 0, 255, .45);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .95);
}

.badge small {
  font-size: 16px;
  letter-spacing: .12em;
  color: #cbb4f7;
  line-height: 1;
}

.badge h2 {
  margin: 0;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}

.pulse {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--m);
  box-shadow: 0 0 0 0 rgba(191, 0, 255, .8);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(191, 0, 255, .8); }
  70% { box-shadow: 0 0 0 12px rgba(191, 0, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(191, 0, 255, 0); }
}

/* ---------- 正文区块 ---------- */
.main > section { scroll-margin-top: 28px; }

.main > section:not(.hero) {
  max-width: 900px;
  margin: clamp(26px, 6vw, 56px) auto;
  padding: clamp(22px, 5vw, 52px);
  border-radius: 28px;
  background: var(--paper);
  color: #241a35;
  box-shadow: 0 30px 70px -44px rgba(0, 0, 0, .95);
  animation: rise .55s cubic-bezier(.2, .7, .3, 1) both;
}

.main > section:not(.hero):nth-of-type(even) {
  background: linear-gradient(150deg, #2b1f46, #1c1726);
  color: #eee6ff;
}

.main > section:not(.hero):nth-of-type(3) { animation-delay: .06s; }
.main > section:not(.hero):nth-of-type(4) { animation-delay: .12s; }
.main > section:not(.hero):nth-of-type(5) { animation-delay: .18s; }
.main > section:not(.hero):nth-of-type(6) { animation-delay: .24s; }
.main > section:not(.hero):nth-of-type(7) { animation-delay: .3s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.main > section small {
  display: block;
  margin: 0 0 6px;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--v);
}

.main > section:nth-of-type(even) small { color: #d09bff; }

.main > section h2 {
  margin: 0 0 .62em;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: clamp(26px, 4.6vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: .01em;
  text-wrap: balance;
}

.main > section h3 {
  margin: 1.5em 0 .5em;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.2;
  font-weight: 600;
}

.main > section p { margin: 0 0 1.05em; }
.main > section p:last-child { margin-bottom: 0; }

.main > section a {
  color: #4c0bd6;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.main > section:nth-of-type(even) a { color: #d9bcff; }

.main > section ul,
.main > section ol { margin: 0 0 1.1em; padding-left: 1.3em; }

.main > section li { margin-bottom: .45em; }

.main > section figure { margin: 1.2em 0; }
.main > section figure img { border-radius: 20px; }

.main > section blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--m);
  font-size: 17px;
}

.main > section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1em 0;
  font-size: 16px;
}

.main > section th,
.main > section td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(120, 90, 190, .3);
  text-align: left;
}

/* ---------- 页脚 ---------- */
.foot {
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) clamp(14px, 4vw, 44px) 44px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
}

.foot-mark {
  margin: 0;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: clamp(38px, 10vw, 76px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(100deg, #ffffff, var(--m));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot small { font-size: 16px; color: #b6a7d2; }

/* ---------- 断点 ---------- */
@media (min-width: 720px) {
  :root { --rail: 76px; }
  .brand { font-size: 19px; }
}

@media (min-width: 900px) {
  :root { --rail: 88px; }

  .hero {
    grid-template-columns: 1.02fr 1fr;
    align-items: center;
    gap: 52px;
  }

  .hero-copy { order: 0; text-align: center; }

  .badge {
    position: absolute;
    left: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 18px;
    align-self: start;
  }

  .pulse { margin-bottom: 6px; }

  .menu { padding-left: calc(var(--rail) + 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .fig-orb,
  .pulse,
  .main > section:not(.hero) { animation: none !important; }
  .cta, .menu a, .burger { transition: none; }
}

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