@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: #dcdcd6;
  --soft: #f4f4f1;
  --mute: #5a5a56;
  --serif: "Crimson Pro", Georgia, "Songti SC", "Noto Serif SC", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --pad: clamp(16px, 4vw, 52px);
}

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

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

@media (min-width: 760px) { body { font-size: 18px; } }

img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }
small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--mute);
  margin-bottom: 0.35em;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* 报头：品牌行在上，菜单行在下 */
.masthead {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 0 var(--pad);
}
@media (min-width: 980px) {
  .masthead { position: sticky; top: 0; z-index: 30; }
}
.brandrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(17px, 2.1vw, 22px);
  letter-spacing: 0.06em;
  text-decoration: none;
}
.brandmark { display: block; height: 26px; width: auto; }
.navrow { padding: 2px 0; }
.navrow p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.navrow a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 0;
  font-family: var(--sans);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.navrow a:hover, .navrow a:focus-visible { border-bottom-color: var(--ink); }

/* 首屏拼贴 */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: clamp(26px, 6vw, 80px) var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.hero-media {
  display: flex;
  gap: 14px;
  justify-content: center;
  width: 100%;
}
.hero-fig {
  margin: 0;
  width: 44%;
  max-width: 200px;
  transform: rotate(-2.5deg);
  transition: transform 0.5s ease;
}
.hero-fig:nth-child(2) { transform: rotate(2deg); }
.hero-fig img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  filter: grayscale(1);
  border: 1px solid var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}
.hero-copy {
  order: -1;
  position: relative;
  z-index: 2;
  max-width: 24ch;
  text-align: center;
}
.badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.26em;
  line-height: 1.5;
  animation: bob 5.5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.hero-copy h1 {
  margin: 0 0 0.4em;
  font-size: clamp(30px, 6.4vw, 62px);
  line-height: 1.05;
}
.hero-lede {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--mute);
}

@media (min-width: 860px) {
  .hero {
    display: grid;
    place-items: center;
    min-height: 70vh;
    gap: 0;
    padding-block: clamp(48px, 7vw, 96px);
  }
  .hero-copy { order: 0; }
  .hero-media { position: absolute; inset: 0; display: block; width: auto; }
  .hero-fig {
    position: absolute;
    width: clamp(120px, 20vw, 232px);
    max-width: none;
  }
  .hero-fig:nth-child(1) { left: calc(var(--pad) + 1vw); top: 11%; }
  .hero-fig:nth-child(2) { right: calc(var(--pad) + 1vw); bottom: 13%; }
  .hero-fig:hover { transform: rotate(0deg) scale(1.02); }
}

/* 正文与右栏 */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px) var(--pad) clamp(30px, 5vw, 80px);
}
@media (min-width: 940px) {
  .wrap { grid-template-columns: minmax(0, 1fr) 276px; align-items: start; }
}
.body-col { min-width: 0; }

.article div {
  scroll-margin-top: 152px;
  padding: clamp(20px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
}
.article div:first-child { border-top: 0; padding-top: 0; }
.article h2 { margin: 0.15em 0 0.55em; font-size: clamp(23px, 3.2vw, 36px); }
.article h3 { margin: 0.9em 0 0.45em; font-size: clamp(19px, 2.4vw, 25px); }
.article p { margin: 0 0 1.05em; max-width: 64ch; }
.article ul, .article ol { margin: 0 0 1.1em; padding-left: 1.15em; }
.article li { margin-bottom: 0.4em; }
.article li, .article figure, .article blockquote { break-inside: avoid; }
.article div > p:first-of-type::first-letter {
  float: left;
  padding: 0.05em 0.1em 0 0;
  font-size: 3.3em;
  line-height: 0.82;
  font-weight: 700;
}
.article a { text-decoration: underline; text-underline-offset: 0.18em; }
.article a:hover { background: var(--soft); }
.article blockquote {
  margin: 1.4em 0;
  padding: 6px 0 6px clamp(14px, 2.4vw, 26px);
  border-left: 4px solid var(--ink);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
}
.article blockquote p { margin: 0; }
.article figure { margin: 1.5em 0; }
.article figcaption { margin-top: 8px; font-family: var(--sans); font-size: 13px; color: var(--mute); }
.article img { border: 1px solid var(--line); }

@media (min-width: 1100px) {
  .article div:nth-of-type(even) { column-count: 2; column-gap: 2.4rem; }
  .article div:nth-of-type(even) h2,
  .article div:nth-of-type(even) h3 { break-after: avoid; }
}

.rail {
  min-width: 0;
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}
@media (min-width: 940px) { .rail { position: sticky; top: 140px; } }
.rail h3 { margin: 0 0 0.7em; font-size: 20px; }
.rail ul { margin: 0; padding: 0; list-style: none; }
.rail li { border-bottom: 1px solid var(--line); transition: transform 0.4s ease; }
.rail li:hover { transform: translateX(4px); }
.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 16px;
  text-decoration: none;
  color: var(--mute);
}
.rail a:hover, .rail a:focus-visible { color: var(--ink); }

/* 页脚 */
.sitefoot {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 34px);
  border-top: 3px solid var(--ink);
  background: var(--soft);
  padding: clamp(28px, 4vw, 52px) var(--pad) 24px;
}
@media (min-width: 820px) {
  .sitefoot { grid-template-columns: 1.15fr 1fr 1fr; align-items: start; }
}
.giant {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 6.6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.sitefoot nav p { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; }
.sitefoot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sitefoot nav a:hover, .sitefoot nav a:focus-visible { border-bottom-color: var(--ink); }
.foot-legal {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--mute);
  text-align: center;
}
.foot-legal p { margin: 0 0 0.5em; }
@media (min-width: 820px) {
  .foot-legal { border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 26px); }
}

.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition: background 0.25s ease, color 0.25s ease;
}
.totop:hover, .totop:focus-visible { background: var(--ink); color: var(--paper); }

/* 滚动渐显 */
html.reveal-ready .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
html.reveal-ready .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-ready .rv { opacity: 1; transform: none; transition: none; }
  .badge { animation: none; }
  .hero-fig, .rail li { transition: none; }
}

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