@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root{
  --paper:#fafaf8;
  --graphite:#4a4a4a;
  --ink:#1a1a1a;
  --body:#33322f;
  --rule:rgba(26,26,26,.2);
  --tape:rgba(74,74,74,.16);
  --shadow:0 12px 24px -16px rgba(26,26,26,.6);
  --font:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.75;
  color:var(--body);
  background-color:var(--paper);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23p)' opacity='0.25'/%3E%3C/svg%3E");
  overflow-x:hidden;
}

h1,h2,h3,h4{
  color:var(--ink);
  font-weight:800;
  letter-spacing:-.015em;
}

a{color:var(--ink)}

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

.vh{
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
}

/* ---------- 顶部：菜单分列两侧，品牌居中，右侧手写按钮 ---------- */

.masthead{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(250,250,248,.95);
  border-bottom:2px solid var(--ink);
  box-shadow:0 6px 18px -18px rgba(26,26,26,.9);
}

.rail{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  max-width:1180px;
  margin:0 auto;
  padding:8px 18px;
}

.rail ul{
  display:flex;
  align-items:center;
  gap:2px;
  list-style:none;
  margin:0;
  padding:0;
  flex-wrap:wrap;
}

.rail-a{flex:1 1 0;justify-content:flex-end}
.rail-b{flex:1 1 0;justify-content:flex-start}

.rail ul a{
  display:block;
  padding:12px 9px;
  font-size:16px;
  line-height:1.5;
  color:var(--graphite);
  text-decoration:none;
  border-bottom:2px dashed transparent;
}

.rail ul a:hover{
  color:var(--ink);
  border-bottom-color:var(--ink);
  transform:translateY(-2px);
}

.wordmark{
  flex:0 0 auto;
  padding:10px 16px;
  font-size:18px;
  font-weight:800;
  letter-spacing:.01em;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
  transform:rotate(-1.2deg);
}

.cta{
  flex:0 0 auto;
  margin-left:6px;
  padding:11px 18px;
  font-size:16px;
  font-weight:700;
  color:var(--paper);
  background:var(--ink);
  border:2px solid var(--ink);
  border-radius:10px;
  text-decoration:none;
  box-shadow:var(--shadow);
  transform:rotate(-1.5deg);
}

.cta:hover{
  transform:rotate(0deg) translateY(-2px);
  background:var(--graphite);
  border-color:var(--graphite);
}

/* ---------- 首屏：错位拼贴 + 超大字底纹 ---------- */

.hero{
  position:relative;
  overflow:hidden;
  max-width:1180px;
  margin:0 auto;
  padding:70px 24px 64px;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-ghost{
  position:absolute;
  left:6px;
  top:4%;
  z-index:0;
  font-size:clamp(58px,14vw,178px);
  font-weight:800;
  line-height:.86;
  letter-spacing:-.04em;
  white-space:nowrap;
  color:transparent;
  -webkit-text-stroke:2px rgba(26,26,26,.13);
  pointer-events:none;
  user-select:none;
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:640px;
}

.hero-copy h1{
  margin:0 0 16px;
  font-size:clamp(30px,5.2vw,54px);
  line-height:1.14;
}

.hero-lede{
  margin:0;
  max-width:44ch;
  color:var(--graphite);
  font-size:17px;
}

.hero-jump{
  display:inline-block;
  margin-top:24px;
  padding:12px 20px;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  text-decoration:none;
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:10px;
  box-shadow:6px 6px 0 -1px rgba(26,26,26,.14);
  transform:rotate(-1deg);
}

.hero-jump:hover{
  transform:rotate(0deg);
  background:var(--ink);
  color:var(--paper);
}

.hero-collage{
  position:absolute;
  z-index:1;
  right:18px;
  top:11%;
  width:330px;
  height:430px;
}

.shot{
  --r:0deg;
  position:absolute;
  margin:0;
  padding:10px 10px 26px;
  background:#fff;
  border:1px solid var(--rule);
  box-shadow:var(--shadow);
  transform:rotate(var(--r));
}

.shot-a{--r:3deg;top:0;right:0;width:246px}
.shot-b{--r:-4.5deg;bottom:0;left:0;width:198px}

.shot-img{display:block;width:100%;filter:grayscale(1) contrast(1.06)}

.shot-fill{
  width:100%;
  aspect-ratio:4/3;
  background:repeating-linear-gradient(135deg,rgba(26,26,26,.16) 0 1px,transparent 1px 9px);
}

.tape{
  position:absolute;
  top:-11px;
  left:50%;
  width:82px;
  height:20px;
  margin-left:-41px;
  background:var(--tape);
  transform:rotate(-2.5deg);
}

/* ---------- 正文骨架 ---------- */

.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 262px;
  gap:56px;
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px 80px;
}

.column{min-width:0}

.prose{
  counter-reset:sec;
  max-width:70ch;
}

.prose section{
  position:relative;
  counter-increment:sec;
  padding:38px 0 30px;
  border-top:2px dotted rgba(26,26,26,.24);
  scroll-margin-top:112px;
}

.prose section:first-child{border-top:0;padding-top:6px}

.prose section::before{
  content:counter(sec,decimal-leading-zero);
  display:block;
  margin-bottom:4px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.22em;
  color:var(--graphite);
}

.prose h2{
  margin:0 0 14px;
  font-size:clamp(22px,2.9vw,30px);
  line-height:1.26;
}

.prose h3{
  margin:28px 0 10px;
  font-size:20px;
  line-height:1.4;
}

.prose p{margin:0 0 16px}

.prose a{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-decoration-style:dashed;
  text-underline-offset:3px;
}

.prose a:hover{background:rgba(26,26,26,.07)}

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

.prose blockquote{
  margin:22px 0;
  padding:12px 20px;
  border-left:4px solid var(--ink);
  background:rgba(26,26,26,.04);
  transform:rotate(-.4deg);
}

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

.prose img{
  display:block;
  width:auto;
  margin:22px 0;
  padding:6px;
  background:#fff;
  border:1px solid var(--rule);
  box-shadow:var(--shadow);
  transform:rotate(-.6deg);
}

.prose hr{
  margin:30px 0;
  border:0;
  border-top:2px dashed rgba(26,26,26,.25);
}

/* ---------- 右侧便签夹 ---------- */

.margin-note{
  --r:.8deg;
  position:sticky;
  top:104px;
  padding:20px 18px 22px;
  background:#fff;
  border:2px solid var(--ink);
  border-radius:10px;
  box-shadow:var(--shadow);
  transform:rotate(var(--r));
}

.margin-note::before{
  content:"";
  position:absolute;
  top:-12px;
  left:50%;
  width:92px;
  height:22px;
  margin-left:-46px;
  background:var(--tape);
  transform:rotate(-2deg);
}

.margin-note small{
  display:block;
  font-size:13px;
  font-weight:700;
  letter-spacing:.22em;
  color:var(--graphite);
}

.margin-note h2{
  margin:2px 0 12px;
  font-size:20px;
}

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

.toc a{
  display:block;
  padding:9px 2px;
  font-size:16px;
  line-height:1.5;
  color:var(--graphite);
  text-decoration:none;
  border-bottom:1px dotted rgba(26,26,26,.28);
}

.toc li:last-child a{border-bottom:0}

.toc a:hover{
  color:var(--ink);
  padding-left:8px;
}

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

.colophon{
  border-top:2px solid var(--ink);
  background:rgba(26,26,26,.045);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='q'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23q)' opacity='0.16'/%3E%3C/svg%3E");
}

.foot-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px 26px;
  max-width:1180px;
  margin:0 auto;
  padding:26px 24px 8px;
}

.foot-addr{
  font-style:normal;
  font-size:18px;
  font-weight:800;
  letter-spacing:.01em;
  color:var(--ink);
  transform:rotate(-1deg);
}

.scribble{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.scribble input{
  min-width:0;
  flex:1 1 150px;
  padding:10px 12px;
  font-family:inherit;
  font-size:16px;
  color:var(--ink);
  background:#fff;
  border:2px solid var(--ink);
  border-radius:10px;
}

.scribble button{
  padding:10px 18px;
  min-height:44px;
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  color:var(--paper);
  background:var(--ink);
  border:2px solid var(--ink);
  border-radius:10px;
  cursor:pointer;
  transform:rotate(1deg);
}

.scribble button:hover{background:var(--graphite);border-color:var(--graphite)}

.foot-links{
  display:flex;
  flex-wrap:wrap;
  gap:2px;
  list-style:none;
  margin:0;
  padding:0;
}

.foot-links a{
  display:block;
  padding:10px 8px;
  font-size:16px;
  color:var(--graphite);
  text-decoration:none;
  border-bottom:2px dashed transparent;
}

.foot-links a:hover{color:var(--ink);border-bottom-color:var(--ink)}

.copy{
  margin:0;
  padding:6px 0 26px;
  text-align:center;
  font-size:15px;
  color:var(--graphite);
}

/* ---------- 出场与悬停 ---------- */

.js .prose > article,
.js .margin-note{
  opacity:0;
  transform:translateY(18px) rotate(var(--r,0deg));
}

.js .is-in{
  opacity:1;
  transform:rotate(var(--r,0deg));
  transition:opacity .42s steps(5),transform .42s steps(5);
}

a,button,input{transition:color .18s steps(3),background .18s steps(3),transform .18s steps(3),border-color .18s steps(3)}

/* ---------- 断点 ---------- */

@media (max-width:980px){
  .hero{padding:56px 20px 48px;min-height:0}
  .hero-collage{
    position:relative;
    right:auto;top:auto;
    width:100%;height:auto;
    display:flex;
    gap:16px;
    margin-top:34px;
  }
  .shot{position:relative;top:auto;left:auto;right:auto;width:50%}
  .shot-a{--r:1.6deg}
  .shot-b{--r:-2deg}
}

@media (max-width:820px){
  .wrap{
    grid-template-columns:minmax(0,1fr);
    gap:40px;
    padding:0 18px 64px;
  }
  .margin-note{position:static;order:2;margin-top:8px}
  .rail{justify-content:center;padding:6px 14px 10px}
  .wordmark{order:1;flex:1 1 100%;text-align:center;transform:none;padding:10px 6px}
  .rail-a{order:2;flex:1 1 100%;justify-content:center}
  .rail-b{order:3;flex:1 1 100%;justify-content:center}
  .rail ul a{padding:12px 8px}
  .cta{order:4;margin:6px auto 4px}
  .foot-row{justify-content:center;text-align:center;padding:24px 18px 6px}
  .foot-links{justify-content:center}
  .scribble{justify-content:center;width:100%}
}

@media (max-width:420px){
  .hero-ghost{font-size:52px}
  .prose article{padding:30px 0 24px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
  .js .prose > article,.js .margin-note{opacity:1;transform:rotate(var(--r,0deg))}
}

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