@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Orbitron:wght@700;900&display=swap');

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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000;
  --paper: #f4f2ea;
  --white: #fff;
  --r: 18px;
  --sh: 6px 6px 0 #000;
  --head: "Orbitron", ui-sans-serif, system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }

article[id] { scroll-margin-top: 118px; }

/* 顶部细条 */
.strip {
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--red);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-align: center;
  word-break: break-word;
}

/* 页头 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--white);
  border-bottom: 3px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-family: var(--head);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.06em;
  box-shadow: 4px 4px 0 var(--red);
}

.site-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, background 0.12s ease;
}

.site-nav a:hover { background: var(--blue); transform: translate(-2px, -2px); }

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 36px;
  min-height: 100svh;
  padding: 56px max(16px, calc((100% - 1120px) / 2)) 64px;
  border-bottom: 5px solid var(--ink);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ink) 1.6px, transparent 1.6px);
  background-size: 20px 20px;
  opacity: 0.15;
  pointer-events: none;
}

.hero > * { position: relative; }
.hero-copy { text-align: right; }

.hero-h1 {
  margin: 0 0 18px;
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.04;
  text-shadow: 4px 4px 0 var(--blue);
  word-break: break-word;
}

.hero-desc {
  max-width: 46ch;
  margin: 0 0 26px auto;
  font-size: 18px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 24px;
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.hero-cta:hover { background: var(--blue); }

.hero-art { position: relative; min-height: 420px; }

.hero-shot {
  position: absolute;
  margin: 0;
  padding: 8px;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.hero-shot img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.shot-a { width: 74%; left: 0; top: 0; transform: rotate(-4deg); z-index: 1; }
.shot-b { width: 62%; right: 0; bottom: 0; transform: rotate(4deg); z-index: 2; }

/* 主体：左栏 + 内容 */
.wrap {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 16px 64px;
}

.side {
  position: sticky;
  top: 108px;
  padding: 16px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.side h2 {
  margin: 0 0 14px;
  font-family: var(--head);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.side h2 span {
  display: inline-block;
  padding: 3px 10px;
  background: var(--blue);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

.side a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.25);
}

.side a:hover { background: var(--paper); transform: translateX(2px); }

/* 正文 */
.prose { min-width: 0; }

.prose article {
  margin: 0 0 26px;
  padding: 22px 20px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.prose h2 {
  margin: 0 0 16px;
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(1.3rem, 3.4vw, 1.85rem);
  line-height: 1.3;
}

.prose h2 span {
  display: inline;
  padding: 2px 8px;
  background: var(--blue);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.prose h3 {
  margin: 26px 0 12px;
  font-family: var(--head);
  font-size: 18px;
  line-height: 1.4;
}

.prose h3 span { border-bottom: 4px solid var(--red); padding-bottom: 2px; }

.prose p { margin: 0 0 14px; line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose img { margin: 6px 0 16px; border: 3px solid var(--ink); border-radius: 12px; }
.prose figure { margin: 0 0 18px; }

.prose blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: #fff3f2;
  border-left: 8px solid var(--red);
  border-radius: 10px;
}

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

.prose a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--red);
}

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
.prose th, .prose td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; }
.prose th { background: var(--blue); }

/* 页脚 */
.site-foot {
  margin-top: 24px;
  padding: 44px 16px 0;
  background: var(--ink);
  color: var(--white);
  border-top: 6px solid var(--red);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px;
  max-width: 1120px;
  margin: 0 auto;
}

.foot-brand {
  margin: 0;
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
}

.site-foot h2 {
  margin: 0 0 12px;
  font-family: var(--head);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.site-foot h2 span {
  display: inline-block;
  padding: 3px 10px;
  background: var(--blue);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--red);
}

.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.site-foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.site-foot ul a:hover { color: var(--blue); }

.foot-addr {
  font-style: normal;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.9;
  word-break: break-word;
}

.foot-topic { margin: 0; font-weight: 700; line-height: 1.7; word-break: break-word; }

.foot-copy {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 16px 0;
  border-top: 3px solid #fff;
  text-align: center;
  font-size: 16px;
}

/* 动效 */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rv.in { opacity: 1; transform: none; }

/* 断点 */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 30px; padding-top: 40px; }
  .hero-art { min-height: 340px; }
  .wrap { grid-template-columns: 1fr; padding-top: 28px; }
  .side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-head { padding: 10px 12px; }
  .site-nav { width: 100%; }
  .site-nav p { justify-content: flex-start; }
  .hero { padding-left: 14px; padding-right: 14px; }
  .hero-h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-art { min-height: 300px; }
  .shot-a { width: 70%; }
  .shot-b { width: 60%; }
  .wrap { padding-left: 14px; padding-right: 14px; }
  .prose article { padding: 18px 14px; }
  .foot-grid { grid-template-columns: 1fr; }
  article[id] { scroll-margin-top: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .site-nav a:hover { transform: none; }
}

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