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

:root {
  --ink: #26171f;
  --pink: #ff0080;
  --mag: #ff00ff;
  --bg: #180e14;
  --paper: #24151e;
  --text: #f7e9f1;
  --muted: #c9a4b7;
  --line: rgba(255, 0, 128, 0.22);
  --edge: linear-gradient(90deg, #ff0080, #ff00ff, #8a2be2);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  padding-bottom: 96px;
  font-family: Epilogue, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -2;
  background:
    radial-gradient(42% 36% at 16% 18%, rgba(255, 0, 128, 0.55), transparent 66%),
    radial-gradient(38% 34% at 84% 12%, rgba(255, 0, 255, 0.45), transparent 62%),
    radial-gradient(48% 42% at 74% 86%, rgba(122, 0, 255, 0.38), transparent 66%),
    radial-gradient(36% 32% at 22% 82%, rgba(255, 110, 0, 0.26), transparent 64%),
    conic-gradient(from 210deg at 50% 50%, #26171f, #3d1230, #1c1018, #26171f);
  filter: saturate(1.25) blur(8px);
  animation: aurora 28s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 64px);
  mix-blend-mode: screen;
}

@keyframes aurora {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1.2) hue-rotate(0deg) blur(8px);
  }
  50% {
    transform: translate3d(2%, -3%, 0) scale(1.07);
    filter: saturate(1.35) hue-rotate(24deg) blur(8px);
  }
  100% {
    transform: translate3d(-3%, 2%, 0) scale(1.03);
    filter: saturate(1.15) hue-rotate(-16deg) blur(8px);
  }
}

a {
  color: #ffb3d9;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mag);
  outline-offset: 3px;
}

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

/* 顶栏：角落品牌图标 */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 18px;
  background: linear-gradient(180deg, rgba(24, 14, 20, 0.92), rgba(24, 14, 20, 0));
  pointer-events: none;
}

.topbar a {
  pointer-events: auto;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 255, 0.4);
  background: #1a0f16;
  color: var(--pink);
  font-family: Anton, Impact, sans-serif;
  font-size: 20px;
  flex: 0 0 auto;
}

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

.brand-word {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* 全屏遮罩菜单 */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 100px;
  background:
    radial-gradient(70% 50% at 82% 0%, rgba(255, 0, 255, 0.35), transparent 70%),
    radial-gradient(70% 60% at 8% 100%, rgba(255, 0, 128, 0.4), transparent 70%),
    #190e15;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.menu-name {
  font-family: Anton, Impact, sans-serif;
  font-size: 17px;
  letter-spacing: 0.16em;
  color: #ffd6ec;
}

.menu-close {
  appearance: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 255, 0.5);
  background: rgba(255, 0, 128, 0.14);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.menu-nav {
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-nav a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 4px;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(23px, 6vw, 38px);
  line-height: 1.2;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding-left 0.2s ease, color 0.2s ease;
}

.menu-nav a:hover {
  color: #ff9ccf;
  padding-left: 14px;
}

/* 主体 */
.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 18px 36px;
}

.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  flex-wrap: wrap;
  padding: 34px 18px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(88% 120% at 50% 0%, rgba(255, 0, 128, 0.24), transparent 72%),
    rgba(30, 18, 25, 0.55);
}

.hero::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -90px;
  top: -140px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 0, 128, 0.5), rgba(255, 0, 255, 0.35), transparent 70%);
  filter: blur(18px);
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--edge);
}

.hero-fig {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
}

.hero-fig--empty {
  width: 0;
}

.hero-art {
  width: clamp(76px, 12vw, 116px);
  height: auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 255, 0.5);
  box-shadow: 0 0 46px rgba(255, 0, 128, 0.5);
  animation: bob 7s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-7px);
  }
}

.hero-copy {
  position: relative;
  flex: 1 1 280px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: #ffd0e8;
  border: 1px solid rgba(255, 0, 255, 0.5);
  background: rgba(255, 0, 128, 0.18);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

h1 {
  margin: 14px 0 10px;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 7.4vw, 66px);
  line-height: 1.07;
  letter-spacing: 0.01em;
  background: linear-gradient(96deg, #ffffff 8%, #ff8ec8 46%, #ff00ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-brand {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: #e9b9d2;
}

/* 内容 + 右侧栏 */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(20px, 3vw, 38px);
  margin-top: 34px;
  align-items: start;
}

.doc {
  min-width: 0;
}

.doc > section {
  position: relative;
  scroll-margin-top: 96px;
  padding: 38px 0 44px;
  border-top: 1px solid var(--line);
}

.doc > section:first-child {
  border-top: 0;
  padding-top: 6px;
}

.doc > section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 68px;
  height: 3px;
  border-radius: 3px;
  background: var(--edge);
}

.doc :is(h2, h3, h4) {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.22;
}

.doc h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 4vw, 34px);
  color: #ffd9ec;
}

.doc h3 {
  margin: 26px 0 10px;
  font-size: clamp(19px, 3vw, 24px);
  color: #ffc6e2;
}

.doc h2 + p,
.doc h3 + p {
  margin-top: 0;
}

.doc p {
  margin: 0 0 1em;
  color: #f2dfe9;
}

.doc ul,
.doc ol {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

.doc li {
  margin: 0.32em 0;
}

.doc a {
  border-bottom: 1px solid rgba(255, 0, 255, 0.5);
}

.doc blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--pink);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 0, 128, 0.1);
}

.doc figure {
  margin: 22px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--pink);
}

.doc figure img {
  width: 100%;
}

.doc figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(24, 14, 20, 0.6);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

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

/* 右侧栏 */
.side {
  position: sticky;
  top: 84px;
  padding: 18px 18px 10px;
  border-radius: 10px;
  background: rgba(36, 21, 30, 0.82);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--pink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.side:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(255, 0, 128, 0.18);
}

.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #ff8ec8;
}

.side-title {
  margin: 4px 0 10px;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #ffffff;
}

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

.side nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 2px 0;
  font-size: 15px;
  color: #f0d5e3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.side nav a:hover {
  color: #ffffff;
  padding-left: 6px;
}

.to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  font-size: 14px;
  color: #ff9ccf;
  border-top: 1px solid var(--line);
}

/* 页脚 */
.foot {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 32px 18px 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 0, 128, 0.1), transparent 46%);
}

.foot h3 {
  margin: 0 0 10px;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: #ff9ccf;
}

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

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
  font-size: 15px;
}

.foot-brand p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 255, 0.4);
  background: #1a0f16;
  color: var(--pink);
  font-family: Anton, Impact, sans-serif;
  font-size: 20px;
}

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

.sub-form {
  display: grid;
  gap: 8px;
}

.foot-sub label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.sub-form input {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #1a1017;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
}

.sub-form button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, #ff0080, #ff00ff);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.sub-form button:hover {
  filter: brightness(1.12);
}

.foot-bottom {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.foot-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(22, 13, 18, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transition: transform 0.32s ease;
}

.dock--up {
  transform: translateY(115%);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 255, 0.5);
  background: rgba(255, 0, 128, 0.14);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.menu-btn span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: #ff7ec2;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #ff7ec2;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.dock-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: linear-gradient(100deg, #ff0080, #ff00ff);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(255, 0, 128, 0.35);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.dock-cta:hover {
  color: #ffffff;
  filter: brightness(1.12);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    margin-top: 8px;
  }

  .foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 104px;
  }

  .shell {
    padding: 78px 15px 28px;
  }

  .hero {
    min-height: 42vh;
    padding: 26px 14px 30px;
  }

  .menu-btn {
    padding: 0 14px;
  }

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

  .foot-bottom {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

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