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

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

:root {
  --lime: #80ff00;
  --green: #00ff00;
  --ink: #1f2617;
  --bg: #0f1509;
  --panel: #182010;
  --paper: #eaf7dd;
  --line: #3a4a2c;
  --f-head: 'Bebas Neue', 'Source Sans 3', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-body: 'Source Sans 3', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
  filter: saturate(115%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(128, 255, 0, .12) 1px, transparent 1px),
    radial-gradient(rgba(0, 255, 0, .08) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
  mix-blend-mode: screen;
  opacity: .75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); }

h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: .02em;
  margin: 0 0 .45em;
  text-transform: uppercase;
  word-break: break-word;
}
h1 { font-size: clamp(38px, 7.4vw, 76px); color: var(--lime); text-shadow: 4px 4px 0 rgba(0, 0, 0, .8); }
h2 { font-size: clamp(26px, 4.4vw, 42px); }
h3 { font-size: clamp(20px, 3vw, 26px); }

small {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--green);
  background: var(--ink);
  border: 2px solid var(--green);
  padding: 2px 9px;
  margin: 0 0 10px;
  transform: rotate(-2deg);
  text-transform: uppercase;
}

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

main { position: relative; z-index: 1; }

/* ---------- 头部：品牌独占一行 + 分组菜单行 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 19, 8, .95);
  backdrop-filter: blur(6px);
  border-bottom: 5px solid var(--lime);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  border-bottom: 2px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--lime);
  font-family: var(--f-head);
  font-size: clamp(21px, 4.2vw, 30px);
  letter-spacing: .04em;
  line-height: 1.1;
}
.brand::before {
  content: "";
  width: 15px;
  height: 26px;
  background: var(--green);
  border: 3px solid var(--ink);
  transform: rotate(-9deg);
  flex: none;
}
.logo { width: 44px; height: 44px; object-fit: cover; border: 3px solid var(--ink); }

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--green);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  border: 3px solid var(--ink);
  transform: rotate(-1.5deg);
  flex: none;
}
.contact:hover { background: var(--lime); }

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px 12px;
}
.menu p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.menu p + p { padding-left: 14px; border-left: 3px dashed var(--line); }
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--line);
  background: #131a0c;
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.menu a:nth-child(odd) { transform: rotate(-.8deg); }
.menu a:nth-child(even) { transform: rotate(.8deg); }
.menu a:hover, .menu a:focus-visible { background: var(--lime); color: var(--ink); border-color: var(--ink); }

/* ---------- 跑马灯色带 ---------- */
.band {
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
  border-bottom: 5px solid var(--ink);
  padding: 5px 0;
  font-family: var(--f-head);
  font-size: clamp(17px, 2.8vw, 26px);
  letter-spacing: .14em;
}
.band p {
  margin: 0;
  display: flex;
  gap: 26px;
  width: max-content;
  white-space: nowrap;
  animation: march 26s linear infinite;
}
@keyframes march { to { transform: translateX(-50%); } }

/* ---------- Hero：左文右图 + 斜切 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 4vw, 46px);
  align-items: center;
  min-height: 70vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 54px) 16px clamp(38px, 6vw, 76px);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 24px;
  background: var(--lime);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero-txt { text-align: center; }

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 11px;
  background: var(--lime);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .18em;
  transform: rotate(-2deg);
}
.lede {
  max-width: 44ch;
  margin: 16px auto 24px;
  color: #d5eac2;
  font-size: 18px;
}
.cta a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  background: var(--green);
  color: var(--ink);
  border: 4px solid var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transform: rotate(1.4deg);
}
.cta a:hover { background: var(--lime); }

.hero-fig {
  position: relative;
  margin: 0;
  min-height: min(50vh, 400px);
  border: 6px solid var(--ink);
  outline: 6px solid var(--lime);
  outline-offset: -16px;
  background:
    linear-gradient(140deg, #27351a, #0b1106);
  transform: rotate(-2deg);
  overflow: hidden;
}
.hero-img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }

.stickers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.stickers span {
  position: absolute;
  width: 44px; height: 44px;
  border: 4px solid var(--ink);
  mix-blend-mode: multiply;
  animation: jitter 3.6s ease-in-out infinite;
}
.stickers .s1 { top: 12%; left: 8%; background: var(--lime); }
.stickers .s2 { top: 30%; right: 10%; width: 34px; height: 34px; background: var(--green); animation-delay: .5s; }
.stickers .s3 { bottom: 16%; left: 20%; width: 56px; height: 30px; background: var(--green); animation-delay: 1.1s; }
.stickers .s4 { bottom: 30%; right: 18%; background: var(--lime); animation-delay: .8s; }
.stickers .s5 { top: 55%; left: 46%; width: 26px; height: 26px; background: var(--paper); animation-delay: 1.6s; }
@keyframes jitter {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  50% { transform: translate(3px, -4px) rotate(7deg); }
}

/* ---------- 主体：左 aside + 右正文 ---------- */
.shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 52px) 16px 72px;
}

.rail {
  position: sticky;
  top: 132px;
  border: 4px solid var(--ink);
  outline: 3px solid var(--lime);
  outline-offset: -10px;
  background: var(--panel);
  padding: 16px 14px 18px;
  transform: rotate(-1deg);
}
.rail h2 { font-size: 26px; color: var(--lime); margin: 6px 0 12px; }
.rail-list { display: grid; gap: 2px; margin: 0 0 16px; }
.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px dashed var(--line);
}
.rail-list a:hover, .rail-list a:focus-visible { background: var(--lime); color: var(--ink); }
.totop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 3px solid var(--green);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  transform: rotate(-2deg);
}
.totop:hover { background: var(--green); color: var(--ink); }

.content { min-width: 0; }

.content > section {
  border-top: 6px solid var(--lime);
  padding: clamp(24px, 4vw, 44px) 0;
  animation: rise .55s ease both;
}
.content > section:nth-child(even) {
  background: linear-gradient(180deg, rgba(128, 255, 0, .05), transparent 62%);
  padding-inline: 12px;
  border-top-style: dashed;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.content h2 { color: var(--lime); }
.content h3 { color: var(--green); }
.content p { max-width: 70ch; margin: 0 0 1em; }
.content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.content a:hover { background: var(--lime); color: var(--ink); }
.content strong, .content b { color: var(--lime); }
.content ul, .content ol { padding-left: 24px; margin: 0 0 1.1em; }
.content li { margin: .4em 0; }
.content blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 8px solid var(--green);
  background: #151d0e;
}
.content figure {
  margin: 22px 0;
  border: 4px solid var(--ink);
  outline: 3px solid var(--lime);
  outline-offset: -9px;
  background: #121a0b;
}
.content img { border: 4px solid var(--ink); width: 100%; }
.content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
.content th, .content td { border: 2px solid var(--line); padding: 9px; text-align: left; }
.content th { background: var(--ink); color: var(--lime); }
.content hr { border: 0; border-top: 4px dashed var(--line); margin: 26px 0; }
.content aside {
  border: 3px solid var(--green);
  padding: 12px 16px;
  margin: 20px 0;
  background: #141d0d;
}
.content code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 15px; }

section[id] { scroll-margin-top: 150px; }

/* ---------- 页脚 ---------- */
.site-foot {
  position: relative;
  z-index: 1;
  border-top: 6px solid var(--lime);
  background: #0b1006;
}
.cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 4.6vw, 50px) 16px;
}
.site-foot section { border-top: 4px solid var(--line); padding-top: 14px; min-width: 0; }
.site-foot h2 { font-size: 24px; color: var(--green); margin-bottom: .35em; }
.f-desc { color: #c2d9ad; margin: .3em 0 0; max-width: 30ch; }
.f-links { display: grid; gap: 2px; margin-top: 6px; }
.f-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 2px dashed var(--line);
}
.f-links a:hover, .f-links a:focus-visible { background: var(--green); color: var(--ink); }

.sub { display: grid; gap: 8px; margin-top: 10px; }
.sub input {
  min-height: 46px;
  padding: 0 12px;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.sub button {
  min-height: 48px;
  border: 3px solid var(--ink);
  background: var(--green);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transform: rotate(-1deg);
}
.sub button:hover { background: var(--lime); }

.foot-base {
  border-top: 4px solid var(--line);
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px 18px;
}
.foot-base p { margin: 0; font-size: 16px; color: #a5bd92; letter-spacing: .06em; }

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; transform: none; }
  .rail-list { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-fig { order: 2; min-height: 250px; }
  section[id] { scroll-margin-top: 120px; }
}

@media (max-width: 720px) {
  .menu { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .menu p { flex-wrap: nowrap; }
  .menu p + p { padding-left: 0; border-left: 0; }
  .content > section:nth-child(even) { padding-inline: 8px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .cols { grid-template-columns: 1fr; }
  .rail-list { grid-template-columns: 1fr; }
  .hero h1 { text-shadow: 3px 3px 0 rgba(0, 0, 0, .8); }
  .lede { font-size: 17px; }
}

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

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