@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');

:root {
  --neon: #87ff71;
  --mustard: #ffce5c;
  --ink: #192617;
  --paper: #ffffff;
  --cream: #fbfaf2;
  --soft: rgba(25, 38, 23, 0.16);
  --edge: 3px solid var(--ink);
  --barh: 78px;
  --font: 'Rubik', 'Nunito Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(25, 38, 23, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--neon);
  border-bottom: var(--edge);
}

.bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 14px, var(--ink) 14px 28px);
}

.bnav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bnav.left ol {
  justify-content: flex-end;
}

.bnav.right ol {
  justify-content: flex-start;
}

.bnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bnav li:nth-child(3n + 2) a {
  background: var(--mustard);
}

.bnav a:hover {
  background: var(--neon);
  transform: translate(-1px, -3px) rotate(-2deg);
  box-shadow: 5px 6px 0 var(--ink);
}

.mark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  background: var(--mustard);
  border: var(--edge);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
  white-space: nowrap;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--barh));
  overflow: hidden;
  isolation: isolate;
  background: repeating-linear-gradient(45deg, #192617 0 18px, #22331f 18px 36px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 58px), 0 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform;
  transform: scale(1.06);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.15) contrast(1.05);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(155deg, rgba(135, 255, 113, 0.82), rgba(25, 38, 23, 0.6) 52%, rgba(255, 206, 92, 0.78));
  mix-blend-mode: multiply;
}

.shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.shape-a {
  top: 10%;
  left: -46px;
  width: 190px;
  height: 190px;
  border: 14px dashed rgba(25, 38, 23, 0.45);
  border-radius: 50%;
}

.shape-b {
  right: -34px;
  bottom: 14%;
  width: 230px;
  height: 210px;
  background: var(--mustard);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(12deg);
  mix-blend-mode: multiply;
}

.hero-band {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 16%;
  height: 32px;
  z-index: 1;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 20px, var(--ink) 20px 40px);
  transform: rotate(-3deg);
  opacity: 0.92;
}

.hero-in {
  position: relative;
  z-index: 2;
  max-width: 940px;
  padding: 30px 24px 90px;
  text-align: center;
}

.hero-sticker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--neon);
  border: var(--edge);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7.4vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- 主体 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 40px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 76px;
}

.art-head {
  margin: 0 0 14px;
  padding-bottom: 22px;
  border-bottom: 4px solid var(--ink);
}

.art-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p.subtitle {
  margin: 0;
  padding-left: 14px;
  font-size: 17px;
  line-height: 1.7;
  color: #35462f;
  border-left: 8px solid var(--mustard);
}

.body {
  font-size: 17px;
}

.body section {
  padding: 34px 0 10px;
  border-top: 3px dashed rgba(25, 38, 23, 0.3);
  scroll-margin-top: calc(var(--barh) + 24px);
}

.body section:first-of-type {
  padding-top: 8px;
  border-top: 0;
}

.body h2 {
  position: relative;
  margin: 8px 0 14px;
  padding-left: 26px;
  font-size: 1.5rem;
  line-height: 1.32;
}

.body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 13px;
  height: 13px;
  background: var(--neon);
  border: 3px solid var(--ink);
  transform: rotate(45deg);
}

.body h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.18rem;
  line-height: 1.4;
}

.body p {
  margin: 0 0 1.05em;
}

.body a {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--mustard);
  text-underline-offset: 3px;
}

.body a:hover {
  background: var(--neon);
}

.body ul,
.body ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.body li {
  margin: 0.35em 0;
}

.body li::marker {
  color: #2f7a1c;
  font-weight: 700;
}

.body blockquote {
  margin: 1.5em 0;
  padding: 18px 20px;
  background: var(--mustard);
  border: var(--edge);
  border-radius: 10px;
  transform: rotate(-0.4deg);
  box-shadow: 6px 6px 0 var(--soft);
}

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

.body table {
  width: 100%;
  margin: 1.3em 0;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 16px;
}

.body th,
.body td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 2px solid var(--ink);
}

.body th {
  background: var(--neon);
}

.body img {
  display: block;
  height: auto;
  margin: 1.3em 0;
  border: var(--edge);
  border-radius: 10px;
}

.body figure {
  margin: 1.4em 0;
}

.body figcaption {
  font-size: 16px;
  color: #3c4b38;
}

.body hr {
  margin: 2em 0;
  border: 0;
  border-top: 3px dashed rgba(25, 38, 23, 0.32);
}

.body code {
  padding: 2px 6px;
  font-size: 15px;
  background: var(--mustard);
  border-radius: 6px;
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: calc(var(--barh) + 20px);
}

.side-card {
  padding: 18px;
  background: var(--paper);
  border: var(--edge);
  border-radius: 10px;
  box-shadow: 8px 8px 0 var(--soft);
  transform: rotate(0.8deg);
}

.side-card h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  border-bottom: 3px dotted var(--ink);
}

.side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-card li + li {
  border-top: 1px dashed rgba(25, 38, 23, 0.3);
}

.side-card a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
  transition: background 0.16s ease, padding 0.16s ease;
}

.side-card a:hover {
  padding-left: 10px;
  background: var(--neon);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 24px;
  padding: 48px 20px 26px;
  color: var(--neon);
  background: var(--ink);
  background-image: repeating-linear-gradient(-45deg, rgba(135, 255, 113, 0.07) 0 12px, transparent 12px 24px);
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
}

.foot-mark {
  margin: 0;
  text-align: center;
  font-size: clamp(2.4rem, 13vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--neon);
  text-shadow: 6px 6px 0 rgba(135, 255, 113, 0.2);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 3px dashed rgba(135, 255, 113, 0.4);
}

.foot address {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mustard);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  text-decoration: none;
  color: var(--neon);
  border: 2px solid rgba(135, 255, 113, 0.45);
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease;
}

.foot-links a:hover {
  color: var(--ink);
  background: var(--neon);
  border-color: var(--neon);
}

.foot-copy {
  max-width: 1180px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 16px;
  color: rgba(135, 255, 113, 0.78);
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .bar {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mark {
    order: -1;
    justify-self: center;
  }

  .bnav ol,
  .bnav.left ol,
  .bnav.right ol {
    justify-content: center;
  }

  .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 34px 16px 52px;
  }

  .side {
    position: static;
  }

  .hero {
    min-height: 94svh;
  }

  .body section {
    scroll-margin-top: 20px;
  }

  .foot {
    clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%);
  }
}

@media (max-width: 430px) {
  .bnav a {
    padding: 0 11px;
  }

  .hero-in {
    padding: 20px 16px 96px;
  }

  .shape-a {
    width: 130px;
    height: 130px;
    border-width: 10px;
  }

  .shape-b {
    width: 160px;
    height: 150px;
  }
}

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

  * {
    transition: none !important;
    animation: none !important;
  }

  .hero-bg {
    transform: none !important;
  }
}

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