:root {
  --ink: #1a1a2e;
  --ink-deep: #0b0b16;
  --ink-mid: #12121f;
  --red: #ff0000;
  --mag: #ff006e;
  --txt: #dcdce8;
  --muted: #9a9ab6;
  --line: rgba(255, 0, 110, 0.28);
}

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

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

body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--txt);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  border-radius: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58vw 46vh at 12% -8%, rgba(255, 0, 110, 0.18), transparent 70%),
    radial-gradient(50vw 42vh at 96% 4%, rgba(255, 0, 0, 0.15), transparent 72%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.22;
  border-radius: 0;
}

hr {
  border: 0;
  height: 2px;
  margin: 0.85rem 0 1.4rem;
  background: linear-gradient(90deg, var(--mag), var(--red) 45%, transparent);
}

h2 + hr,
h3 + hr {
  max-width: 210px;
}

/* ---------- 顶栏 ---------- */

.sh {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 18, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.ticker {
  overflow: hidden;
  border-bottom: 1px dashed rgba(255, 0, 110, 0.22);
  color: var(--mag);
  font-size: 16px;
  line-height: 2.1;
}

.tick-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tick 32s linear infinite;
  will-change: transform;
}

.tick-track span {
  padding-right: 3rem;
}

@keyframes tick {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 2px 0 0 rgba(255, 0, 110, 0.75), 0 0 18px rgba(255, 0, 0, 0.6);
}

.brand::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 0.6rem;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  background: rgba(255, 0, 110, 0.08);
  border: 1px solid var(--mag);
  color: #fff;
  letter-spacing: 0.16em;
  font-size: 16px;
  cursor: pointer;
}

.burger::after {
  content: "";
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.burger[aria-expanded="true"] {
  background: var(--mag);
  color: #0b0b16;
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.7);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.2rem 2.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  background: radial-gradient(circle at 50% 18%, rgba(255, 0, 110, 0.2), transparent 62%),
    rgba(7, 7, 14, 0.975);
}

body.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 540px;
  margin: 0;
  gap: 0.15rem;
}

.menu-list a {
  display: block;
  min-height: 48px;
  padding: 0.72rem 0.9rem;
  font-size: 1.24rem;
  letter-spacing: 0.04em;
  color: #eaeaf4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-list a:hover,
.menu-list a:focus-visible {
  color: #fff;
  background: rgba(255, 0, 110, 0.1);
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.9);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  min-height: 70vh;
  padding: clamp(2.2rem, 7vw, 4.5rem) 1.2rem clamp(2rem, 6vw, 3.4rem);
  text-align: center;
}

.hero h1 {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(2.05rem, 7vw, 4.1rem);
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 3px 0 0 rgba(255, 0, 110, 0.85),
    -3px 0 0 rgba(255, 0, 0, 0.7), 0 0 34px rgba(255, 0, 110, 0.5);
  animation: glitch 6s steps(1, end) infinite;
}

@keyframes glitch {
  0%,
  87%,
  100% {
    transform: none;
  }
  88% {
    transform: translate(-2px, 1px) skewX(-1.1deg);
  }
  90% {
    transform: translate(3px, -1px) skewX(1.5deg);
  }
  92% {
    transform: none;
  }
}

.hero-media {
  width: 100%;
  max-width: 880px;
  margin: 0;
  border: 1px solid rgba(255, 0, 110, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.22), 0 0 46px rgba(255, 0, 110, 0.26);
}

/* ---------- 正文布局 ---------- */

.wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.2rem clamp(3rem, 7vw, 5rem);
}

.side {
  position: sticky;
  top: 122px;
  padding: 1rem 0.9rem 1.1rem;
  background: rgba(18, 18, 32, 0.78);
  border: 1px solid var(--line);
}

.side h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.32em;
  color: var(--mag);
}

.side p {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.side a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.15rem;
  font-size: 16px;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
}

.side a:hover,
.side a:focus-visible {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.8);
}

.prose {
  min-width: 0;
  font-size: 17px;
  line-height: 1.85;
}

.prose div {
  padding-top: 2.3rem;
  margin-top: 2.3rem;
  border-top: 1px dashed var(--line);
  scroll-margin-top: 132px;
}

.prose div:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.prose h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 110, 0.55);
}

.prose h3 {
  margin: 1.7rem 0 0.5rem;
  font-size: 1.18rem;
  color: var(--mag);
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose a {
  color: var(--mag);
  border-bottom: 1px solid rgba(255, 0, 110, 0.5);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.prose li {
  margin: 0.4rem 0;
}

.prose strong {
  color: #fff;
}

.prose blockquote {
  margin: 1.3rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--red);
  background: rgba(255, 0, 0, 0.07);
  color: #e8e8f2;
}

.prose figure {
  margin: 1.4rem 0;
}

.prose img {
  border: 1px solid var(--line);
}

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

.prose th,
.prose td {
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
}

.prose time {
  color: var(--muted);
  font-size: 16px;
}

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

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

/* ---------- 页脚 ---------- */

footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  padding: 2.4rem clamp(1.2rem, 5vw, 4rem) 1rem;
  background: #0a0a15;
  border-top: 2px solid var(--red);
}

footer div h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.24em;
  color: var(--mag);
}

footer div p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.f-links p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
}

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--txt);
  border-bottom: 1px solid transparent;
}

.f-links a:hover,
.f-links a:focus-visible {
  color: #fff;
  border-bottom-color: var(--mag);
}

.f-form {
  grid-column: 1 / -1;
}

.sub-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.sub-form input {
  flex: 1 1 220px;
  min-height: 46px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 16px;
}

.sub-form input::placeholder {
  color: #7b7b96;
}

.sub-form input:focus {
  outline: 2px solid var(--mag);
  outline-offset: 1px;
}

.sub-form button {
  min-height: 46px;
  padding: 0.45rem 1.35rem;
  background: var(--red);
  border: 0;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.18em;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.45);
}

.sub-note {
  font-size: 16px;
  color: var(--mag);
}

.f-bottom {
  grid-column: 1 / -1;
  margin-top: 1.2rem;
  padding: 1rem 0 1.4rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- 窄屏 ---------- */

@media (max-width: 860px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.7rem;
  }

  .side {
    position: static;
  }

  .side p {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.1rem 0.9rem;
  }

  .side a {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  }

  .hero {
    min-height: auto;
    gap: 1.7rem;
  }

  footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.7rem;
  }

  .f-form {
    grid-column: auto;
  }
}

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

  .hero h1,
  .tick-track {
    animation: none;
  }

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

  .menu {
    transition: none;
  }
}

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