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

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

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

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: Rubik, "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: #000000; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }

:focus-visible {
  outline: 4px solid #0000ff;
  outline-offset: 2px;
}

/* 顶部细条 */
.ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #00ff80;
  padding: 8px clamp(18px, 5vw, 56px);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
  overflow: hidden;
}
.ticker::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: #00ff80;
  border-radius: 2px;
}
.ticker-t { overflow: hidden; text-overflow: ellipsis; }

/* 页头两行 */
.top {
  background: #ffffff;
  border-bottom: 4px solid #000000;
}
.brand-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 32px) 2px;
  display: flex;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
  color: #000000;
}
.mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 3px solid #000000;
  border-radius: 4px;
  background: #00ff80;
  object-fit: cover;
}
.brand-name {
  font-size: clamp(24px, 4.8vw, 42px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
  box-shadow: inset 0 -.26em 0 #00ff80;
}

.menu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px clamp(18px, 4vw, 32px) 16px;
}
.menu ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 14px;
  border: 3px solid #000000;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.menu a:hover,
.menu a:focus-visible {
  background: #0000ff;
  border-color: #0000ff;
  color: #ffffff;
}

/* 主栅格 */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 32px) 8px;
}
.doc { min-width: 0; }

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 4px solid #000000;
  border-radius: 4px;
  background: #00ff80;
  scroll-margin-top: 20px;
}
.hero-grid {
  position: absolute;
  inset: -40% 0 -40%;
  background-image:
    linear-gradient(rgba(0, 0, 0, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .18) 1px, transparent 1px);
  background-size: 28px 28px;
  will-change: transform;
}
.hero-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 45vh;
  padding: clamp(26px, 5vw, 52px) 20px;
  text-align: center;
}
.hero-h1 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(30px, 6vw, 56px);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero-p {
  margin: 0;
  max-width: 54ch;
  font-size: 17px;
  font-weight: 500;
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}
.hero-art span {
  width: 36px;
  height: 36px;
  border: 4px solid #000000;
  border-radius: 4px;
  background: #ffffff;
}
.hero-art span:nth-child(1) { transform: translateY(-6px) rotate(-5deg); }
.hero-art span:nth-child(2) { background: #0000ff; transform: translateY(4px); }
.hero-art span:nth-child(3) { background: #000000; transform: translateY(-3px) rotate(4deg); }
.hero-img {
  width: 100%;
  max-width: 320px;
  border: 4px solid #000000;
  border-radius: 4px;
  background: #ffffff;
}

/* 正文区块 */
.doc > section:not(.hero) {
  border-top: 4px solid #000000;
  padding: 32px 0 6px;
  scroll-margin-top: 96px;
}
.doc > section:first-of-type:not(.hero) { border-top: 4px solid #000000; }

.doc h2 {
  font-size: clamp(22px, 3.6vw, 34px);
  margin: .1em 0 .6em;
}
.doc h2 > span { box-shadow: inset 0 -.32em 0 #00ff80; }
.doc h3 {
  font-size: 20px;
  margin: 1.5em 0 .4em;
}
.doc h3 > span { box-shadow: inset 0 -.3em 0 #00ff80; }

.doc p { max-width: 72ch; }
.doc ul, .doc ol { margin: 0 0 1.1em; padding-left: 1.5em; max-width: 72ch; }
.doc li { margin: .4em 0; }
.doc a { color: #0000ff; text-underline-offset: 3px; }
.doc a:hover { background: #00ff80; color: #000000; }
.doc strong { font-weight: 700; }
.doc blockquote {
  margin: 0 0 1.2em;
  padding: 4px 0 4px 16px;
  border-left: 6px solid #00ff80;
}
.doc img { border: 4px solid #000000; border-radius: 4px; margin: .3em 0 1em; }
.doc figure { margin: 0 0 1.2em; }
.doc figcaption { font-size: 16px; }
.doc code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: #00ff80;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 16px;
}
.doc pre {
  overflow-x: auto;
  padding: 14px;
  border: 4px solid #000000;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.6;
}
.doc pre code { background: none; padding: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 16px; }
.doc th, .doc td { border: 2px solid #000000; padding: 8px 10px; text-align: left; }
.doc th { background: #00ff80; }
.doc hr { border: 0; border-top: 4px solid #000000; margin: 1.6em 0; }

/* 右侧栏 */
.rail {
  position: sticky;
  top: 16px;
  align-self: start;
  padding-top: 32px;
}
.rail-h {
  font-size: 16px;
  margin: 0 0 8px;
  letter-spacing: .12em;
}
.rail-h > span {
  display: inline-block;
  background: #000000;
  color: #00ff80;
  padding: 2px 10px;
  border-radius: 4px;
}
.rail-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 3px solid #000000;
}
.rail-list li { border-bottom: 2px solid #000000; }
.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 2px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  color: #000000;
}
.rail-list a::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: #0000ff;
  border-radius: 2px;
}
.rail-list a:hover { background: #00ff80; }
.rail-list a:hover::before { background: #000000; }
.rail-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 3px solid #000000;
  border-radius: 4px;
  background: #0000ff;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 #000000;
}
.rail-top:hover { background: #00ff80; color: #000000; }

/* 页脚 */
.ft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 28px;
  border-top: 4px solid #000000;
  background: #000000;
  color: #ffffff;
  padding: 36px clamp(18px, 5vw, 56px) 22px;
}
.ft p { margin: 0; }
.ft-cta { grid-column: 1 / -1; }
.ft-cta a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border: 4px solid #00ff80;
  border-radius: 4px;
  background: #00ff80;
  color: #000000;
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}
.ft-cta a::after {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 4px solid #000000;
  border-radius: 4px;
  background: #0000ff;
}
.ft-cta a:hover { background: #ffffff; border-color: #ffffff; }
.ft-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  align-self: start;
}
.ft-links a {
  display: inline-block;
  min-height: 44px;
  padding: 9px 0;
  margin-right: 16px;
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
}
.ft-links a:hover { color: #00ff80; }
.ft-copy {
  grid-column: 1 / -1;
  display: block;
  border-top: 3px solid #ffffff;
  padding-top: 12px;
  color: #c8ffdd;
  font-size: 16px;
}

/* 入场动画：无过渡，瞬间显隐 */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; }

@media (max-width: 880px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-top: 18px;
  }
  .rail {
    position: static;
    padding-top: 0;
    padding-bottom: 10px;
    margin-top: 24px;
    border-top: 4px solid #000000;
  }
  .hero-in { min-height: 0; padding: 26px 16px 30px; }
  .ft { grid-template-columns: 1fr; }
  .ft-cta a { font-size: 20px; padding: 18px; }
  .ft-brand { font-size: 20px; }
}

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

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