@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue:wght@400;500;600;700&display=swap');

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

:root {
  --g: #00ff80;
  --b: #0000ff;
  --k: #000000;
  --w: #ffffff;
  --line: #0d3524;
  --dim: #7fd8a9;
  --shout: Anton, Impact, "Arial Black", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--k);
  color: var(--w);
  font-family: Epilogue, system-ui, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--shout);
  font-weight: 400;
  letter-spacing: .01em;
}

img { max-width: 100%; }

/* ============ 顶部口号条 ============ */
.ticker {
  background: var(--g);
  color: var(--k);
  border-bottom: 4px solid var(--k);
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-run {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-left: 22px;
  white-space: nowrap;
  font-family: var(--shout);
  font-size: 15px;
  letter-spacing: .18em;
  animation: roll 28s linear infinite;
}

.ticker-run b { font-weight: 400; }
.ticker-run i {
  display: block;
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--b);
}

@keyframes roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ 顶栏 ============ */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: var(--k);
  border-bottom: 4px solid var(--g);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 4px;
  font-family: var(--shout);
  font-size: 21px;
  letter-spacing: .02em;
  color: var(--w);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.brand:hover,
.brand:focus-visible { color: var(--g); }

.nav { position: relative; }

.nav summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 3px solid var(--g);
  color: var(--g);
  font-weight: 700;
  font-size: 16px;
  background: var(--k);
  user-select: none;
}

.nav summary::-webkit-details-marker { display: none; }

.bars {
  display: block;
  width: 18px;
  height: 12px;
  border-top: 3px solid var(--g);
  border-bottom: 3px solid var(--g);
}

.nav[open] summary { background: var(--g); color: var(--k); }
.nav[open] .bars { border-color: var(--k); }

.nav menu {
  margin: 0;
  padding: 8px;
  list-style: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 232px;
  max-height: 72vh;
  overflow-y: auto;
  background: var(--k);
  border: 3px solid var(--g);
}

.nav menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  color: var(--w);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid var(--line);
}

.nav menu li:last-child a { border-bottom: 0; }
.nav menu a:hover,
.nav menu a:focus-visible { background: var(--g); color: var(--k); }

/* ============ 首屏 ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px 18px 120px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  background: var(--k);
}

.hero-art {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  background: repeating-linear-gradient(45deg, #001a0e 0 18px, #000000 18px 36px);
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  filter: grayscale(1) contrast(1.25);
}

.hero-txt {
  position: relative;
  z-index: 1;
  max-width: 980px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 9.5vw, 6.4rem);
  line-height: .98;
  color: var(--g);
  text-shadow: 5px 5px 0 var(--b);
  transform: rotate(-1.6deg);
  overflow-wrap: anywhere;
}

.badge {
  position: absolute;
  top: -52px;
  right: 0;
  z-index: 2;
  display: inline-block;
  padding: 7px 13px;
  background: var(--g);
  color: var(--k);
  border: 3px solid var(--k);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  transform: rotate(5deg);
  white-space: nowrap;
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ 主体两栏 ============ */
main { display: block; }

.col {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 44px;
  align-items: start;
}

.content { min-width: 0; }

.content > div {
  padding: 40px 0;
  border-bottom: 4px solid var(--line);
  scroll-margin-top: 104px;
}

.content > div:last-child { border-bottom: 0; }

.content :is(h2, h3) {
  color: var(--g);
  line-height: 1.05;
  margin: 0 0 2px;
}

.content h2 { font-size: clamp(1.75rem, 5vw, 2.9rem); }
.content h3 { font-size: clamp(1.35rem, 3.6vw, 1.95rem); margin-top: 34px; }

.content hr {
  border: 0;
  border-top: 5px solid var(--g);
  width: 74px;
  margin: 8px 0 22px;
}

.content p { margin: 0 0 18px; }
.content strong { color: var(--g); }

.content a {
  color: var(--g);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content ul,
.content ol { margin: 0 0 20px; padding-left: 22px; }
.content li { margin: 0 0 8px; }

.content blockquote {
  margin: 26px 0;
  padding: 16px 20px;
  border: 3px solid var(--g);
  border-left-width: 11px;
  border-radius: 18px;
  background: #04160d;
}

.content blockquote p:last-child { margin: 0; }

.content figure {
  margin: 26px 0;
  border: 3px solid var(--g);
  border-radius: 18px;
  overflow: hidden;
}

.content img { display: block; height: auto; width: 100%; }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 16px;
}

.content :is(th, td) { border: 2px solid var(--line); padding: 8px 10px; }
.content th { background: #04160d; color: var(--g); text-align: left; }

/* ============ 侧栏 ============ */
.side {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 3px solid var(--g);
  border-radius: 18px;
  background: #050505;
}

.side h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--g);
}

.side hr {
  border: 0;
  border-top: 5px solid var(--b);
  margin: 0 0 14px;
}

.side-nav { display: grid; gap: 2px; }

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--w);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-left: 5px solid transparent;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  background: var(--b);
  border-left-color: var(--g);
}

.totop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  padding: 8px;
  background: var(--g);
  color: var(--k);
  border: 3px solid var(--k);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

/* ============ 页脚 ============ */
footer {
  max-width: 1180px;
  margin: 68px auto 0;
  padding: 30px 18px 44px;
  border-top: 6px solid var(--g);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px 24px;
  align-items: center;
}

.f-brand {
  margin: 0;
  font-family: var(--shout);
  font-size: 22px;
  color: var(--w);
  overflow-wrap: anywhere;
}

.f-note { margin: 0; font-size: 16px; color: var(--dim); }
.f-top { margin: 0; text-align: right; }

.f-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 3px solid var(--g);
  color: var(--g);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.f-top a:hover,
.f-top a:focus-visible { background: var(--g); color: var(--k); }

footer small {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 3px solid var(--line);
  font-size: 15px;
  color: var(--dim);
}

/* ============ 进场 ============ */
.js .content > * {
  opacity: 0;
  transform: translateY(18px);
}

.js .content > .in {
  opacity: 1;
  transform: none;
  transition: opacity .22s linear, transform .22s linear;
}

/* ============ 断点 ============ */
@media (max-width: 900px) {
  .col {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 40px;
  }
  .side { position: static; }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .ticker-run { font-size: 14px; gap: 16px; }
  .hero { padding: 92px 14px 104px; clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
  .badge { top: -46px; right: 2px; font-size: 14px; }
  footer { grid-template-columns: 1fr; }
  .f-top { text-align: left; }
  .nav menu { width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-run { animation: none; }
  .js .content > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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