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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: figtree, "Noto Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #e6f7d0;
  background-color: #1f2617;
  background-image: radial-gradient(rgba(128, 255, 0, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: clip;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #00ff00;
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 顶部 ---------- */

.mast {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #161c0f;
  border-bottom: 3px solid #80ff00;
}

.mastin {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: #80ff00;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #80ff00;
  color: #1f2617;
  font-size: 18px;
  font-weight: 900;
  object-fit: cover;
  transform: rotate(-6deg);
}

.menutog {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 22px;
  background: #80ff00;
  color: #1f2617;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.burger {
  display: grid;
  gap: 4px;
  width: 18px;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #1f2617;
  transition: transform .2s ease;
}

.mast.open .burger span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.mast.open .burger span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 74px 20px 30px;
  overflow: auto;
  background: #0e130a;
  border-bottom: 4px solid #80ff00;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.mast.open .menu {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.menu ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: grid;
  gap: 2px;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(128, 255, 0, .22);
  color: #e8ffd0;
  text-decoration: none;
  font-size: clamp(19px, 4.6vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.menu a i {
  font-style: normal;
  min-width: 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #80ff00;
}

.menu a:hover,
.menu a:focus-visible {
  color: #80ff00;
}

/* ---------- 跑马灯 ---------- */

.ticker {
  overflow: hidden;
  background: #80ff00;
  color: #1f2617;
  border-bottom: 2px solid #1f2617;
  filter: saturate(150%);
}

.tickertrack {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 7px 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  animation: slide 30s linear infinite;
}

.tk-dot {
  color: #2f7a00;
}

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

/* ---------- 骨架 ---------- */

.body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 0;
}

.stream {
  min-width: 0;
}

/* ---------- 大标题 ---------- */

.hero-h1 {
  margin: 0 0 24px;
  padding-top: 14px;
  min-height: 34vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  text-wrap: balance;
  font-size: clamp(33px, 10.5vw, 82px);
  line-height: .92;
  letter-spacing: -.05em;
  font-weight: 800;
  color: #f2ffe2;
  text-shadow: 5px 5px 0 rgba(128, 255, 0, .22);
}

/* ---------- 正文区块 ---------- */

article > div {
  position: relative;
  margin: 0 0 20px;
  padding: clamp(20px, 4.4vw, 36px);
  border-radius: 28px;
  background: #232c18;
  color: #dcefc8;
  scroll-margin-top: 92px;
  transform: rotate(.22deg);
  transform-origin: 50% 0;
  animation: pop .5s cubic-bezier(.22, .9, .3, 1) both;
}

article > div:nth-of-type(odd) {
  background: #80ff00;
  color: #1f2617;
  transform: rotate(-.4deg);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .35);
}

article > div:nth-of-type(1) { animation-delay: .02s; }
article > div:nth-of-type(2) { animation-delay: .07s; }
article > div:nth-of-type(3) { animation-delay: .12s; }
article > div:nth-of-type(4) { animation-delay: .17s; }
article > div:nth-of-type(5) { animation-delay: .22s; }
article > div:nth-of-type(6) { animation-delay: .27s; }
article > div:nth-of-type(7) { animation-delay: .32s; }
article > div:nth-of-type(n+8) { animation-delay: .36s; }

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

article :is(h2, h3, h4) {
  margin: 0 0 12px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #c8ff86;
}

article > div:nth-of-type(odd) :is(h2, h3, h4) {
  color: #1f2617;
}

article h2 { font-size: clamp(23px, 4.4vw, 34px); }
article h3 { font-size: clamp(19px, 3.2vw, 24px); }
article h4 { font-size: 17px; }

article p {
  margin: 0 0 1em;
  max-width: 64ch;
}

article p:last-child,
article ul:last-child,
article ol:last-child {
  margin-bottom: 0;
}

article :is(ul, ol) {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
  max-width: 64ch;
}

article li {
  margin: 0 0 .45em;
}

article li::marker {
  color: #80ff00;
}

article > div:nth-of-type(odd) li::marker {
  color: #1f2617;
}

article strong {
  font-weight: 800;
}

article a {
  color: #b3ff62;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

article > div:nth-of-type(odd) a {
  color: #12560a;
}

article blockquote {
  margin: 0 0 1.1em;
  padding: 2px 0 2px 16px;
  border-left: 4px solid currentColor;
  max-width: 64ch;
}

article hr {
  border: 0;
  width: 52px;
  height: 4px;
  margin: 4px 0 16px;
  border-radius: 4px;
  background: currentColor;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

article figure {
  margin: 0 0 1.1em;
}

article table {
  width: 100%;
  margin: 0 0 1.1em;
  border-collapse: collapse;
  font-size: 15px;
}

article :is(th, td) {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(128, 255, 0, .25);
}

article > div:nth-of-type(odd) :is(th, td) {
  border-bottom-color: rgba(31, 38, 23, .3);
}

/* ---------- 侧栏 ---------- */

.rail {
  align-self: start;
  padding: 16px 16px 14px;
  border: 2px solid #80ff00;
  border-radius: 28px;
  background: #10160b;
}

.rail hr {
  margin: 10px 0 12px;
  width: 100%;
  height: 2px;
  background: rgba(128, 255, 0, .35);
}

.railtitle {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #80ff00;
}

.raillist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.raillist a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 40px;
  padding: 6px 4px;
  border-bottom: 1px dashed rgba(128, 255, 0, .18);
  color: #d9f5bf;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
}

.raillist em {
  font-style: normal;
  min-width: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #80ff00;
}

.raillist a:hover,
.raillist a:focus-visible {
  color: #80ff00;
}

/* ---------- 页脚 ---------- */

.foot {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 8px auto 0;
  padding: 26px 16px 44px;
  border-top: 4px solid #80ff00;
}

.footcta {
  margin: 0;
  line-height: .9;
}

.footcta a {
  display: inline-block;
  padding: 4px 0;
  color: #80ff00;
  text-decoration: none;
  font-size: clamp(34px, 9vw, 64px);
  font-weight: 800;
  letter-spacing: -.05em;
}

.footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #9db389;
}

.footline a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  border-bottom: 1px solid currentColor;
  color: #d7f8b5;
  text-decoration: none;
}

/* ---------- 断点 ---------- */

@media (min-width: 900px) {
  .body {
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 32px;
    padding-top: 26px;
  }

  .hero-h1 {
    min-height: 45vh;
  }

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

@media (max-width: 520px) {
  .footline {
    font-size: 13px;
  }

  article > div {
    transform: none;
  }

  article > div:nth-of-type(odd) {
    transform: rotate(-.3deg);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
}

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