@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --ink: #1a1a2e;
  --red: #ff0000;
  --pink: #ff006e;
  --bg: #12101f;
  --panel: #221e3d;
  --panel2: #2b2550;
  --txt: #f4f0ff;
  --dim: #aaa2ca;
  --edge: #3b3470;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.26) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  opacity: 0.55;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89;
  pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 0, 110, 0.16), rgba(0, 0, 0, 0) 62%);
}

a {
  color: var(--txt);
  text-decoration: none;
}

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

p {
  margin: 0 0 1em;
}

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

.strip {
  background: var(--red);
  color: #fff;
}

.strip p {
  margin: 0 auto;
  max-width: 1120px;
  padding: 7px 18px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
}

.masthead {
  background: linear-gradient(180deg, #181430, #12101f);
  border-bottom: 2px solid var(--edge);
}

.masthead > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

.brand {
  margin: 0;
  padding-top: 10px;
  padding-bottom: 4px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  min-height: 42px;
}

.brand-link img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px var(--pink));
}

.brand-link span {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.8);
}

.menu {
  padding-bottom: 10px;
}

.menu p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
}

.menu a {
  display: inline-block;
  padding: 11px 12px;
  font-size: 16px;
  color: var(--dim);
  letter-spacing: 0.02em;
  transition: color 0.18s ease, background 0.18s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: #fff;
  background: rgba(255, 0, 110, 0.16);
  text-shadow: 0 0 12px var(--pink);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 44px;
}

.prose {
  min-width: 0;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  padding: 42px 4px 0;
  text-align: center;
  overflow: hidden;
  background-color: #16122a;
  background-image:
    linear-gradient(rgba(255, 0, 110, 0.09) 1px, rgba(0, 0, 0, 0) 1px),
    linear-gradient(90deg, rgba(255, 0, 110, 0.09) 1px, rgba(0, 0, 0, 0) 1px);
  background-size: 38px 38px;
}

.hero-icon {
  margin: 0 0 10px;
}

.hero-icon img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 14px var(--pink));
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 0, 110, 0.95),
    0 0 30px rgba(255, 0, 110, 0.45),
    2px 2px 0 rgba(255, 0, 0, 0.5);
  animation: glitch 7s infinite;
}

.hero-lead {
  max-width: 33em;
  margin: 0 0 26px;
  font-size: 17px;
  color: var(--dim);
}

.band {
  width: 100%;
  height: 12px;
  margin-top: auto;
  background: linear-gradient(90deg, var(--red), var(--pink) 58%, rgba(255, 0, 110, 0) 100%);
  box-shadow: 0 0 26px rgba(255, 0, 110, 0.55);
  transform: skewY(-1.4deg) scaleX(1.05);
}

.ticker {
  margin: 0 -18px 24px;
  overflow: hidden;
  background: #161230;
  border-bottom: 2px solid var(--edge);
}

.ticker p {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 8px 18px;
  animation: slide 30s linear infinite;
}

.ticker a {
  display: inline-block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--dim);
  white-space: nowrap;
}

.ticker a::after {
  content: "◆";
  margin-left: 26px;
  font-size: 10px;
  color: var(--pink);
}

.body article {
  position: relative;
  margin: 0 0 22px;
  padding: 24px 20px 6px;
  background: var(--panel);
  scroll-margin-top: 132px;
}

.body article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.body h2 {
  margin: 0;
  font-size: clamp(21px, 4.4vw, 29px);
  line-height: 1.25;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.6);
}

.body h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.4);
}

hr {
  height: 2px;
  margin: 10px 0 16px;
  border: 0;
  background: linear-gradient(90deg, var(--pink), rgba(255, 0, 110, 0));
}

.body h2 + hr {
  margin-top: 10px;
}

.body a {
  color: #ffd0e2;
  border-bottom: 1px solid rgba(255, 0, 110, 0.75);
}

.body a:hover {
  color: #fff;
  background: rgba(255, 0, 110, 0.18);
}

.body ul,
.body ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

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

.body strong {
  color: #fff;
}

.body blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 16px;
  background: rgba(255, 0, 110, 0.1);
  border-left: 3px solid var(--pink);
}

.rail {
  align-self: start;
  margin: 0 0 24px;
  padding: 18px 16px;
  background: var(--panel2);
}

.rail h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.7);
}

.rail .rail-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.rail a {
  display: block;
  padding: 12px 10px;
  font-size: 16px;
  color: var(--dim);
  background: rgba(0, 0, 0, 0.22);
  transition: color 0.16s ease, background 0.16s ease;
}

.rail a::before {
  content: "▸ ";
  color: var(--red);
}

.rail a:hover,
.rail a:focus-visible {
  color: #fff;
  background: rgba(255, 0, 110, 0.24);
}

.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: center;
  padding: 24px max(18px, calc((100% - 1120px) / 2));
  background: #0d0b18;
  border-top: 2px solid var(--red);
}

.foot p {
  margin: 0;
}

.foot .foot-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.7);
}

.foot small {
  font-size: 14px;
  color: var(--dim);
}

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

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

@keyframes glitch {
  0%, 90%, 100% { transform: none; }
  92% { transform: translate(-2px, 1px) skewX(1.5deg); }
  94% { transform: translate(2px, -1px) skewX(-1.5deg); }
  96% { transform: translate(-1px, 0) skewX(0.8deg); }
}

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

@media (max-width: 979px) {
  .foot {
    grid-template-columns: 1fr;
  }
  .rail {
    margin-top: 6px;
  }
}

@media (min-width: 980px) {
  .shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 262px;
    gap: 34px;
    align-items: start;
  }
  .masthead {
    position: sticky;
    top: 0;
    z-index: 70;
  }
  .rail {
    position: sticky;
    top: 140px;
    margin-bottom: 0;
  }
  .body article {
    padding: 30px 26px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  h1 {
    animation: none;
  }
  .ticker {
    overflow-x: auto;
  }
  .ticker p {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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