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

:root {
  --mint: #00ff80;
  --blue: #0000ff;
  --ink: #000000;
  --paper: #ffffff;
  --line: 3px solid #000000;
  --serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Lato', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- 页头 ---------- */
header.top {
  background: var(--mint);
  border-bottom: 4px solid var(--ink);
}

.bar {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.1;
  text-align: center;
  padding: 6px 14px;
  color: var(--ink);
  background: var(--paper);
  border: var(--line);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}

.brand:hover { background: var(--blue); color: var(--paper); }

.right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.navblock {
  position: relative;
  min-width: 0;
}

.navblock > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 13px;
  border: var(--line);
  background: var(--paper);
  font-weight: 700;
  font-size: 16px;
  user-select: none;
  white-space: nowrap;
}

.navblock > summary::-webkit-details-marker { display: none; }

.navblock > summary::after {
  content: "+";
  font-weight: 700;
  margin-left: 2px;
}

.navblock[open] > summary::after { content: "−"; }
.navblock[open] > summary { background: var(--blue); color: var(--paper); border-color: var(--ink); }

.ico { font-size: 18px; line-height: 1; }

.navblock menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 7px);
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 200px;
  max-width: calc(100vw - 28px);
  background: var(--paper);
  border: var(--line);
  box-shadow: 9px 9px 0 var(--blue);
}

.navblock.left menu { left: 0; }
.navblock.right menu { right: 0; }

.navblock menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

.navblock menu li:last-child a { border-bottom: 0; }
.navblock menu a:hover { background: var(--mint); }

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 15px;
  background: var(--ink);
  color: var(--mint);
  border: 3px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

/* ---------- 粘性锚点条 ---------- */
.strip {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  background: var(--ink);
  border-bottom: 4px solid var(--ink);
}

.strip a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mint);
  text-decoration: none;
  border-right: 2px solid #2e2e2e;
  max-width: 100%;
}

.strip a:hover { background: var(--mint); color: var(--ink); }

/* ---------- 首屏 ---------- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 16px 60px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 32px;
  min-height: 70vh;
  border-bottom: 4px solid var(--ink);
}

.hero-copy { text-align: right; order: 2; min-width: 0; }

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 6.6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero .lede {
  margin: 0;
  padding: 14px 0;
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.6;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: linear-gradient(transparent 62%, var(--mint) 62%);
  overflow-wrap: break-word;
}

.collage {
  position: relative;
  min-height: 330px;
  order: 1;
  min-width: 0;
}

.shot {
  margin: 0;
  border: 4px solid var(--ink);
  background: var(--mint);
  overflow: hidden;
}

.shot.a {
  width: 82%;
  aspect-ratio: 4 / 3;
  transform: rotate(-2deg);
  box-shadow: 12px 12px 0 var(--blue);
  position: relative;
  z-index: 2;
}

.shot.b {
  position: absolute;
  right: 0;
  bottom: -26px;
  width: 56%;
  aspect-ratio: 1 / 1;
  transform: rotate(3deg);
  box-shadow: -10px 10px 0 var(--ink);
  z-index: 1;
}

.shot .pic {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 正文 ---------- */
main {
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 76px);
  overflow-x: clip;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 16px 72px;
}

.body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.prose { min-width: 0; }

.prose > article {
  position: relative;
  margin: 0 0 30px;
  padding: 26px 24px 30px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-bottom: 9px solid var(--blue);
  border-radius: 28px;
  scroll-margin-top: 108px;
  animation: rise 0.4s steps(5, end) both;
}

.prose > article:nth-of-type(even) { border-bottom-color: var(--ink); }
.prose > article:nth-of-type(3n) { border-bottom-color: var(--mint); }

.prose > article:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.prose h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.4vw, 40px);
}

.prose h3 {
  margin: 26px 0 6px;
  font-size: clamp(20px, 2.4vw, 26px);
}

.prose hr {
  border: 0;
  height: 6px;
  margin: 10px 0 20px;
  background: var(--ink);
}

.prose p,
.prose li { font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }

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

.prose ul,
.prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.prose a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose a:hover { background: var(--mint); color: var(--ink); }

.prose blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 8px solid var(--blue);
  background: #f2fff9;
  font-size: 17px;
  overflow-wrap: break-word;
}

.prose img {
  max-width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  margin: 6px 0 18px;
}

.prose pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 14px;
  border: 3px solid var(--ink);
  background: #f4f4f4;
  font-size: 15px;
  line-height: 1.55;
}

.prose code { overflow-wrap: anywhere; }

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}

.prose th,
.prose td {
  border: 2px solid var(--ink);
  padding: 9px 10px;
  text-align: left;
  overflow-wrap: break-word;
}

.prose th { background: var(--mint); }

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding: 18px 16px 20px;
  background: var(--mint);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--blue);
}

.side h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.side hr {
  border: 0;
  height: 5px;
  margin: 0 0 12px;
  background: var(--ink);
}

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

.side li {
  border-bottom: 2px solid rgba(0, 0, 0, 0.35);
  animation: slide 0.35s steps(4, end) both;
}

.side li:last-child { border-bottom: 0; }
.side li:nth-child(1) { animation-delay: 0.02s; }
.side li:nth-child(2) { animation-delay: 0.06s; }
.side li:nth-child(3) { animation-delay: 0.1s; }
.side li:nth-child(4) { animation-delay: 0.14s; }
.side li:nth-child(5) { animation-delay: 0.18s; }
.side li:nth-child(6) { animation-delay: 0.22s; }
.side li:nth-child(7) { animation-delay: 0.26s; }

.side a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 6px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.side a:hover { background: var(--ink); color: var(--mint); }

/* ---------- 页脚 ---------- */
footer {
  margin-top: 8px;
  background: var(--ink);
  color: var(--paper);
  border-top: 6px solid var(--mint);
}

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
}

footer address {
  font-style: normal;
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: start;
  min-width: 0;
}

.fbrand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.1;
  color: var(--mint);
  padding-bottom: 8px;
  border-bottom: 4px solid var(--mint);
  max-width: 100%;
  overflow-wrap: break-word;
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 3px solid var(--mint);
  color: var(--mint);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.top-link:hover { background: var(--mint); color: var(--ink); }

.flinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  align-content: start;
  min-width: 0;
}

.flinks a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #333333;
}

.flinks a:hover { background: var(--mint); color: var(--ink); }

.base {
  border-top: 2px solid #333333;
  text-align: center;
  padding: 16px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #cccccc;
  overflow-wrap: break-word;
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .body { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .side { position: static; box-shadow: 8px 8px 0 var(--blue); margin-right: 8px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 40px;
    padding: 30px 16px 52px;
  }
  .hero-copy { order: 1; text-align: left; }
  .collage { order: 2; min-height: 280px; max-width: 460px; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .bar { padding: 10px 12px; gap: 8px; }
  .cta { display: none; }
  .brand { font-size: 20px; padding: 6px 9px; box-shadow: 4px 4px 0 var(--ink); }
  .navblock > summary { padding: 8px 10px; font-size: 15px; }
  .ico { font-size: 16px; }
  .navblock menu { min-width: 172px; }
  .strip a { padding: 10px 11px; font-size: 14px; }
  .hero h1 { font-size: clamp(30px, 10vw, 44px); }
  .shot.a { width: 78%; box-shadow: 8px 8px 0 var(--blue); }
  .shot.b { right: 2px; width: 52%; bottom: -18px; box-shadow: -7px 7px 0 var(--ink); }
  .wrap { padding: 28px 12px 56px; }
  .prose > article { padding: 20px 16px 24px; border-radius: 22px; }
  .foot { padding: 30px 12px; }
  .flinks { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .brand { font-size: 18px; padding: 6px 7px; }
  .navblock > summary { padding: 8px 8px; font-size: 14px; }
  .strip a { padding: 10px 9px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prose > article,
  .side li { animation: none; }
  .prose > article:hover { transform: none; }
}

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