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

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

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --deep: #1a0e10;
  --paper: #f8eef0;
  --soft: #f0dde1;
  --muted: #c9aeb4;
  --card: rgba(58, 33, 37, 0.66);
  --line: rgba(255, 20, 147, 0.24);
  --radius: 10px;
  --shadow: 0 22px 46px -26px rgba(255, 20, 147, 0.6), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--deep);
  color: var(--paper);
  font-family: "Rubik", "Outfit", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(255, 0, 0, 0.62), transparent 62%),
    radial-gradient(44% 40% at 80% 14%, rgba(255, 20, 147, 0.58), transparent 64%),
    radial-gradient(52% 48% at 62% 82%, rgba(255, 0, 0, 0.34), transparent 70%),
    radial-gradient(42% 44% at 22% 86%, rgba(255, 20, 147, 0.36), transparent 68%);
  background-size: 200% 200%;
  filter: blur(48px) saturate(1.25);
  animation: aurora 11s ease-in-out infinite alternate;
  opacity: 0.92;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 92% at 50% 0%, rgba(26, 14, 16, 0.34), rgba(26, 14, 16, 0.87) 76%);
}

@keyframes aurora {
  0% {
    background-position: 0% 0%;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.06);
  }
  100% {
    background-position: 100% 100%;
    transform: translate3d(-2%, 2%, 0) scale(1.04);
  }
}

.topbar,
main,
.foot {
  position: relative;
  z-index: 2;
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(30, 16, 18, 0.8);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

.brand-mark img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: cover;
}

.brand-name {
  font-family: "Outfit", "Rubik", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  background: linear-gradient(96deg, var(--red), var(--pink) 60%, #ffc0dc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.menu {
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: thin;
}

.menu p {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 2px 0;
  white-space: nowrap;
}

.menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--soft);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.menu a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--red), var(--pink));
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.8);
}

.menu a:hover,
.menu a:focus-visible {
  color: #fff;
  background: rgba(255, 20, 147, 0.16);
}

.find {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
}

.find-in {
  width: 118px;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline-offset: 2px;
}

.find-in::placeholder {
  color: var(--muted);
}

.find-go {
  min-height: 44px;
  padding: 8px 15px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--red), var(--pink));
  cursor: pointer;
  box-shadow: 0 10px 22px -14px rgba(255, 0, 0, 0.9);
}

/* 首屏 */
.hero-band {
  padding: 0 clamp(14px, 4vw, 40px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(18px, 4vw, 46px);
  max-width: 1120px;
  min-height: 68vh;
  margin: 0 auto;
  padding: clamp(26px, 6vh, 62px) 0;
}

.hero-copy {
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 4px 14px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #ffd7e8;
  border: 1px solid rgba(255, 20, 147, 0.45);
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.12);
  box-shadow: 0 0 26px -8px rgba(255, 20, 147, 0.9);
}

.chip-txt {
  display: inline-block;
  animation: rise 0.6s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.hero h1 {
  margin: 0 0 16px;
  font-family: "Outfit", "Rubik", sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
  background: linear-gradient(100deg, #ffffff, #ffc9de 45%, #ff1493);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-art-box {
  justify-self: end;
  width: 100%;
  max-width: 320px;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  filter: saturate(1.15) drop-shadow(0 24px 42px rgba(255, 0, 0, 0.35));
}

svg.hero-art {
  background: radial-gradient(72% 72% at 50% 42%, rgba(255, 20, 147, 0.22), transparent 70%);
}

.orb {
  transform-origin: 160px 160px;
  animation: morph 9s ease-in-out infinite alternate;
}

.orb-b {
  animation-duration: 12s;
  animation-direction: alternate-reverse;
}

@keyframes morph {
  from {
    transform: scale(0.94) translate(0, 0);
  }
  to {
    transform: scale(1.09) translate(6px, -8px);
  }
}

/* 正文与侧栏 */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: start;
  gap: clamp(20px, 3.5vw, 42px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 40px) clamp(40px, 7vw, 76px);
}

.col-main {
  min-width: 0;
  padding: clamp(20px, 3.6vw, 38px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prose {
  counter-reset: sec;
  min-width: 0;
  overflow-wrap: break-word;
}

.prose section[id] {
  counter-increment: sec;
  scroll-margin-top: 124px;
}

.prose section + section {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.prose h2 {
  margin: 0 0 0.85rem;
  font-family: "Outfit", "Rubik", sans-serif;
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  line-height: 1.34;
}

.prose h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 0.3rem;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--pink);
}

.prose h2 span {
  background: linear-gradient(96deg, #ffffff, #ffb7d5 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose h3 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.16rem;
  line-height: 1.45;
  color: #ffe3ee;
}

.prose h3 span {
  border-bottom: 2px solid rgba(255, 20, 147, 0.55);
  padding-bottom: 2px;
}

.prose p {
  margin: 0 0 1.05em;
  color: #f2e2e5;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose a {
  color: #ffb0d2;
  text-decoration: underline;
  text-decoration-color: rgba(255, 176, 210, 0.5);
  text-underline-offset: 3px;
}

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

.prose strong {
  color: #fff;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 0.85em 1.1em;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 20, 147, 0.1);
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

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

.prose th,
.prose td {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(255, 20, 147, 0.12);
}

.prose hr {
  margin: 1.8rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* 侧栏 */
.col-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 18px;
  background: rgba(48, 27, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.side-card h2 {
  margin: 0 0 10px;
  font-family: "Outfit", "Rubik", sans-serif;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: #ffd0e2;
}

.side-card h2 span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--pink);
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 4px;
  font-size: 16px;
  color: var(--soft);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
}

.side-list li:last-child a {
  border-bottom: 0;
}

.side-list a:hover,
.side-list a:focus-visible {
  color: #fff;
  padding-left: 8px;
  transition: padding 0.2s ease, color 0.2s ease;
}

.side-brand {
  margin: 0;
  font-family: "Outfit", "Rubik", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffd0e2;
}

/* 回到顶部 */
.totop {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--red), var(--pink));
  box-shadow: 0 16px 28px -16px rgba(255, 0, 0, 0.95);
}

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding: clamp(18px, 4vw, 34px) clamp(14px, 4vw, 40px);
  border-top: 1px solid var(--line);
  background: rgba(24, 13, 15, 0.82);
}

.foot-brand {
  flex: 0 0 auto;
}

.foot-big {
  display: inline-block;
  font-family: "Outfit", "Rubik", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 5.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--red), var(--pink) 60%, #ffc4dd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-nav {
  min-width: 0;
  flex: 1 1 auto;
}

.foot-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
}

.foot-nav a:hover,
.foot-nav a:focus-visible {
  color: #fff;
}

.foot-copy {
  flex: 0 1 auto;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.foot-copy p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 30px;
  }

  .hero-art-box {
    justify-self: start;
    max-width: 220px;
  }

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

  .col-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 8px 10px;
  }

  .menu {
    order: 3;
    flex: 1 1 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 4px;
  }

  .find {
    margin-left: auto;
  }

  .find-in {
    width: 96px;
  }

  .foot-copy {
    flex: 1 1 100%;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1.1rem;
  }

  .foot-nav p {
    gap: 0 10px;
  }
}

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

  body::before,
  .orb,
  .chip-txt {
    animation: none;
  }
}

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