@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root {
  --ink: #1a1a2e;
  --bg: #09090f;
  --panel: #14142a;
  --red: #ff0000;
  --pink: #ff006e;
  --txt: #ece9f7;
  --dim: #a5a1c6;
  --line: rgba(255, 0, 110, 0.28);
  --hair: rgba(255, 255, 255, 0.1);
  --glow: 0 0 14px rgba(255, 0, 110, 0.55);
  --glow-red: 0 0 18px rgba(255, 0, 0, 0.45);
  --head: 'Poiret One', 'Didact Gothic', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --body: 'Didact Gothic', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--txt);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 84% -12%, rgba(255, 0, 110, 0.18), transparent 70%),
    radial-gradient(760px 420px at 4% 108%, rgba(255, 0, 0, 0.12), transparent 72%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 62px);
  background-attachment: fixed;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
}

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

a {
  color: var(--pink);
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
.brand,
.cta {
  font-family: var(--head);
  font-weight: 400;
}

article[id] {
  scroll-margin-top: 172px;
}

/* 扫描线覆盖层 */
.scan {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  mix-blend-mode: screen;
  opacity: 0.6;
}

@keyframes flicker {
  0%, 94%, 100% { opacity: 0.6; }
  95% { opacity: 0.32; }
  96% { opacity: 0.72; }
  97% { opacity: 0.4; }
}

/* 顶部：品牌行 + 菜单行 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 9, 15, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--txt);
  text-decoration: none;
  font-size: 1.34rem;
  letter-spacing: 0.18em;
  text-shadow: var(--glow);
}

.mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: var(--glow-red);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.brand:hover .brandtxt {
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.75);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.22em;
  border: 1px solid var(--pink);
  box-shadow: inset 0 0 18px rgba(255, 0, 110, 0.28), 0 0 12px rgba(255, 0, 110, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: inset 0 0 22px rgba(255, 0, 110, 0.45), 0 0 22px rgba(255, 0, 110, 0.6);
}

.navrow {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 8px;
}

.navrow ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navrow a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  color: var(--dim);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.navrow a:hover,
.navrow a.on {
  color: #fff;
  border-bottom-color: var(--pink);
  text-shadow: var(--glow);
}

/* 主体 */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 70px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 45vh;
  padding: 34px 0 26px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  will-change: transform;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 8.2vw, 4.9rem);
  line-height: 1.24;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 2px 0 0 rgba(255, 0, 0, 0.75), -2px 0 0 rgba(255, 0, 110, 0.6), 0 0 26px rgba(255, 0, 110, 0.45);
}

.hero .lead {
  max-width: 54ch;
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 1rem;
}

@keyframes glitch {
  0%, 100% { transform: translate(0, 0); }
  22% { transform: translate(-2px, 1px); }
  41% { transform: translate(2px, -1px); }
  58% { transform: translate(-1px, -2px); }
  76% { transform: translate(1px, 1px); }
  88% { transform: translate(-1px, 0); }
}

.stage {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  margin-top: 38px;
}

.rail {
  position: sticky;
  top: 164px;
  padding-left: 16px;
  border-left: 2px solid var(--pink);
}

.rail h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: 0.32em;
  color: #fff;
  text-shadow: var(--glow);
}

.rail .subtitle {
  margin: 4px 0 14px;
  color: var(--dim);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}

.raillist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.raillist a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.98rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.raillist .num {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--pink);
}

.raillist a:hover,
.raillist a.on {
  color: #fff;
  text-shadow: var(--glow);
}

.stream {
  min-width: 0;
}

.stream > article {
  padding: 38px 0;
  border-top: 1px dashed var(--hair);
}

.stream > article:first-child {
  padding-top: 0;
  border-top: 0;
}

.stream h2 {
  margin: 0 0 12px;
  font-size: clamp(1.42rem, 3.4vw, 2rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: var(--glow);
}

.stream h2 + p {
  margin-top: 0;
}

.stream h3 {
  margin: 26px 0 8px;
  font-size: 1.16rem;
  letter-spacing: 0.06em;
  color: var(--pink);
}

.stream p {
  margin: 0 0 16px;
}

.stream ul,
.stream ol {
  padding-left: 1.25em;
  margin: 0 0 18px;
}

.stream li {
  margin-bottom: 8px;
}

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

.stream blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 2px solid var(--red);
  background: rgba(255, 0, 0, 0.06);
  color: var(--dim);
}

.stream table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.98rem;
}

.stream th,
.stream td {
  padding: 9px 12px;
  border: 1px solid var(--hair);
  text-align: left;
}

.stream th {
  color: var(--pink);
  background: rgba(255, 0, 110, 0.07);
}

.stream img {
  margin: 18px 0;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
}

/* 页脚：四栏 + 底部一行 */
footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 20px 22px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--dim);
  overflow-wrap: anywhere;
}

.fbrand {
  color: #fff;
  font-family: var(--head);
  font-size: 1.14rem;
  letter-spacing: 0.16em;
  text-shadow: var(--glow);
}

.lab {
  display: block;
  margin-bottom: 6px;
  color: var(--pink);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
}

.fsub {
  display: flex;
  gap: 6px;
}

.fsub input {
  min-width: 0;
  flex: 1;
  min-height: 42px;
  padding: 0 10px;
  color: var(--txt);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair);
  border-radius: 0;
  font-family: var(--body);
  font-size: 0.95rem;
}

.fsub button {
  min-height: 42px;
  padding: 0 13px;
  color: #fff;
  background: transparent;
  border: 1px solid var(--pink);
  border-radius: 0;
  font-family: var(--head);
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.fsub button:hover {
  box-shadow: inset 0 0 16px rgba(255, 0, 110, 0.4);
}

.flinks a {
  display: inline-block;
  min-height: 32px;
  margin-right: 12px;
  color: var(--dim);
  text-decoration: none;
}

.flinks a:hover {
  color: #fff;
  text-shadow: var(--glow);
}

footer small {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--hair);
  color: var(--dim);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  background: rgba(9, 9, 15, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--glow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.totop.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

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

@media (prefers-reduced-motion: no-preference) {
  .scan { animation: flicker 7s infinite steps(60); }
  .hero h1 { animation: glitch 6s infinite steps(1); }

  .stream > article { animation: rise 0.6s ease both; }
  .stream > article:nth-child(2) { animation-delay: 0.06s; }
  .stream > article:nth-child(3) { animation-delay: 0.12s; }
  .stream > article:nth-child(4) { animation-delay: 0.18s; }
  .stream > article:nth-child(5) { animation-delay: 0.24s; }
  .stream > article:nth-child(6) { animation-delay: 0.3s; }
  .stream > article:nth-child(7) { animation-delay: 0.36s; }

  .raillist li { animation: rise 0.5s ease both; }
  .raillist li:nth-child(1) { animation-delay: 0.05s; }
  .raillist li:nth-child(2) { animation-delay: 0.1s; }
  .raillist li:nth-child(3) { animation-delay: 0.15s; }
  .raillist li:nth-child(4) { animation-delay: 0.2s; }
  .raillist li:nth-child(5) { animation-delay: 0.25s; }
  .raillist li:nth-child(6) { animation-delay: 0.3s; }
  .raillist li:nth-child(7) { animation-delay: 0.35s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero,
  .hero h1,
  .cta { transform: none !important; }
}

@media (max-width: 980px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .rail {
    position: static;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 2px solid var(--pink);
  }

  .raillist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }
}

@media (max-width: 820px) {
  footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .navrow ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .navrow ol::-webkit-scrollbar {
    display: none;
  }

  .navrow a {
    white-space: nowrap;
  }

  .hero {
    min-height: 42vh;
    padding: 22px 0 20px;
  }

  article[id] {
    scroll-margin-top: 158px;
  }
}

@media (max-width: 460px) {
  .brand {
    font-size: 1.14rem;
    letter-spacing: 0.12em;
  }

  .cta {
    padding: 0 12px;
    letter-spacing: 0.12em;
  }

  .raillist {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

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