:root {
  --red: #ff0000;
  --mag: #ff006e;
  --ink: #1a1a2e;
  --bg: #0a0a14;
  --panel: rgba(26, 26, 46, 0.82);
  --fg: #f4eefb;
  --dim: #a89ec2;
  --line: rgba(255, 0, 110, 0.26);
  --line-soft: rgba(255, 0, 110, 0.14);
  --r: 10px;
  --topH: 74px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 10% -12%, rgba(255, 0, 110, 0.20), transparent 62%),
    radial-gradient(880px 500px at 94% 6%, rgba(255, 0, 0, 0.16), transparent 58%),
    radial-gradient(700px 700px at 50% 120%, rgba(255, 0, 110, 0.10), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045) 0 1px,
    rgba(0, 0, 0, 0) 1px 3px
  );
}

a { color: #ff5c9d; }

p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--fg);
  border: 1px solid var(--mag);
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

/* 顶部平铺导航 */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(14px, 4vw, 34px);
  background: rgba(10, 10, 20, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.55);
}

.brand,
.footMark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 110, 0.55);
  background: linear-gradient(150deg, rgba(255, 0, 110, 0.22), rgba(26, 26, 46, 0.9));
  text-decoration: none;
  box-shadow: 0 0 14px rgba(255, 0, 110, 0.4);
}

.mark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.95), 0 0 22px rgba(255, 0, 0, 0.6);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 16px;
  letter-spacing: 0.12em;
  background: rgba(26, 26, 46, 0.7);
}
.nav > summary::-webkit-details-marker { display: none; }
.nav > summary::marker { content: ""; }
.nav[open] > summary {
  border-color: var(--mag);
  box-shadow: 0 0 16px rgba(255, 0, 110, 0.55);
  color: #fff;
}

.nav > menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav > menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, text-shadow 0.18s ease;
}
.nav > menu a:hover,
.nav > menu a:focus-visible {
  color: #fff;
  background: rgba(255, 0, 110, 0.14);
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.9);
}

/* 主视觉 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(18px, 4vw, 52px);
  min-height: 70vh;
  padding: clamp(30px, 7vw, 78px) clamp(16px, 5vw, 58px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 0, 110, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, 0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 30% 40%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 30% 40%, #000 0%, transparent 80%);
}

.heroCopy {
  position: relative;
  text-align: left;
  max-width: 34ch;
}

.heroCopy h1 {
  margin: 0 0 0.45em;
  font-size: clamp(2rem, 6.2vw, 4.1rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow:
    0 0 16px rgba(255, 0, 110, 0.7),
    0 0 44px rgba(255, 0, 0, 0.4),
    3px 0 0 rgba(255, 0, 0, 0.55),
    -3px 0 0 rgba(0, 190, 255, 0.32);
}

.glitch { animation: glitch 7s steps(1) infinite; }

@keyframes glitch {
  0%, 92%, 100% { transform: none; }
  93% { transform: translate(-2px, 1px) skewX(-1.2deg); }
  95% { transform: translate(3px, -1px) skewX(1.4deg); }
  97% { transform: translate(-1px, 0) skewX(-0.6deg); }
}

.lead {
  color: var(--dim);
  font-size: 17px;
  max-width: 32ch;
  margin-bottom: 1.4em;
}

.heroBtnRow { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 28px;
  border-radius: 999px;
  border: 1px solid var(--mag);
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.9), rgba(255, 0, 110, 0.9));
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.55);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.btn:hover,
.btn:focus-visible {
  box-shadow: 0 0 28px rgba(255, 0, 110, 0.9), 0 0 60px rgba(255, 0, 0, 0.35);
  transform: translateY(-2px);
}

.heroArt {
  position: relative;
  min-height: min(48vh, 400px);
  will-change: transform;
}

.shot {
  position: absolute;
  width: 74%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid rgba(255, 0, 110, 0.5);
  box-shadow: 0 0 26px rgba(255, 0, 110, 0.4), 0 0 70px rgba(255, 0, 0, 0.18);
  filter: saturate(1.15) contrast(1.05);
}
.shot1 { top: 0; left: 0; transform: rotate(-2.5deg); }
.shot2 { bottom: 0; right: 0; width: 63%; transform: rotate(2deg); }

.plate {
  position: absolute;
  border-radius: var(--r);
  border: 1px solid rgba(255, 0, 110, 0.42);
  background: repeating-linear-gradient(45deg, rgba(255, 0, 110, 0.18) 0 8px, rgba(255, 0, 0, 0.10) 8px 16px);
}
.plate1 { inset: 0 28% 38% 0; }
.plate2 { inset: 44% 0 0 32%; background: repeating-linear-gradient(-45deg, rgba(255, 0, 0, 0.16) 0 8px, rgba(255, 0, 110, 0.10) 8px 16px); }

/* 正文布局 */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: clamp(18px, 3vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px) clamp(16px, 4vw, 28px);
  align-items: start;
}

.doc { min-width: 0; }

.content > section {
  margin: 0 0 clamp(18px, 3vw, 30px);
  padding: clamp(18px, 3.4vw, 34px);
  border: 1px solid var(--line-soft);
  border-bottom: 2px solid rgba(255, 0, 110, 0.55);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), rgba(12, 11, 24, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.content > section[id] { scroll-margin-top: 96px; }

.content h2,
.content h3 {
  color: #fff;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.45);
}
.content h2 { font-size: clamp(1.28rem, 3.4vw, 1.62rem); margin: 0 0 0.7em; }
.content h3 { font-size: 1.1rem; margin: 1.4em 0 0.5em; }

.content small,
.eyebrow {
  display: block;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--mag);
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.55);
  margin-bottom: 4px;
}

.content ul,
.content ol { margin: 0 0 1em; padding-left: 1.3em; }
.content li { margin-bottom: 0.35em; }
.content li::marker { color: var(--mag); }

.content a { text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: #fff; }

.content blockquote {
  margin: 0 0 1em;
  padding: 12px 16px;
  border-left: 3px solid var(--mag);
  background: rgba(255, 0, 110, 0.07);
  color: var(--dim);
  border-radius: 0 8px 8px 0;
}

.content code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.94em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 0, 110, 0.16);
  color: #ffd7e6;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 16px;
}
.content th,
.content td {
  border: 1px solid var(--line-soft);
  padding: 9px 12px;
  text-align: left;
}
.content th { background: rgba(255, 0, 110, 0.12); color: #fff; }

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 侧栏 */
.side {
  position: sticky;
  top: calc(var(--topH) + 14px);
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.94), rgba(11, 10, 22, 0.94));
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.14);
}

.sideH {
  margin: 0 0 0.6em;
  font-size: 1.06rem;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.5);
}

.sideNav {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.sideNav li { border-bottom: 1px solid var(--line-soft); }
.sideNav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 2px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.sideNav a:hover,
.sideNav a:focus-visible {
  color: #fff;
  padding-left: 8px;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.8);
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
}
.totop:hover,
.totop:focus-visible { color: #fff; border-color: var(--mag); }

/* 页脚 */
.foot {
  margin-top: clamp(16px, 4vw, 40px);
  padding: clamp(24px, 5vw, 52px) clamp(16px, 4vw, 28px) clamp(20px, 4vw, 32px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.45), rgba(8, 8, 16, 0.96));
}

.cta {
  max-width: 1180px;
  margin: 0 auto clamp(18px, 3vw, 30px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid rgba(255, 0, 110, 0.4);
  border-radius: var(--r);
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.12), rgba(255, 0, 110, 0.08));
  box-shadow: inset 0 0 40px rgba(255, 0, 110, 0.12);
}

.ctaBrand {
  margin: 0;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(255, 0, 110, 0.8), 0 0 48px rgba(255, 0, 0, 0.4);
}

.btnWide { letter-spacing: 0.16em; }

.footRow {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: clamp(14px, 3vw, 22px);
  border-top: 1px solid var(--line-soft);
}

.footNav { flex: 1 1 auto; min-width: 0; }
.footNav menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footNav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 9px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
}
.footNav a:hover,
.footNav a:focus-visible { color: #fff; text-shadow: 0 0 10px rgba(255, 0, 110, 0.8); }

.copy {
  margin: 0 0 0 auto;
  font-size: 16px;
  color: #8b83a4;
  letter-spacing: 0.06em;
}

/* 滚动出现 */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; top: auto; order: 2; }
  .sideNav { display: flex; flex-wrap: wrap; gap: 0 14px; border-top: 0; }
  .sideNav li { border-bottom: 0; }
}

@media (max-width: 819px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(26px, 9vw, 46px);
  }
  .heroArt { min-height: 260px; order: 2; margin-top: 8px; }
  .heroCopy { max-width: none; }
  .nav { display: block; }
  .nav > menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 14px 16px;
    max-height: 68vh;
    overflow: auto;
    background: rgba(11, 10, 22, 0.99);
    border-bottom: 1px solid var(--mag);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  }
  .nav > menu a { min-height: 46px; padding: 12px 6px; font-size: 17px; }
  .content > section[id] { scroll-margin-top: 82px; }
  .copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glitch { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

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