@charset "utf-8";

:root {
  --lime: #00ff80;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --dim: rgba(255, 255, 255, .72);
  --hair: rgba(0, 255, 128, .34);
}

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

html {
  background: var(--black);
  color: var(--white);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: .01em;
}

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

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

img {
  max-width: 100%;
}

/* 顶部细条 */
.topbar {
  display: flex;
  align-items: stretch;
  border-bottom: 3px solid var(--lime);
  background: #000;
  position: relative;
  z-index: 30;
}

.mark {
  flex: 0 0 auto;
  width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-right: 3px solid var(--lime);
  color: var(--lime);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}

.mark img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.mark-letter {
  display: block;
  transform: translateY(-1px);
}

.ticker {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  align-self: center;
  padding: 0 18px;
  text-align: right;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 16px;
  letter-spacing: .24em;
  color: var(--lime);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 首屏 */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: clamp(46px, 9vw, 104px) 20px clamp(64px, 11vw, 128px);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  background:
    repeating-linear-gradient(90deg, rgba(0, 255, 128, .14) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(0, 255, 128, .14) 0 1px, transparent 1px 84px),
    #000;
}

.hero-ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(58px, 17vw, 190px);
  line-height: .9;
  letter-spacing: -.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 255, 128, .3);
}

.hero-core {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 26px;
  max-width: 760px;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 7.4vw, 70px);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--white);
  text-shadow: 5px 5px 0 var(--blue);
}

.hero-img {
  display: block;
  width: min(100%, 640px);
  height: auto;
  max-height: 38vh;
  object-fit: cover;
  border: 3px solid var(--lime);
  border-radius: 18px;
  background: #060606;
}

/* 主骨架 */
.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  border-top: 3px solid var(--lime);
  border-bottom: 3px solid var(--lime);
}

.rail {
  position: relative;
  background: #050505;
  border-right: 3px solid var(--lime);
  padding: 22px 0;
}

.rail-nav {
  position: sticky;
  top: 16px;
  padding: 0 14px;
}

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid var(--lime);
  border-radius: 999px;
  background: #000;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  background: var(--lime);
  color: #000;
}

main {
  min-width: 0;
  padding: clamp(24px, 4vw, 54px) clamp(16px, 4vw, 56px) clamp(40px, 6vw, 80px);
}

section > article {
  padding: clamp(26px, 4vw, 46px) 0;
  border-top: 2px solid var(--hair);
  scroll-margin-top: 92px;
}

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

section > article:last-child {
  padding-bottom: 0;
}

.intro h2 {
  margin-bottom: 12px;
}

h2,
h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.015em;
  scroll-margin-top: 92px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.1;
  color: var(--lime);
}

h3 {
  margin: 26px 0 10px;
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.2;
  color: var(--white);
}

.subtitle {
  margin: 0 0 4px;
  padding-left: 12px;
  border-left: 5px solid var(--blue);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 16px;
  letter-spacing: .14em;
  color: var(--white);
}

p {
  margin: 0 0 16px;
}

section p,
section li {
  max-width: 74ch;
}

section ul,
section ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

section li {
  margin-bottom: 8px;
}

section a {
  border-bottom: 2px solid var(--blue);
}

section strong {
  color: var(--lime);
}

section blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 7px solid var(--blue);
  background: #060606;
}

section blockquote p:last-child {
  margin-bottom: 0;
}

section img {
  display: block;
  height: auto;
  margin: 0 0 18px;
  border: 3px solid var(--lime);
  border-radius: 18px;
}

section table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 16px;
}

section th,
section td {
  border: 2px solid var(--lime);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

section code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 15px;
  background: #111;
  padding: 2px 5px;
}

/* 页脚 */
footer {
  border-top: 3px solid var(--lime);
  background: #000;
}

footer article {
  padding: clamp(22px, 3.6vw, 38px) clamp(16px, 4vw, 56px);
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--hair);
}

.foot-head {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--lime);
}

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

.foot-label {
  font-size: 16px;
  color: var(--dim);
}

.foot-form input {
  width: 208px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--lime);
  border-radius: 999px;
  background: #000;
  color: var(--white);
  font: inherit;
  font-size: 16px;
}

.foot-form button {
  min-height: 44px;
  padding: 8px 20px;
  border: 2px solid var(--lime);
  border-radius: 999px;
  background: var(--lime);
  color: #000;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.foot-form button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.foot-bar p {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 16px;
  letter-spacing: .05em;
  color: var(--dim);
}

/* 滚动出现 */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .18s linear, transform .18s linear;
}

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

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

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

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

  .rail {
    position: sticky;
    top: 0;
    z-index: 25;
    padding: 10px 0;
    border-right: 0;
    border-bottom: 3px solid var(--lime);
    background: #000;
  }

  .rail-nav {
    position: static;
    padding: 0 10px;
  }

  .rail-nav ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .rail-nav li {
    flex: 0 0 auto;
  }

  .rail-nav a {
    white-space: nowrap;
  }

  main {
    padding: 22px 16px 44px;
  }

  .hero {
    min-height: 0;
    padding: 40px 16px 66px;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }

  h1 {
    text-shadow: 4px 4px 0 var(--blue);
  }

  .foot-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-form {
    margin-left: 0;
    width: 100%;
  }

  .foot-form input {
    flex: 1 1 130px;
    width: auto;
  }
}

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