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

:root {
  --ink: #192617;
  --deep: #0d170c;
  --neon: #87ff71;
  --mustard: #ffce5c;
  --paper: #f2f7e9;
  --paper-2: #e6efd9;
}

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

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

body {
  margin: 0;
  background: var(--deep);
  color: var(--paper);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--neon);
  color: var(--ink);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip:focus { transform: translateY(0); }

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

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(135, 255, 113, .5) 2px, transparent 2px);
  background-size: 34px 34px;
  background-color: var(--deep);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  filter: grayscale(.25) contrast(1.15);
  border-radius: 0;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(135, 255, 113, .22), transparent 62%),
    linear-gradient(180deg, rgba(13, 23, 12, .82), rgba(13, 23, 12, .5) 55%, rgba(13, 23, 12, .9));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 20em;
  padding: 0 20px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7.6vw, 4.6rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--neon);
  text-shadow:
    4px 4px 0 var(--ink), -3px 3px 0 var(--ink),
    3px -3px 0 var(--ink), -3px -3px 0 var(--ink);
}

/* 底部导航条 */
.dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  z-index: 90;
}
.dock ol {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(13, 23, 12, .94);
  border: 2px solid var(--neon);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
}
.dock li { margin: 0; }

.dock-link a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 9px;
  border-radius: 10px;
  color: var(--paper);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: .01em;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.dock-link a:hover,
.dock-link a:focus-visible {
  background: var(--neon);
  color: var(--ink);
  transform: rotate(-1.5deg);
}

.dock-brand { margin-inline: auto; }
.dock-brand a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--neon);
  text-decoration: none;
  border-left: 2px dashed rgba(135, 255, 113, .45);
  border-right: 2px dashed rgba(135, 255, 113, .45);
}
.dock-brand a:hover { color: var(--mustard); }

.dock-cta a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, transform .16s ease;
}
.dock-cta a:hover { background: var(--neon); transform: rotate(1.5deg); }

.burger {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  background: transparent;
  border: 2px solid var(--neon);
  border-radius: 12px;
  cursor: pointer;
}
.burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--neon);
  transition: transform .22s ease, opacity .22s ease;
}
.dock.is-open .burger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.dock.is-open .burger-bar:nth-child(2) { opacity: 0; }
.dock.is-open .burger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 展开遮罩 */
.dock.is-open ol {
  position: fixed;
  inset: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 92px 24px 40px;
  border: 0;
  border-radius: 0;
  background-color: var(--deep);
  background-image: radial-gradient(rgba(135, 255, 113, .22) 2px, transparent 2px);
  background-size: 26px 26px;
  box-shadow: none;
  overflow-y: auto;
}
.dock.is-open .dock-brand {
  margin: 0 auto 14px;
  font-size: 1.5rem;
  order: -1;
}
.dock.is-open .dock-brand a {
  border: 0;
  font-size: 1.5rem;
  color: var(--mustard);
}
.dock.is-open .dock-link { display: block; width: 100%; }
.dock.is-open .dock-link a {
  display: block;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  min-height: 52px;
  padding: 12px;
  border-radius: 14px;
}
.dock.is-open .dock-link a:hover { transform: none; }
.dock.is-open .dock-hamb {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 95;
}
.dock.is-open .dock-cta { margin-top: 16px; }
.dock.is-open .dock-cta a { justify-content: center; padding: 12px 26px; font-size: 1.05rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.dock.is-open .dock-link { animation: rise .3s ease both; }
.dock.is-open .dock-link:nth-child(1) { animation-delay: .03s; }
.dock.is-open .dock-link:nth-child(2) { animation-delay: .06s; }
.dock.is-open .dock-link:nth-child(3) { animation-delay: .09s; }
.dock.is-open .dock-link:nth-child(4) { animation-delay: .12s; }
.dock.is-open .dock-link:nth-child(5) { animation-delay: .15s; }
.dock.is-open .dock-link:nth-child(6) { animation-delay: .18s; }
.dock.is-open .dock-link:nth-child(7) { animation-delay: .21s; }
.dock.is-open .dock-link:nth-child(8) { animation-delay: .24s; }

/* 主体 */
main {
  position: relative;
  z-index: 2;
  margin-top: -30px;
  padding-top: 68px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(25, 38, 23, .13) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--ink);
  clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
}

main > article {
  max-width: 1160px;
  margin-inline: auto;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 258px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 5vw, 64px) clamp(30px, 5vw, 56px);
  background: var(--paper);
}

.band-aside {
  background: var(--neon);
  color: var(--ink);
  border: 2px dashed var(--ink);
  border-radius: 18px;
  border-bottom: 6px solid var(--mustard);
  padding: 18px 16px;
  transform: rotate(-1.2deg);
  box-shadow: 6px 6px 0 var(--ink);
}
.band-aside h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: .08em;
}
.band-aside ul { list-style: none; margin: 0; padding: 0; }
.band-aside li { margin: 0; }
.band-aside a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(25, 38, 23, .28);
}
.band-aside li:last-child a { border-bottom: 0; }
.band-aside a:hover { background: var(--ink); color: var(--neon); }

.band-main h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.subtitle {
  display: inline-block;
  margin: 0 0 24px;
  padding: 3px 12px;
  background: var(--mustard);
  border-radius: 8px;
  font-weight: 600;
  transform: rotate(-.9deg);
  color: var(--ink);
}

.band-fig {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border-bottom: 6px solid var(--mustard);
}
.band-fig img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  border-bottom: 0;
}

main > article:not(.band) {
  padding: clamp(30px, 5vw, 58px) clamp(18px, 5vw, 64px);
  scroll-margin-top: 26px;
  border-top: 2px dashed rgba(25, 38, 23, .25);
}
main > article:not(.band):nth-of-type(even) { background: rgba(255, 206, 92, .16); }

main h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -.01em;
}
main h3 { font-size: 1.2rem; margin: 26px 0 10px; }
main p { margin: 0 0 16px; }
main ul, main ol { margin: 0 0 18px; padding-left: 1.3em; }
main li { margin: 6px 0; }
main a {
  color: #145c22;
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
main a:hover { background: var(--neon); color: var(--ink); }
main img {
  border-radius: 18px;
  border-bottom: 5px solid var(--mustard);
}
main figure { margin: 24px 0; }
main blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  background: var(--mustard);
  border-left: 8px solid var(--ink);
  border-radius: 18px;
}
main blockquote p:last-child { margin: 0; }
main table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 20px;
}
main th, main td { padding: 8px 10px; border-bottom: 1px dashed rgba(25, 38, 23, .35); text-align: left; }

/* 页脚 */
footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: clamp(34px, 5vw, 56px) clamp(18px, 5vw, 64px) 120px;
  background: var(--deep);
  border-top: 4px solid var(--neon);
  color: var(--paper);
}
footer p { margin: 0; font-size: 1rem; }
footer .f-brand { font-size: 1.5rem; font-weight: 700; color: var(--neon); letter-spacing: .02em; }
footer .f-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
footer .f-links a:hover { color: var(--mustard); }
footer .f-key { font-weight: 600; color: var(--mustard); }
footer .f-desc { opacity: .8; font-size: 1rem; }
footer small {
  grid-column: 1 / -1;
  display: block;
  margin-top: 6px;
  padding-top: 16px;
  text-align: center;
  border-top: 1px dashed rgba(242, 247, 233, .3);
  opacity: .85;
}

.totop {
  position: fixed;
  right: 14px;
  bottom: 88px;
  z-index: 80;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--mustard);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .16s ease, background .16s ease;
}
.totop:hover { transform: translateY(-3px) rotate(4deg); background: var(--neon); }

@media (max-width: 1100px) {
  .dock-link { display: none; }
  .dock-hamb { order: -1; }
}

@media (max-width: 900px) {
  .band { grid-template-columns: 1fr; }
  .band-aside { transform: none; }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
  main { clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%); padding-top: 54px; margin-top: -22px; }
  footer { grid-template-columns: 1fr; padding-bottom: 108px; }
  .totop { bottom: 84px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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