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

:root {
  --pink: #ff0080;
  --magenta: #ff00ff;
  --ink: #26171f;
  --bg: #140a11;
  --paper: #fff2f9;
  --muted: #e6c8dc;
  --r: 18px;
  --font-h: "Fredoka", "Nunito", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-b: "Nunito", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  padding-bottom: 88px;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-b);
  font-size: 1.06rem;
  line-height: 1.75;
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 40% at 18% 22%, rgba(255, 0, 128, 0.85), transparent 66%),
    radial-gradient(44% 44% at 80% 14%, rgba(255, 0, 255, 0.7), transparent 70%),
    radial-gradient(52% 52% at 62% 84%, rgba(122, 43, 255, 0.72), transparent 72%),
    radial-gradient(34% 34% at 10% 80%, rgba(255, 106, 61, 0.55), transparent 70%);
  filter: blur(72px) saturate(135%);
  animation: aurora 26s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 76%);
}

@keyframes aurora {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.02) rotate(0deg);
  }
  50% {
    transform: translate3d(3%, 2%, 0) scale(1.1) rotate(3deg);
  }
  100% {
    transform: translate3d(-3%, 3%, 0) scale(1.05) rotate(-2deg);
  }
}

@keyframes slide {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 300% 0;
  }
}

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

/* 顶部细条 */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ticker__band {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ff0080, #ff00ff, #7a2bff, #ff6a3d, #ff0080);
  background-size: 300% 100%;
  animation: slide 14s linear infinite;
}

.ticker__txt {
  position: relative;
  margin: 0;
  padding: 0.34rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #2b0a1c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 品牌独占一行 */
.masthead {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin-inline: auto;
  padding: 1.5rem 1.2rem 0.2rem;
}

.brand {
  display: inline-block;
  font-family: var(--font-h);
  font-size: clamp(1.95rem, 7.4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(100deg, #ffffff, #ff9dd7 46%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.brand:hover,
.brand:focus-visible {
  filter: hue-rotate(-25deg) saturate(140%);
  transform: translateY(-2px);
}

/* 主栅格：左栏导航 + 右侧正文 */
.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 1.2rem 1rem;
}

.main {
  min-width: 0;
}

/* 左栏 */
.rail {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100svh;
  overflow-y: auto;
  padding: 1.6rem 0.2rem 2rem;
}

.rail__h {
  margin: 0 0 0.5rem;
  font-family: var(--font-h);
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  color: #ffb8dd;
}

.rail__h > span {
  display: inline-block;
  border-bottom: 2px solid rgba(255, 0, 128, 0.55);
  padding-bottom: 0.2rem;
}

.rail__nav ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.rail__a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border-radius: 14px;
  color: var(--paper);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  transition: background 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.rail__a:hover,
.rail__a:focus-visible {
  background: linear-gradient(100deg, rgba(255, 0, 128, 0.55), rgba(255, 0, 255, 0.32));
  transform: translateX(3px);
  color: #fff;
}

.rail__brand {
  margin: 0;
  font-family: var(--font-h);
  font-size: 1rem;
  color: var(--muted);
}

/* 展开成全屏遮罩 */
.rail.is-open {
  position: fixed;
  inset: 0;
  z-index: 50;
  max-height: none;
  overflow-y: auto;
  padding: 4.6rem 1.5rem 6.5rem;
  background: rgba(20, 10, 17, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.rail.is-open .rail__nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.6rem;
  max-width: 800px;
}

.rail.is-open .rail__a {
  min-height: 56px;
  font-size: 1.12rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body.lock {
  overflow: hidden;
}

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: clamp(470px, 84svh, 860px);
  padding: 1.6rem 0 3.4rem;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.3rem;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--magenta), #7a2bff, transparent);
  transform: skewY(-1.6deg);
  opacity: 0.9;
}

.hero__copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-h);
  font-size: clamp(2.15rem, 5.6vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  background: linear-gradient(96deg, #ffffff, #ffb3dd 42%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero__fig {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  background: conic-gradient(from 20deg at 50% 50%, #ff0080, #ff00ff, #7a2bff, #ff6a3d, #ff0080);
  box-shadow: 0 30px 60px -34px rgba(255, 0, 128, 0.7);
}

.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 正文 */
.doc {
  padding: 0.4rem 0 2.5rem;
}

.doc > div:not(.hero) {
  margin-bottom: 1.7rem;
  padding: 1.6rem 1.4rem;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(38, 23, 31, 0.78), rgba(38, 23, 31, 0.46));
  scroll-margin-top: 1.6rem;
  box-shadow: 0 22px 44px -36px #000;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doc > div:not(.hero):hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -32px rgba(255, 0, 128, 0.6);
}

.doc h2,
.doc h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-h);
  line-height: 1.28;
  background: linear-gradient(95deg, #ffffff, #ffc2e4 46%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.doc h2 {
  font-size: clamp(1.34rem, 2.7vw, 1.8rem);
}

.doc h3 {
  font-size: clamp(1.14rem, 2.2vw, 1.42rem);
}

.doc h2 > span,
.doc h3 > span {
  display: inline-block;
}

.doc h2 > span::after {
  content: "";
  display: block;
  width: 66px;
  height: 4px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--magenta));
}

.doc p {
  margin: 0 0 0.95rem;
  color: #f6dcea;
}

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

.doc ul,
.doc ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #f1d3e4;
}

.doc li {
  margin-bottom: 0.45rem;
}

.doc li::marker {
  color: var(--magenta);
}

.doc a {
  color: #ff9fd0;
  text-underline-offset: 3px;
}

.doc a:hover {
  color: #fff;
}

.doc img {
  border-radius: 14px;
  margin: 0.4rem 0 1rem;
}

.doc blockquote {
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--pink);
  color: var(--muted);
}

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 2.6rem 1.2rem 2rem;
}

.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--magenta), #7a2bff, transparent);
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 1.4rem;
  max-width: 1180px;
  margin: 0 auto 1.4rem;
}

.foot__col {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.foot__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.foot__col a:hover,
.foot__col a:focus-visible {
  color: #fff;
  transform: translateX(3px);
}

.foot__brand {
  align-self: end;
  text-align: right;
  font-family: var(--font-h);
  font-size: clamp(1.9rem, 6.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--pink), var(--magenta) 52%, #7a2bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot__copy {
  display: block;
  max-width: 1180px;
  margin-inline: auto;
  color: #cba9c0;
  font-size: 1rem;
}

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(24, 12, 20, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 0, 128, 0.3);
}

.dock__home {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.3rem 0;
  font-family: var(--font-h);
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock__btn {
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-b);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(100deg, var(--pink), var(--magenta));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.dock__btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.dock__btn:hover,
.dock__btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 22px -12px rgba(255, 0, 128, 0.9);
}

.rail__a:focus-visible,
.dock__btn:focus-visible,
.foot__col a:focus-visible,
.brand:focus-visible {
  outline: 2px solid #ffd0ea;
  outline-offset: 2px;
}

/* 窄屏 */
@media (max-width: 860px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-inline: 1rem;
  }

  .rail {
    position: fixed;
    inset: 0;
    z-index: 50;
    max-height: none;
    overflow-y: auto;
    padding: 4.6rem 1.4rem 6.5rem;
    background: rgba(20, 10, 17, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateY(100%);
    transition: transform 0.34s ease;
    visibility: hidden;
  }

  .rail.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    min-height: 0;
    padding: 1.4rem 0 2.6rem;
  }

  .hero__fig {
    aspect-ratio: 5 / 4;
  }

  .doc > div:not(.hero) {
    padding: 1.3rem 1.1rem;
  }

  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1.2rem;
  }

  .foot__brand {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (min-width: 861px) {
  .rail.is-open {
    transform: none;
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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