@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --neon: #00ff80;
  --blue: #0000ff;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

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

img {
  max-width: 100%;
}

::selection {
  background: var(--blue);
  color: #fff;
}

/* 顶部细条 */
.mast {
  border-bottom: 4px solid var(--ink);
}

.ticker {
  margin: 0;
  background: var(--ink);
  color: var(--neon);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.24em;
  padding: 7px 18px;
  white-space: nowrap;
  overflow: hidden;
}

/* 顶部横向导航：品牌居中，菜单分列两侧 */
.topnav ol {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topnav li {
  display: flex;
  min-width: 0;
}

.topnav .nav-l {
  flex: 4 1 0;
}

.topnav .nav-r {
  flex: 3 1 0;
}

.topnav .nav-i a {
  flex: 1;
  border-right: 2px solid var(--ink);
}

.topnav .nav-l a {
  justify-content: flex-start;
}

.topnav .nav-r a {
  justify-content: flex-end;
}

.topnav a {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: var(--blue);
  color: #fff;
}

.topnav .nav-mark {
  flex: 0 0 auto;
  background: var(--neon);
  border-left: 4px solid var(--ink);
  border-right: 4px solid var(--ink);
}

.topnav .nav-mark a {
  gap: 8px;
  padding: 8px 18px;
  font-size: 20px;
  letter-spacing: -0.03em;
  justify-content: center;
}

.topnav .nav-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.topnav .nav-mark a:hover,
.topnav .nav-mark a:focus-visible {
  background: var(--ink);
  color: var(--neon);
}

/* 粘性锚点条 */
.rail {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 4px solid var(--neon);
}

.rail ol {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.rail a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 15px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  border-right: 1px solid #333;
}

.rail a:hover,
.rail a:focus-visible,
.rail a[aria-current] {
  background: var(--neon);
  color: var(--ink);
}

/* 首屏 */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 70vh;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 64px 24px 108px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 0 100%);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(1) contrast(1.35);
}

.hero-bg {
  position: absolute;
  right: -1vw;
  bottom: -1.6vw;
  z-index: -1;
  font-size: clamp(72px, 20vw, 260px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 3px var(--blue);
}

.hero-in {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 28px;
  max-width: 15ch;
  font-size: clamp(38px, 7.4vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--neon);
}

.hero-more {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 28px;
  border: 4px solid var(--neon);
  color: var(--neon);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-more:hover,
.hero-more:focus-visible {
  background: var(--neon);
  color: var(--ink);
}

/* 主体布局 */
.wrap {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 0 48px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.side {
  position: sticky;
  top: 64px;
  border: 4px solid var(--ink);
  background: var(--paper);
}

.side-h {
  margin: 0;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--neon);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.side-h span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tick {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--neon);
}

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

.side-list li {
  border-bottom: 3px solid var(--ink);
}

.side-list li:last-child {
  border-bottom: 0;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  border-left: 8px solid transparent;
}

.side-list a:hover,
.side-list a:focus-visible {
  border-left-color: var(--blue);
  background: var(--neon);
}

.side-top {
  margin: 0;
  border-top: 4px solid var(--ink);
}

.side-top a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.side-top a:hover,
.side-top a:focus-visible {
  background: var(--neon);
  color: var(--ink);
}

.stream {
  min-width: 0;
}

.prose {
  font-size: 17px;
}

.prose > section {
  scroll-margin-top: 84px;
}

.prose > section + section {
  margin-top: 64px;
}

.prose h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 14px;
  margin: 0 0 22px;
  padding-top: 20px;
  border-top: 8px solid var(--neon);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.prose h2 > span {
  display: inline-block;
}

.prose h2 > span::after {
  content: "";
}

.prose h3 {
  margin: 38px 0 12px;
  padding-left: 12px;
  border-left: 10px solid var(--blue);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.32;
}

.prose > section > h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

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

.prose strong {
  background: var(--neon);
  padding: 1px 3px;
  font-weight: 700;
}

.prose em {
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--neon);
}

.prose a:hover,
.prose a:focus-visible {
  background: var(--ink);
  color: var(--neon);
  text-decoration: none;
}

.prose blockquote {
  margin: 0 0 1.2em;
  padding: 12px 18px;
  border-left: 10px solid var(--neon);
  background: #f1f1f1;
  font-weight: 500;
}

.prose img {
  height: auto;
  margin: 0 0 1.2em;
  border: 4px solid var(--ink);
}

.prose figure {
  margin: 0 0 1.2em;
}

.prose figcaption {
  font-size: 16px;
  color: #444;
}

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

.prose th,
.prose td {
  border: 3px solid var(--ink);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--ink);
  color: var(--neon);
  font-weight: 700;
}

.prose code,
.prose pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}

.prose time {
  font-weight: 700;
  color: var(--blue);
}

.prose hr {
  height: 0;
  margin: 2em 0;
  border: 0;
  border-top: 4px solid var(--ink);
}

/* 页脚 */
.foot {
  background: var(--ink);
  color: #fff;
  border-top: 10px solid var(--neon);
  padding: 48px 24px 16px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.foot-ad {
  font-style: normal;
  display: block;
}

.foot-b {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--neon);
}

.foot-k {
  display: block;
  padding-top: 10px;
  border-top: 4px solid var(--blue);
  font-size: 16px;
  color: #9d9d9d;
  letter-spacing: 0.1em;
}

.foot-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 16px;
  border-bottom: 1px solid #2c2c2c;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--neon);
}

.foot-cr {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 16px 0 0;
  border-top: 1px solid #2c2c2c;
  font-size: 16px;
  color: #9d9d9d;
}

/* 动效 */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.side-list li {
  animation: rise 0.3s steps(5, end) both;
}

.side-list li:nth-child(1) { animation-delay: 0.02s; }
.side-list li:nth-child(2) { animation-delay: 0.06s; }
.side-list li:nth-child(3) { animation-delay: 0.1s; }
.side-list li:nth-child(4) { animation-delay: 0.14s; }
.side-list li:nth-child(5) { animation-delay: 0.18s; }
.side-list li:nth-child(6) { animation-delay: 0.22s; }
.side-list li:nth-child(7) { animation-delay: 0.26s; }

/* 窄屏 */
@media (max-width: 880px) {
  .topnav ol {
    flex-wrap: wrap;
  }

  .topnav .nav-mark {
    order: -1;
    flex: 1 0 100%;
    border-left: 0;
    border-right: 0;
    border-bottom: 4px solid var(--ink);
  }

  .topnav .nav-mark a {
    width: 100%;
    justify-content: center;
  }

  .topnav .nav-l,
  .topnav .nav-r {
    flex: 1 0 33.333%;
  }

  .topnav .nav-i a {
    justify-content: center;
    min-height: 46px;
    padding: 8px 6px;
    font-size: 16px;
    border-bottom: 2px solid var(--ink);
  }

  .hero {
    min-height: 54vh;
    align-items: center;
    padding: 44px 18px 76px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 50px);
    max-width: 18ch;
  }

  .wrap {
    grid-template-columns: 1fr;
    gap: 36px 0;
    padding: 32px 18px 56px;
  }

  .side {
    position: static;
  }

  .side-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .side-list li:nth-child(odd) {
    border-right: 3px solid var(--ink);
  }

  .foot {
    padding: 36px 18px 16px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .prose h2 {
    font-size: clamp(24px, 6.4vw, 34px);
  }
}

@media (max-width: 430px) {
  .side-list {
    grid-template-columns: 1fr;
  }

  .side-list li:nth-child(odd) {
    border-right: 0;
  }

  .foot-links {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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