:root{
  --paper:#fafaf8;
  --gray:#4a4a4a;
  --ink:#1a1a1a;
  --shadow:rgba(26,26,26,.14);
}

*{box-sizing:border-box}

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

body{
  margin:0;
  overflow-x:hidden;
  background-color:var(--paper);
  color:var(--ink);
  font:400 17px/1.75 "Open Sans",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  background-image:
    radial-gradient(rgba(26,26,26,.06) 1px,transparent 1px),
    radial-gradient(rgba(74,74,74,.05) 1px,transparent 1px);
  background-size:5px 5px,17px 17px;
  background-position:0 0,4px 9px;
}

img{max-width:100%;height:auto;display:block;filter:grayscale(.35) contrast(1.06)}
figure{max-width:100%}

a{color:var(--ink)}
a:focus-visible,
button:focus-visible,
input:focus-visible{outline:3px dashed var(--gray);outline-offset:2px}

h1,h2,h3,h4{font-family:Poppins,"Open Sans",system-ui,sans-serif;font-weight:700;line-height:1.2}

/* 左侧竖排导航 */
.site-head{
  position:fixed;
  inset:0 auto 0 0;
  width:216px;
  z-index:50;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:16px 14px 20px;
  background:var(--paper);
  border-right:2px solid var(--ink);
  background-image:linear-gradient(180deg,rgba(74,74,74,.09),transparent 55%);
}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:54px;
  border:2px solid var(--ink);
  background:#fff;
  text-decoration:none;
  transform:rotate(-3.5deg);
  box-shadow:4px 4px 0 var(--ink);
  overflow:hidden;
}
.mark-img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.2)}
.mark-txt{
  font-family:Poppins,system-ui,sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1.1;
  text-align:center;
  padding:2px;
}

.site-head nav p{display:flex;flex-direction:column;gap:8px;margin:0}

.site-head nav a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:8px 12px;
  border:1.5px solid var(--ink);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  line-height:1.25;
}
.site-head nav a:hover{background:var(--ink);color:var(--paper)}

.n{
  font-family:Poppins,system-ui,sans-serif;
  font-size:11px;
  letter-spacing:.1em;
  opacity:.6;
}

.find{display:flex;gap:6px;margin-top:auto}
.find input{
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  padding:8px 10px;
  border:2px solid var(--ink);
  background:#fff;
  color:var(--ink);
  font-family:inherit;
  font-size:16px;
}
.find button{
  min-height:44px;
  padding:6px 13px;
  border:2px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  font-family:inherit;
  font-size:16px;
  cursor:pointer;
}

main{padding:0 16px 26px;min-width:0}

@media (min-width:901px){
  main{
    margin-left:216px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 288px;
    gap:36px;
    align-items:start;
    padding:34px 34px 12px;
  }
  main > div{min-width:0}
}

/* Hero：双图错位拼贴 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:22px;
  align-items:center;
  padding:20px 0 42px;
  border-bottom:2px solid var(--ink);
  overflow-x:clip;
}
@media (min-width:901px){
  .hero{grid-template-columns:1.05fr .95fr;min-height:100vh;padding:28px 0 60px;overflow-x:visible}
}

.hero-txt{order:-1;position:relative;z-index:3;min-width:0}
@media (min-width:901px){
  .hero-txt{order:0;text-align:right}
}

.eyebrow{
  margin:0 0 10px;
  font-family:Poppins,system-ui,sans-serif;
  font-size:14px;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--gray);
}

.hero h1{
  display:inline-block;
  max-width:100%;
  margin:0 0 14px;
  padding-bottom:6px;
  font-size:clamp(2.05rem,7.4vw,3.9rem);
  line-height:1.04;
  letter-spacing:-.02em;
  background:linear-gradient(transparent 76%,rgba(26,26,26,.16) 76%);
  transform:rotate(-.7deg);
}

.lead{margin:0 0 18px;font-size:17px;color:var(--gray);max-width:34em}
@media (min-width:901px){.lead{margin-left:auto}}

.jump{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:10px 20px;
  border:2px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  text-decoration:none;
  font-family:Poppins,system-ui,sans-serif;
  font-size:16px;
  transform:rotate(1.3deg);
  box-shadow:5px 5px 0 rgba(26,26,26,.32);
}
.jump:hover{background:var(--paper);color:var(--ink)}

.collage{position:relative;min-height:270px;padding:10px 0 0;min-width:0}
@media (min-width:901px){.collage{min-height:430px}}

.shot{
  position:relative;
  margin:0;
  padding:8px 8px 14px;
  background:#fff;
  border:2px solid var(--ink);
  box-shadow:8px 8px 0 rgba(26,26,26,.85);
  transform:rotate(-2.6deg) translateY(var(--py,0));
}
.shot.a{width:78%;max-width:calc(100% - 8px)}
.shot.b{position:absolute;right:0;bottom:-24px;width:56%;max-width:calc(100% - 8px);transform:rotate(3.4deg) translateY(var(--py,0))}

.shot img,
.shot .blank{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  display:block;
}
.shot .blank{
  background:repeating-linear-gradient(45deg,rgba(26,26,26,.1) 0 6px,transparent 6px 12px);
}

.tape{
  position:absolute;
  top:-12px;
  left:16px;
  width:86px;
  height:24px;
  background:rgba(74,74,74,.3);
  transform:rotate(-9deg);
}

.slash{
  position:absolute;
  left:5px;
  width:calc(100% - 10px);
  height:44px;
  background:var(--gray);
  opacity:.13;
  z-index:1;
  pointer-events:none;
}
.slash.s1{top:44%;transform:rotate(-5deg)}
.slash.s2{bottom:11%;height:22px;background:var(--ink);opacity:.1;transform:rotate(3deg)}

/* 正文区块 */
div > section:not(.hero){
  position:relative;
  margin:0 0 30px;
  padding:24px 20px;
  background:#fff;
  border:2px solid var(--ink);
  border-bottom:9px solid var(--gray);
  box-shadow:7px 7px 0 var(--shadow);
  transform:rotate(-.3deg);
}
div > section:not(.hero):nth-of-type(even){transform:rotate(.35deg)}
div > section:not(.hero):last-child{margin-bottom:0}

section[id]{scroll-margin-top:126px}
@media (min-width:901px){section[id]{scroll-margin-top:24px}}

div h2{margin:.1em 0 .55em;font-size:clamp(1.35rem,3.4vw,1.82rem)}
div h2::after{
  content:"";
  display:block;
  width:58px;
  height:4px;
  margin-top:9px;
  background:var(--ink);
  transform:rotate(-1.7deg);
}
div h3{margin:1.4em 0 .5em;font-size:1.15rem}
div p{margin:0 0 1.05em}
div ul,div ol{margin:0 0 1.1em;padding-left:1.25em}
div li{margin:.3em 0}
div a{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
div blockquote{
  margin:0 0 1.1em;
  padding:10px 14px;
  border-left:5px solid var(--gray);
  background:rgba(74,74,74,.07);
  transform:rotate(-.25deg);
}
div strong{background:rgba(74,74,74,.15)}
div table{width:100%;border-collapse:collapse;font-size:16px}
div td,div th{border:1px solid var(--gray);padding:8px;text-align:left}
div section > :last-child,
div > section > :last-child{margin-bottom:0}

/* 右侧栏 */
.rail{
  margin:6px 0 0;
  padding:18px 16px;
  background:#fff;
  border:2px solid var(--ink);
  box-shadow:6px 6px 0 var(--shadow);
  transform:rotate(.7deg);
  min-width:0;
}
@media (min-width:901px){
  .rail{position:sticky;top:26px;align-self:start;margin-top:34px}
}
.rail h2{margin:0 0 6px;font-size:1.2rem}
.subtitle{
  margin:0 0 14px;
  padding-left:9px;
  border-left:3px solid var(--ink);
  font-size:16px;
  color:var(--gray);
}
.toc{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.toc a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 8px;
  border-bottom:1px dashed var(--gray);
  text-decoration:none;
  font-size:16px;
}
.toc a:hover{background:rgba(74,74,74,.1)}
.rail-host{
  margin:14px 0 0;
  font-family:Poppins,system-ui,sans-serif;
  font-size:15px;
  color:var(--gray);
  word-break:break-all;
}

/* 页脚 */
footer{
  margin:36px 0 0;
  padding:26px 16px 32px;
  border-top:2px solid var(--ink);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  background-image:linear-gradient(180deg,transparent,rgba(74,74,74,.08));
}
@media (min-width:901px){footer{margin-left:216px}}

.foot-top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:14px 26px;
  width:100%;
  max-width:760px;
}
address{
  font-style:normal;
  font-family:Poppins,system-ui,sans-serif;
  font-size:16px;
  display:flex;
  flex-direction:column;
  gap:2px;
  text-align:center;
}
.foot-host{color:var(--gray);font-size:15px;word-break:break-all}

.sub{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:10px;
  border:2px dashed var(--gray);
  max-width:100%;
  min-width:0;
}
.sub label{font-size:16px}
.sub input{
  min-height:44px;
  padding:8px 10px;
  border:2px solid var(--ink);
  background:#fff;
  color:var(--ink);
  font-family:inherit;
  font-size:16px;
  max-width:100%;
  min-width:0;
  flex:1 1 140px;
}
.sub button{
  min-height:44px;
  padding:8px 16px;
  border:2px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  font-family:inherit;
  font-size:16px;
  cursor:pointer;
}
.sub button:hover{background:var(--paper);color:var(--ink)}

.foot-links{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px 10px;
  margin:0;
  padding:0;
  max-width:100%;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:6px 13px;
  border:1.5px solid var(--gray);
  border-radius:999px;
  text-decoration:none;
  font-size:16px;
}
.foot-links a:hover{background:var(--gray);color:var(--paper)}

.copy{margin:0;font-size:16px;color:var(--gray);text-align:center;max-width:100%;word-break:break-word}

/* 动效 */
.reveal{opacity:0;transform:translateY(16px) rotate(-.3deg)}
.reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .45s steps(5,end),transform .45s steps(5,end);
}
.lit{box-shadow:0 0 0 4px rgba(74,74,74,.3),7px 7px 0 var(--shadow)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .shot{transform:none}
}

/* 窄屏：导航改横排，允许横向滚动 */
@media (max-width:900px){
  .site-head{
    position:sticky;
    inset:auto;
    top:0;
    width:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-right:0;
    border-bottom:2px solid var(--ink);
  }
  .mark{flex:0 0 auto;width:44px;height:44px}
  .site-head nav{
    flex:1 1 auto;
    min-width:0;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:2px;
  }
  .site-head nav p{flex-direction:row;gap:8px}
  .site-head nav a{white-space:nowrap}
  .find{order:3;flex:1 1 100%;margin-top:0}
  .find input{flex:1 1 auto}
  .collage{min-height:0}
  .shot.a{width:70%}
  .shot.b{bottom:-16px;width:50%}
  .rail{margin-top:26px}
}

@media (max-width:420px){
  .hero h1{font-size:clamp(1.9rem,9.4vw,2.5rem)}
  .shot.a{width:74%}
  .find button{padding:6px 12px}
}

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