:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --bg: #150c0c;
  --fg: #fceff3;
  --dim: #d3bcc3;
  --glass: rgba(255, 255, 255, 0.055);
  --edge: rgba(255, 255, 255, 0.13);
  --r: 18px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.006em;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: -2;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(255, 0, 0, 0.55), transparent 62%),
    radial-gradient(34% 38% at 82% 14%, rgba(255, 20, 147, 0.5), transparent 64%),
    radial-gradient(52% 46% at 62% 78%, rgba(255, 20, 147, 0.34), transparent 66%),
    radial-gradient(40% 40% at 12% 86%, rgba(255, 96, 0, 0.3), transparent 60%);
  background-size: 200% 200%, 180% 180%, 200% 200%, 180% 180%;
  filter: saturate(1.25) blur(38px);
  animation: aurora 11s ease-in-out infinite;
}

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: 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(78% 66% at 50% 38%, #000 28%, transparent 100%);
  mask-image: radial-gradient(78% 66% at 50% 38%, #000 28%, transparent 100%);
  opacity: 0.85;
}

@keyframes aurora {
  0%, 100% { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 0%; }
  50% { background-position: 100% 50%, 0% 100%, 0% 0%, 100% 100%; }
}

h1, h2, h3 {
  font-family: 'Lexend Mega', 'Public Sans', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: #fff;
  overflow-wrap: anywhere;
}

a { color: inherit; }

img,
svg,
video,
canvas,
iframe { max-width: 100%; height: auto; }

img,
iframe { display: block; }

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  padding: 9px clamp(12px, 3vw, 32px);
  background: rgba(21, 12, 12, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--edge);
}

.mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
  text-decoration: none;
  font-family: 'Lexend Mega', sans-serif;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.45);
}

.mark img { width: 24px; height: 24px; object-fit: contain; }

.menu {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.menu::-webkit-scrollbar { display: none; }

.menu ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  width: max-content;
  min-width: 100%;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 12px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}

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

.topcta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.32);
}

/* 主视觉 */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(30px, 6vw, 78px) clamp(16px, 5vw, 64px) clamp(46px, 8vw, 90px);
  overflow: hidden;
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--pink) 45%, transparent);
}

.hero-copy { max-width: 40ch; min-width: 0; }

.hero-title {
  margin: 0;
  font-size: clamp(38px, 7.2vw, 82px);
  text-shadow: 0 0 46px rgba(255, 20, 147, 0.4);
}

.hero-bar {
  display: block;
  width: clamp(64px, 20%, 180px);
  height: 4px;
  margin: 22px 0 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.lede {
  margin: 0 0 26px;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.8;
}

.hero-act { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(255, 20, 147, 0.38);
}

.hero-art {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: clamp(300px, 46vh, 520px);
  aspect-ratio: 5 / 6;
}

.hero-art .shot {
  position: absolute;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--edge);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  background: linear-gradient(160deg, rgba(255, 0, 0, 0.35), rgba(255, 20, 147, 0.25));
}

.shot-a {
  top: 0;
  left: 0;
  width: 72%;
  height: 74%;
  transform: rotate(-3.2deg);
}

.shot-b {
  right: 0;
  bottom: 2%;
  width: 56%;
  height: 50%;
  transform: rotate(3.6deg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.75;
  z-index: -1;
}

.orb-a {
  width: 46%;
  height: 34%;
  top: 6%;
  right: 4%;
  background: var(--pink);
  animation: drift 9s ease-in-out infinite;
}

.orb-b {
  width: 40%;
  height: 30%;
  bottom: 8%;
  left: 2%;
  background: var(--red);
  animation: drift 12s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, -14px, 0) scale(1.12); }
}

/* 正文双栏 */
.body {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 52px);
  align-items: start;
  padding: clamp(34px, 5vw, 68px) clamp(16px, 5vw, 64px) 0;
  max-width: 100%;
}

.rail {
  position: sticky;
  top: 84px;
  min-width: 0;
  padding: 18px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.rail h2 {
  margin: 0 0 9px;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.rail hr {
  border: 0;
  height: 2px;
  margin: 0 0 13px;
  background: linear-gradient(90deg, var(--pink), transparent);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rail-list li {
  min-width: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 55ms);
}

.rail.in .rail-list li {
  opacity: 1;
  transform: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 9px;
  border-radius: 10px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  overflow-wrap: anywhere;
  transition: color 0.28s ease, background 0.28s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible,
.rail-list a.on {
  color: #fff;
  background: rgba(255, 20, 147, 0.22);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in { opacity: 1; transform: none; }

.hero-art.reveal.in .shot-a { animation: none; }
.hero-art.reveal { animation: rise 0.9s ease both; }

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

/* 正文排版 */
.content {
  max-width: 72ch;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.content div { padding: 0; min-width: 0; }

.content div + div {
  margin-top: clamp(26px, 4vw, 48px);
  padding-top: clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--edge);
}

.content h2 {
  margin: 1.9em 0 0.45em;
  font-size: clamp(23px, 3.4vw, 33px);
}

.content h3 {
  margin: 1.7em 0 0.4em;
  font-size: clamp(19px, 2.4vw, 23px);
}

.content h2:first-child,
.content h3:first-child { margin-top: 0; }

.content h2 + hr,
.content h3 + hr {
  border: 0;
  height: 3px;
  margin: 0 0 1.05em;
  background: linear-gradient(90deg, var(--red), var(--pink), transparent);
}

.content p { margin: 0 0 1.1em; }

.content a {
  color: #ffb0cd;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

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

.content li { margin: 0 0 0.5em; }

.content blockquote {
  margin: 0 0 1.3em;
  padding: 14px 20px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--glass);
  color: var(--dim);
}

.content table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0 0 1.3em;
  font-size: 16px;
}

.content th,
.content td {
  padding: 10px 12px;
  border: 1px solid var(--edge);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content th { background: rgba(255, 255, 255, 0.06); }

.content pre,
.content code {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}

.content img,
.content figure {
  border-radius: var(--r);
  margin: 0 0 1.3em;
  max-width: 100%;
}

.content figure img { margin: 0; }

.content hr {
  border: 0;
  height: 1px;
  background: var(--edge);
  margin: 1.6em 0;
}

div[id] { scroll-margin-top: 88px; }

/* 页脚 */
.foot {
  margin-top: clamp(44px, 7vw, 96px);
  padding: clamp(30px, 6vw, 68px) clamp(16px, 5vw, 64px) 26px;
  border-top: 1px solid var(--edge);
  display: grid;
  gap: 22px;
  max-width: 100%;
}

.foot .cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: calc(var(--r) + 8px);
  border: 1px solid var(--edge);
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.32), rgba(255, 20, 147, 0.26));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

.cta-copy h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 40px);
}

.cta-copy hr {
  width: 90px;
  height: 0;
  border: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  margin: 14px 0 0;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.copy {
  margin: 0;
  font-size: 16px;
  color: var(--dim);
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
}

.top-link:hover,
.top-link:focus-visible { color: #fff; border-color: var(--pink); }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* 响应式 */
@media (max-width: 1000px) {
  .body { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .rail-list { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: clamp(26px, 8vw, 48px);
  }
  .hero-copy { max-width: none; }
  .hero-art {
    min-height: 300px;
    aspect-ratio: 4 / 3;
    margin-top: 8px;
  }
  .shot-a { width: 66%; height: 76%; }
  .shot-b { width: 50%; height: 48%; }
  .foot .cta {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar { gap: 8px; padding: 8px 10px; }
  .topcta { padding: 0 12px; font-size: 15px; }
  .menu a { padding: 0 9px; font-size: 15px; }
  .hero-title { font-size: clamp(34px, 11vw, 52px); }
  .body,
  .foot { padding-left: 14px; padding-right: 14px; }
  .shot-a { transform: rotate(-2deg); }
  .shot-b { transform: rotate(2.2deg); }
}

@media (max-width: 400px) {
  .hero-title { font-size: clamp(30px, 10vw, 40px); }
  .hero-bar { margin: 16px 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .orb-a,
  .orb-b { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rail-list li { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

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