@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --rule: 2px solid #000000;
  --serif: 'Merriweather', Georgia, 'Songti SC', 'Noto Serif SC', serif;
  --display: 'Abril Fatface', 'Merriweather', Georgia, 'Songti SC', serif;
}

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

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.68;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--ink); color: var(--paper); }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: .01em;
}

p { margin: 0 0 1.1em; }

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

button { font-family: inherit; }

.shell {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ---------- 报头 ---------- */

.strip {
  margin: 0;
  padding: 9px 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .44em;
  text-indent: .44em;
  text-align: center;
  text-transform: uppercase;
  background: var(--paper);
}

.masthead {
  border-bottom: 3px solid var(--ink);
  padding: 16px 18px 0;
}

.masthead .brand {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 9vw, 4.6rem);
  line-height: .92;
  letter-spacing: .02em;
  text-align: center;
  transition: opacity .2s ease;
}

.masthead .brand:hover { opacity: .62; }

.menurow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--ink);
}

.menu-btn {
  min-height: 44px;
  padding: 10px 20px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .26em;
  text-indent: .26em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.menu-btn:hover { background: var(--ink); color: var(--paper); }

.menu-dots {
  flex: 1;
  height: 6px;
  background: radial-gradient(var(--ink) 1px, transparent 1px) 0 50% / 8px 8px;
}

/* ---------- 全屏菜单 ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 20px 40px;
  overflow-y: auto;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-101%);
  transition: transform .42s cubic-bezier(.72, 0, .2, 1);
}

.menu.open { transform: none; }

.menu-close {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 20px;
  background: transparent;
  color: var(--paper);
  border: 2px solid var(--paper);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .26em;
  text-indent: .26em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.menu-close:hover { background: var(--paper); color: var(--ink); }

.menu nav { flex: 1; }

.menu li { border-bottom: 1px solid rgba(255, 255, 255, .34); }

.menu li:first-child { border-top: 1px solid rgba(255, 255, 255, .34); }

.menu a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 6px 2px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 5.6vw, 2.3rem);
  line-height: 1.1;
  transition: transform .18s ease, opacity .18s ease;
}

.menu a:hover { transform: translateX(8px); opacity: .64; }

/* ---------- 头版 ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
  border-bottom: 3px solid var(--ink);
}

.hero-fig {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 34vh;
  border-right: 3px solid var(--ink);
  background: var(--paper);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.hero-pattern {
  width: 100%;
  height: 100%;
  min-height: 34vh;
  background: radial-gradient(var(--ink) 1.2px, transparent 1.2px) 0 0 / 15px 15px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 52px 26px;
  text-align: center;
}

.hero-copy h1 { font-size: clamp(2rem, 6.2vw, 4.4rem); }

.hero-copy p {
  margin: 0;
  max-width: 32ch;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: .93rem;
  line-height: 1.62;
}

/* ---------- 版面骨架 ---------- */

.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.prose { padding: 0 20px; }

div[id] { scroll-margin-top: 104px; }

.prose div {
  padding: 36px 0;
  border-bottom: 1px solid var(--ink);
}

.prose div:first-child { padding-top: 44px; }

.prose h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
}

.prose h3 {
  margin: 24px 0 12px;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.prose small {
  display: block;
  margin-bottom: 10px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .34em;
  line-height: 1.5;
}

.prose div > p:first-of-type::first-letter {
  float: left;
  padding: 8px 12px 0 0;
  font-family: var(--display);
  font-size: 3.6em;
  line-height: .8;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

.prose ul { list-style: square; }
.prose ol { list-style: decimal; }

.prose li { margin-bottom: .5em; }

.prose figure {
  margin: 24px 0;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.prose figure img { width: 100%; filter: grayscale(1) contrast(1.06); }

.prose figcaption {
  padding-top: 8px;
  font-size: .78rem;
  line-height: 1.5;
  letter-spacing: .04em;
}

.prose blockquote {
  margin: 26px 0;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-left-width: 10px;
  border-radius: 4px;
  font-size: 1.04rem;
  font-style: italic;
  line-height: 1.6;
}

.prose aside {
  margin: 24px 0;
  padding: 16px 18px;
  border: 2px dashed var(--ink);
  border-radius: 4px;
  font-size: .93rem;
}

.prose hr {
  height: 0;
  margin: 26px 0;
  border: 0;
  border-top: 2px solid var(--ink);
}

/* ---------- 右栏 ---------- */

.rail {
  padding: 28px 20px 36px;
  border-top: 2px solid var(--ink);
}

.rail small {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .32em;
}

.rail h2 {
  margin-bottom: 14px;
  font-size: 1.7rem;
}

.rail-list li { border-top: 1px solid var(--ink); }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 0;
  font-size: .92rem;
  transition: padding-left .18s ease;
}

.rail-list a:hover {
  padding-left: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.footer {
  border-top: 4px solid var(--ink);
  padding: 26px 20px 0;
  background: var(--paper) radial-gradient(var(--ink) 1px, transparent 1px) 0 0 / 16px 16px;
}

.foot-mega {
  display: inline-block;
  margin: 0;
  padding: 0 8px;
  background: var(--paper);
  font-family: var(--display);
  font-size: clamp(2.6rem, 14vw, 7rem);
  line-height: .84;
  letter-spacing: -.01em;
}

.foot-cols {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.footer address {
  font-style: normal;
  font-size: .93rem;
  line-height: 1.7;
}

.foot-h {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
}

.foot-host {
  font-size: .84rem;
  letter-spacing: .06em;
  word-break: break-all;
}

.foot-links li { border-top: 1px dotted var(--ink); }
.foot-links li:first-child { border-top: 0; }

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 0;
  font-size: .92rem;
}

.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 0 22px;
  border-top: 2px solid var(--ink);
  font-size: 12px;
  letter-spacing: .14em;
}

.foot-bar p { margin: 0; }
.foot-bar .foot-links { display: flex; gap: 18px; }
.foot-bar .foot-links li { border: 0; }

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* ---------- 宽屏 ---------- */

@media (min-width: 720px) {
  .shell {
    border-left: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
  }

  .foot-cols { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .body-grid { grid-template-columns: minmax(0, 1fr) 264px; }

  .prose { padding: 0 34px; }

  .rail {
    position: sticky;
    top: 0;
    align-self: start;
    border-top: 0;
    border-left: 2px solid var(--ink);
    padding-left: 22px;
  }
}

@media (min-width: 1080px) {
  .prose div {
    column-count: 2;
    column-gap: 2.8rem;
  }

  .prose div > * { break-inside: avoid; }
}

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

@media (max-width: 719px) {
  .shell {
    border-left: 0;
    border-right: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    order: 1;
    padding: 54px 20px 40px;
  }

  .hero-fig {
    order: 2;
    min-height: 48vh;
    border-right: 0;
    border-top: 3px solid var(--ink);
  }

  .strip { letter-spacing: .32em; text-indent: .32em; }
}

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

  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .menu,
  .menu a,
  .rail-list a { transition: none; }
}

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