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

:root {
  --ink: #1f2617;
  --lime: #80ff00;
  --green: #00ff00;
  --paper: #f4ffe6;
  --soft: #d8f7bb;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(var(--lime) 1px, transparent 1px);
  background-size: 16px 16px;
  mix-blend-mode: screen;
}

/* ---------- 外框 ---------- */

.shell {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

/* ---------- 左侧贴纸导航 ---------- */

.side {
  position: sticky;
  top: 20px;
  z-index: 40;
  flex: 0 0 248px;
  padding: 16px 16px 18px;
  background: var(--lime);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  transform: rotate(-1.4deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 14px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.brandMark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: var(--ink);
  border-radius: 50% 50% 50% 3px;
}

.t {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.t > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 11px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 999px;
}

.t .deco {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: jitter 2.6s ease-in-out infinite;
}

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

.sideNav li + li {
  margin-top: 4px;
}

.sideNav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 10px;
  border: 2px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sideNav .dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 2px;
}

.sideNav a:hover,
.sideNav a:focus-visible {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
  outline: none;
}

.sideNav a:hover .dot,
.sideNav a:focus-visible .dot {
  background: var(--green);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  padding: 6px 12px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.contact:hover,
.contact:focus-visible {
  background: var(--green);
  color: var(--ink);
}

/* ---------- 主区 ---------- */

main {
  flex: 1 1 auto;
  min-width: 0;
}

.wrap {
  max-width: 880px;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: 70vh;
  padding: 38px 6px 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 6.2vw, 68px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--lime);
  text-shadow: 3px 3px 0 rgba(0, 255, 0, 0.55);
  overflow-wrap: break-word;
}

.hero .lead {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 17px;
  color: var(--soft);
  overflow-wrap: break-word;
}

.heroArt {
  margin-top: 22px;
}

.heroArt img {
  width: 100%;
  max-height: 44vh;
  object-fit: cover;
  border: 3px solid var(--lime);
  border-radius: 10px;
}

.proseSec {
  margin-top: 34px;
}

.prose {
  padding: 24px 22px 30px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  overflow-wrap: break-word;
}

.prose > article {
  scroll-margin-top: 40px;
}

.prose > article + article {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 2px dashed rgba(31, 38, 23, 0.35);
}

.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin: 20px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: #2c6d00;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 700;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 6px solid var(--lime);
  background: #e9ffd0;
  border-radius: 0 10px 10px 0;
}

.prose img {
  border: 3px solid var(--ink);
  border-radius: 10px;
  margin: 6px 0 16px;
}

.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: #e4ffc9;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 0.95em;
}

/* ---------- 滚动条幅 ---------- */

.marq {
  margin-top: 44px;
  padding: 9px 0;
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.12em;
}

.marqIn {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: marq 22s linear infinite;
}

.marqIn span {
  white-space: nowrap;
}

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

.foot {
  background: var(--green);
  color: var(--ink);
}

.footIn {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 20px;
}

.footTop {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.footT {
  margin: 0;
}

.sub {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: 380px;
}

.sub label {
  font-size: 16px;
  font-weight: 700;
}

.subRow {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.sub input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 10px;
}

.sub button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--lime);
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
}

.sub button:hover,
.sub button:focus-visible {
  background: var(--lime);
  color: var(--ink);
}

.footCols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 18px;
}

.footCols dl {
  margin: 0;
}

.footCols dt {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footCols dd {
  margin: 4px 0 0;
}

.footCols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 2px solid rgba(31, 38, 23, 0.3);
}

.footCols dd a:hover,
.footCols dd a:focus-visible {
  border-bottom-color: var(--ink);
  background: var(--lime);
}

.footBar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 2px dashed rgba(31, 38, 23, 0.45);
  font-size: 16px;
}

.footBar p {
  margin: 0;
}

.footBar .top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.footBar .top:hover,
.footBar .top:focus-visible {
  background: var(--ink);
  color: var(--lime);
}

/* ---------- 动效 ---------- */

.anim .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim .reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes jitter {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(14deg) scale(1.15); }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .t .deco,
  .marqIn {
    animation: none;
  }
  .anim .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 窄屏 ---------- */

@media (max-width: 900px) {
  .shell {
    flex-direction: column;
    gap: 16px;
    padding: 0 12px;
  }

  .side {
    position: sticky;
    top: 0;
    width: 100%;
    flex: none;
    padding: 10px 12px 12px;
    border-width: 0 0 3px;
    border-radius: 0 0 14px 14px;
    transform: none;
  }

  .brand {
    padding: 2px 0 8px;
    font-size: 17px;
  }

  .sideT {
    margin: 0 0 8px;
  }

  .sideNav ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .sideNav ul::-webkit-scrollbar {
    display: none;
  }

  .sideNav li {
    flex: 0 0 auto;
  }

  .sideNav li + li {
    margin-top: 0;
  }

  .sideNav a {
    padding: 6px 12px;
    border-color: var(--ink);
    white-space: nowrap;
  }

  .contact {
    margin-top: 10px;
  }

  .hero {
    min-height: 62vh;
    padding: 26px 0 0;
  }

  .hero h1 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .heroArt img {
    max-height: 38vh;
  }

  .prose {
    padding: 18px 15px 24px;
  }

  .prose > article {
    scroll-margin-top: 150px;
  }

  .footCols {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sub {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 28px;
  }
}

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