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

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

html {
  background: #000;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: #fff;
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: .01em;
}

h1,
h2,
h3,
h4,
.brand,
.nav,
.foot,
.rail-h,
.btn {
  font-family: 'Lexend', 'Source Sans 3', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
}

a {
  color: #fff;
  transition: none;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid #00ff80;
  outline-offset: 2px;
}

/* 顶部细条 */
.ticker {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #00ff80;
  color: #000;
  border-bottom: 3px solid #000;
}

.ticker-track {
  padding-left: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  white-space: nowrap;
}

/* 导航 */
.masthead {
  position: fixed;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 60;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #000;
  border-bottom: 3px solid #00ff80;
}

.nav-sw {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: #00ff80;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}

.nav-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: #00ff80;
  color: #000;
  border: 3px solid #00ff80;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.nav-btn:hover {
  background: #000;
  color: #00ff80;
}

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: #000;
  border-bottom: 3px solid #00ff80;
}

.nav-sw:checked ~ .nav {
  display: block;
}

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

.nav-ol a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #1a1a1a;
}

.nav-ol a:hover,
.nav-ol a:focus-visible {
  background: #00ff80;
  color: #000;
}

/* 主区 */
.main {
  padding: 106px 18px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding-bottom: 34px;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  background: #0000ff;
  color: #fff;
  border: 3px solid #fff;
  font-size: 16px;
  font-weight: 700;
  transform: rotate(-1.5deg);
}

.hero-h1 {
  margin: 0 0 26px;
  font-size: clamp(32px, 9vw, 80px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.02em;
  color: #000;
  background: #00ff80;
  display: inline;
  padding: .04em .1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border: 3px solid #fff;
}

.btn-a {
  background: #00ff80;
  color: #000;
}

.btn-a:hover {
  background: #000;
  color: #00ff80;
}

.btn-b {
  background: #0000ff;
  color: #fff;
}

.btn-b:hover {
  background: #fff;
  color: #0000ff;
}

.hero-fig {
  position: relative;
  margin: 0;
  min-height: 240px;
  background: #0000ff;
  border: 3px solid #fff;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  transform: scale(1.06);
}

.hero-fig:hover .hero-img {
  filter: none;
}

.hero-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 20px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
}

.hero-fig figcaption {
  position: absolute;
  left: 0;
  bottom: 26px;
  padding: 6px 12px;
  background: #00ff80;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  border: 3px solid #000;
  border-left: 0;
}

/* 正文 + 右侧栏 */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 40px;
}

.stream {
  min-width: 0;
}

.stream > div {
  padding: 40px 0;
  border-top: 3px solid #00ff80;
  scroll-margin-top: 110px;
}

.stream > div:first-child {
  border-top: 0;
  padding-top: 8px;
}

.stream h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.04;
  letter-spacing: -.015em;
}

.stream h2::before {
  content: "";
  display: block;
  width: 64px;
  height: 9px;
  margin-bottom: 14px;
  background: #0000ff;
}

.stream h3 {
  margin: 30px 0 10px;
  font-size: 22px;
  line-height: 1.3;
  color: #00ff80;
}

.stream p,
.stream ul,
.stream ol,
.stream blockquote,
.stream table {
  max-width: 70ch;
}

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

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

.stream li {
  margin: 0 0 8px;
}

.stream a {
  color: #00ff80;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stream a:hover {
  background: #00ff80;
  color: #000;
  text-decoration: none;
}

.stream strong {
  color: #00ff80;
}

.stream blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  background: #0d0d0d;
  border-left: 9px solid #00ff80;
}

.stream img {
  display: block;
  height: auto;
  margin: 22px 0;
  border: 3px solid #fff;
}

.stream time {
  display: inline-block;
  padding: 2px 9px;
  background: #00ff80;
  color: #000;
  font-size: 16px;
  font-weight: 700;
}

.stream table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.stream th,
.stream td {
  padding: 10px;
  border: 2px solid #fff;
  text-align: left;
}

.stream th {
  background: #0000ff;
}

.stream code {
  padding: 1px 5px;
  background: #111;
  border: 1px solid #333;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
}

.stream hr {
  height: 0;
  margin: 28px 0;
  border: 0;
  border-top: 3px dashed #333;
}

/* 右栏 */
.rail {
  align-self: start;
  padding: 18px;
  background: #000;
  border: 3px solid #fff;
}

.rail-h {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.2;
  color: #00ff80;
}

.rail .subtitle {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid #0000ff;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.rail-ol {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.rail-ol li {
  counter-increment: rail;
  border-bottom: 2px solid #1a1a1a;
}

.rail-ol a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.rail-ol a::before {
  content: counter(rail, decimal-leading-zero);
  font-weight: 700;
  color: #00ff80;
}

.rail-ol a:hover {
  background: #00ff80;
  color: #000;
}

.rail-ol a:hover::before {
  color: #0000ff;
}

.totop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  background: #0000ff;
  color: #fff;
  border: 3px solid #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.totop:hover {
  background: #fff;
  color: #0000ff;
}

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 20px;
  padding: 22px 16px 34px;
  border-top: 3px solid #0000ff;
  text-align: center;
}

.foot-brand a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #00ff80;
  font-size: 18px;
  text-decoration: none;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.foot-nav a:hover {
  background: #00ff80;
  color: #000;
}

.foot-copy {
  font-size: 16px;
  color: #b9b9b9;
}

/* 桌面端 */
@media (min-width: 960px) {
  body {
    padding-left: 264px;
  }

  .masthead {
    top: 34px;
    right: auto;
    bottom: 0;
    width: 264px;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 0 24px;
    border-right: 3px solid #00ff80;
    border-bottom: 0;
    overflow-y: auto;
  }

  .nav-btn,
  .nav-sw {
    display: none;
  }

  .brand {
    padding: 0 18px 18px;
    font-size: 24px;
    border-bottom: 3px solid #0000ff;
  }

  .nav {
    position: static;
    display: block;
    border-bottom: 0;
    background: transparent;
  }

  .nav-ol a {
    padding: 0 18px;
    min-height: 52px;
    font-size: 17px;
    border-bottom: 2px solid #1a1a1a;
  }

  .main {
    padding: 80px 40px 0;
    max-width: 1220px;
    margin: 0 auto;
  }

  .hero {
    grid-template-columns: 1fr 1.02fr;
    gap: 32px;
    align-items: stretch;
    min-height: calc(100vh - 150px);
    padding-bottom: 48px;
  }

  .hero-copy {
    align-self: center;
  }

  .hero-fig,
  .hero-img,
  .hero-fallback {
    min-height: 420px;
  }

  .hero-fig figcaption {
    bottom: 60px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr) 268px;
    gap: 40px;
  }

  .rail {
    position: sticky;
    top: 108px;
  }

  .foot {
    justify-content: center;
  }
}

@media (min-width: 1240px) {
  .main {
    padding-left: 56px;
    padding-right: 56px;
  }
}

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

  .hero-img {
    transform: none;
  }
}

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