:root {
  --ink: #1a1a2e;
  --ink-deep: #0f0f1c;
  --red: #ff0000;
  --pink: #ff006e;
  --fg: #f4eeff;
  --dim: #ada2cc;
  --line: rgba(255, 0, 110, .34);
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 88% -8%, rgba(255, 0, 110, .24), transparent 62%),
    radial-gradient(820px 480px at -5% 18%, rgba(255, 0, 0, .16), transparent 58%),
    linear-gradient(180deg, #1a1a2e 0%, #141428 55%, #0e0e1a 100%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .3) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  mix-blend-mode: multiply;
}

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

a {
  color: var(--pink);
}

/* ---------- 顶部两行 ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 20, 40, .96), rgba(20, 20, 40, .74));
  backdrop-filter: blur(16px);
  transition: box-shadow .35s ease, background .35s ease;
}

.hdr.is-scrolled {
  box-shadow: 0 12px 38px rgba(255, 0, 110, .22);
}

.hdr-brand {
  display: flex;
  align-items: center;
  padding: .7rem clamp(1rem, 4vw, 2.4rem) .25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  text-decoration: none;
  color: #fff;
}

.brand-word {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-shadow: 0 0 16px rgba(255, 0, 110, .8);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 0 18px rgba(255, 0, 110, .5);
  object-fit: cover;
}

.hdr-nav {
  padding: 0 clamp(.7rem, 3.4vw, 2.1rem) .5rem;
}

.hdr-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem .15rem;
  margin: 0;
}

.hdr-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .35rem .7rem;
  font-size: .96rem;
  font-weight: 400;
  color: var(--dim);
  text-decoration: none;
  border-radius: 999px;
  transition: color .25s ease, background .25s ease, box-shadow .25s ease;
}

.hdr-nav a:hover,
.hdr-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 0, 110, .14);
  box-shadow: inset 0 0 0 1px var(--line), 0 0 16px rgba(255, 0, 110, .3);
}

/* ---------- 主栅格：左栏 + 正文 ---------- */
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.6rem);
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.4rem) clamp(2.5rem, 6vw, 5rem);
}

.side {
  position: sticky;
  top: 132px;
  align-self: start;
  padding-top: clamp(2rem, 5vw, 3.4rem);
}

.side-cap {
  margin: 0 0 .8rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--pink);
}

.side-cap span {
  position: relative;
  display: inline-block;
  padding-left: .9rem;
}

.side-cap span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 7px;
  height: 7px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  transform: rotate(45deg);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .1rem;
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .4rem .75rem;
  font-size: .96rem;
  color: var(--dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color .22s ease, border-color .22s ease, background .22s ease, padding-left .22s ease;
}

.side-list a:hover,
.side-list a:focus-visible {
  color: #fff;
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(255, 0, 110, .16), transparent);
  padding-left: 1rem;
}

.doc {
  min-width: 0;
}

.doc > section {
  max-width: 74ch;
  margin: 0 auto;
  padding: clamp(2.2rem, 5.5vw, 3.6rem) 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

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

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  max-width: none;
  min-height: 100svh;
  display: grid;
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(1.8rem, 5vw, 3.4rem) 0 clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
  border-top: 0;
}

.hero.has-art {
  grid-template-columns: 1.02fr 1fr;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 0, 110, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, .18) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(78% 68% at 72% 34%, #000 0%, transparent 76%);
  mask-image: radial-gradient(78% 68% at 72% 34%, #000 0%, transparent 76%);
  opacity: .85;
}

.hero-copy {
  position: relative;
  z-index: 3;
  margin-left: auto;
  max-width: 34ch;
  text-align: right;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.95rem, 5.4vw, 3.5rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 110, .8), 0 0 52px rgba(255, 0, 0, .42);
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  text-align: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .85;
}

.glitch::before {
  color: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 52%, 0 52%);
  animation: shift-a 4.6s steps(2, end) infinite;
}

.glitch::after {
  color: var(--pink);
  clip-path: polygon(0 56%, 100% 56%, 100% 100%, 0 100%);
  animation: shift-b 3.7s steps(2, end) infinite;
}

@keyframes shift-a {
  0%, 92%, 100% { transform: translate(0, 0); }
  94% { transform: translate(-3px, -2px) skewX(-4deg); }
  97% { transform: translate(2px, 1px) skewX(3deg); }
}

@keyframes shift-b {
  0%, 90%, 100% { transform: translate(0, 0); }
  93% { transform: translate(3px, 2px) skewX(4deg); }
  96% { transform: translate(-2px, -1px) skewX(-3deg); }
}

.hero-desc {
  margin: 0 0 0 auto;
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.8;
  color: #d9d0f0;
}

.hero-art {
  position: relative;
  z-index: 2;
  height: clamp(280px, 44vw, 460px);
  will-change: transform;
}

.hero-shot {
  position: absolute;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 0, 110, .55);
  box-shadow: 0 0 34px rgba(255, 0, 0, .38), 0 22px 50px rgba(0, 0, 0, .55);
  object-fit: cover;
  background: #0d0d18;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1), box-shadow .5s ease;
}

.hero-shot-1 {
  width: 66%;
  height: 84%;
  top: 0;
  left: 0;
  transform: rotate(-3.5deg);
  z-index: 2;
}

.hero-shot-2 {
  width: 54%;
  height: 64%;
  right: 0;
  bottom: 0;
  transform: rotate(4.5deg);
  z-index: 1;
  filter: hue-rotate(-14deg) saturate(1.15);
}

.hero-shot:hover {
  transform: rotate(0deg) translateY(-7px);
  box-shadow: 0 0 46px rgba(255, 0, 110, .6), 0 26px 60px rgba(0, 0, 0, .6);
}

/* ---------- 正文排版 ---------- */
.doc > section h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.32rem, 3.1vw, 1.85rem);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 110, .45);
}

.doc > section h2 > span {
  position: relative;
  display: inline-block;
}

.doc > section h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.3em;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink) 60%, transparent);
  box-shadow: 0 0 12px rgba(255, 0, 110, .8);
}

.doc > section h3 {
  margin: 1.8rem 0 .7rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffe6f2;
}

.doc > section h3 > span {
  position: relative;
  display: inline-block;
  padding-left: .7rem;
}

.doc > section h3 > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

.doc > section p {
  margin: 0 0 1.05rem;
  color: #ddd5f2;
}

.doc > section ul,
.doc > section ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

.doc > section li {
  margin-bottom: .45rem;
}

.doc > section li::marker {
  color: var(--pink);
}

.doc > section a {
  color: #ff8ab5;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 0, 110, .5);
  transition: color .2s ease, border-color .2s ease;
}

.doc > section a:hover {
  color: #fff;
  border-bottom-color: var(--red);
}

.doc > section strong {
  color: #fff;
  font-weight: 600;
}

.doc > section blockquote {
  margin: 0 0 1.2rem;
  padding: .9rem 1.1rem;
  border-left: 2px solid var(--red);
  background: rgba(255, 0, 110, .08);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #efe6ff;
}

/* ---------- 页脚 ---------- */
.ftr {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1rem, 4vw, 2.4rem) 1.8rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, rgba(255, 0, 110, .14), transparent 72%);
}

.ftr-brand {
  flex: 1 1 240px;
}

.ftr-mark-link {
  display: inline-block;
  text-decoration: none;
  color: #fff;
}

.ftr-mark {
  margin: 0;
  font-size: clamp(1.7rem, 5.4vw, 3.3rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.035em;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 0, 110, .7);
}

.ftr-cap {
  margin: 0 0 .5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--pink);
}

.ftr-nav {
  flex: 1 1 320px;
}

.ftr-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem;
  margin: 0;
}

.ftr-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .35rem .65rem;
  font-size: .96rem;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .22s ease, border-color .22s ease;
}

.ftr-nav a:hover,
.ftr-nav a:focus-visible {
  color: #fff;
  border-bottom-color: var(--red);
}

.ftr-copy {
  flex: 1 1 190px;
  text-align: center;
  font-size: .96rem;
  color: var(--dim);
}

.ftr-copy p {
  margin: 0;
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(.9rem, 3vw, 1.8rem);
  bottom: clamp(.9rem, 3vw, 1.8rem);
  z-index: 65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 20, 40, .92);
  color: #fff;
  font-size: .94rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 22px rgba(255, 0, 110, .35);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

.to-top.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover,
.to-top:focus-visible {
  border-color: var(--red);
  box-shadow: 0 0 28px rgba(255, 0, 0, .6);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    order: 2;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .side-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
  }

  .side-list a {
    border-left: 1px solid rgba(255, 255, 255, .1);
    margin-left: 0;
  }
}

@media (max-width: 780px) {
  .hero,
  .hero.has-art {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    min-height: 100svh;
    padding-top: 1.6rem;
  }

  .hero-copy {
    order: 1;
    margin-left: 0;
    max-width: none;
    text-align: left;
  }

  .hero-desc {
    margin-left: 0;
  }

  .hero-art {
    order: 2;
    height: clamp(230px, 62vw, 320px);
  }

  .hero::before {
    -webkit-mask-image: radial-gradient(88% 60% at 50% 20%, #000 0%, transparent 80%);
    mask-image: radial-gradient(88% 60% at 50% 20%, #000 0%, transparent 80%);
  }

  .ftr {
    align-items: flex-start;
  }

  .ftr-copy {
    flex-basis: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hdr-nav a {
    padding: .35rem .5rem;
    font-size: .92rem;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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