/* 黑魂网 · 单页模板 · 黑白对撞 + 手账纸感 */
:root{
  --ink:#000;
  --paper:#fff;
  --dock:66px;
  --sans:"Kalam","Patrick Hand",-apple-system,BlinkMacSystemFont,"Segoe UI","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;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:1.0625rem;
  line-height:1.78;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

::selection{background:#000;color:#fff}

a{color:inherit}

:focus-visible{outline:3px solid #000;outline-offset:3px}

img{max-width:100%;height:auto;display:block}
figure{margin:0}
hr{border:0;border-top:2px solid #000;margin:1rem 0 1.75rem}
menu,ol,ul{list-style:none;margin:0;padding:0}

.skip{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:900;
  background:#000;
  color:#fff;
  padding:.65rem 1.1rem;
  text-decoration:none;
  border-radius:4px;
}
.skip:focus{left:1rem;top:1rem}

/* ---------- 主栅格 ---------- */
main{
  max-width:1360px;
  margin:0 auto;
  padding:0 clamp(1.15rem,5vw,5rem) clamp(2rem,6vw,4rem);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(210px,290px);
  column-gap:clamp(1.75rem,5vw,5rem);
  align-items:start;
}

main > div[id]{
  grid-column:1;
  padding:clamp(2.5rem,7vw,6rem) 0;
  border-top:2px solid #000;
  scroll-margin-top:1.5rem;
  scroll-margin-bottom:calc(var(--dock) + 2rem);
}

/* ---------- 头图 ---------- */
.hero{
  grid-column:1 / -1;
  position:relative;
  min-height:70vh;
  display:flex;
  align-items:center;
  padding:clamp(3rem,9vw,7rem) 0 clamp(4rem,9vw,7rem);
}

.hero__inner{
  display:flex;
  align-items:flex-end;
  gap:clamp(1rem,4vw,3rem);
  width:100%;
}

.hero__copy{flex:1 1 auto;min-width:0}

.hero__title{
  margin:0;
  font-size:clamp(2.6rem,11vw,9rem);
  font-weight:900;
  line-height:.94;
  letter-spacing:-.055em;
  overflow-wrap:anywhere;
  text-decoration:underline;
  text-decoration-thickness:.055em;
  text-underline-offset:.1em;
}

.hero__lead{
  margin:1.4rem 0 0;
  max-width:40ch;
  font-size:1.05rem;
  line-height:1.7;
}

.hero__fig{
  flex:0 0 auto;
  width:clamp(58px,11vw,132px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.8rem;
}

.hero__art{
  width:100%;
  border:2px solid #000;
  border-radius:4px;
  filter:grayscale(1) contrast(1.08);
}

.hero__brush{
  display:block;
  width:100%;
  height:clamp(96px,17vw,210px);
  background:#000;
  transform:rotate(-7deg);
  clip-path:polygon(50% 0,80% 20%,62% 37%,90% 62%,68% 100%,32% 100%,10% 60%,36% 40%,20% 19%);
  will-change:transform;
}

.hero__band{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:clamp(40px,7vw,84px);
  background:#000;
  clip-path:polygon(0 100%,100% 18%,100% 100%);
  pointer-events:none;
}

/* ---------- 正文排版 ---------- */
main > div[id] h2{
  margin:0 0 .9rem;
  font-size:clamp(1.6rem,4.8vw,3rem);
  font-weight:900;
  letter-spacing:-.045em;
  line-height:1.06;
}

main > div[id] h3{
  margin:2rem 0 .7rem;
  font-size:clamp(1.2rem,3vw,1.6rem);
  font-weight:700;
  letter-spacing:-.02em;
}

main > div[id] h2 + hr,
main > div[id] h3 + hr{border-top-width:3px}

main > div[id] p{
  margin:0 0 1.25rem;
  max-width:64ch;
}

main > div[id] ul,
main > div[id] ol{
  margin:0 0 1.4rem;
  padding-left:1.15rem;
  max-width:62ch;
}
main > div[id] ul li{list-style:square}
main > div[id] ol li{list-style:decimal}
main > div[id] li{margin:.4rem 0}

main > div[id] a{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
main > div[id] a:hover{background:#000;color:#fff;text-decoration:none}

main > div[id] blockquote{
  margin:1.6rem 0;
  padding:.2rem 0 .2rem 1.2rem;
  border-left:6px solid #000;
  font-size:1.1rem;
}

main > div[id] figure{margin:1.6rem 0}
main > div[id] img{border:2px solid #000;border-radius:4px}

/* ---------- 侧栏 ---------- */
.rail{
  grid-column:2;
  grid-row:2 / span 14;
  align-self:stretch;
}

.rail__box{
  position:sticky;
  top:2rem;
  border:2px solid #000;
  border-radius:4px;
  padding:1.15rem 1.05rem 1.4rem;
}

.rail__h{
  margin:0;
  font-size:1rem;
  letter-spacing:.1em;
  font-weight:700;
}

.rail__box hr{margin:.55rem 0 .9rem;border-top:2px solid #000}

.rail__list{display:grid;gap:.1rem}

.rail__list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:.15rem 0;
  font-size:.95rem;
  line-height:1.35;
  text-decoration:none;
  border-bottom:1px dotted #000;
}
.rail__list a:hover{background:#000;color:#fff;border-bottom-color:#000}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:clamp(2.5rem,7vw,5rem);
  border-top:2px solid #000;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1rem 2rem;
  padding:clamp(2rem,6vw,4rem) clamp(1.15rem,5vw,5rem) calc(var(--dock) + 2.5rem);
}

.foot__brand{
  font-size:clamp(2rem,6.5vw,4.5rem);
  font-weight:900;
  letter-spacing:-.055em;
  line-height:.9;
}

.foot__nav{
  display:flex;
  flex-wrap:wrap;
  gap:0 1.1rem;
}

.foot__nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:.95rem;
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.foot__nav a:hover{border-bottom-color:#000}

.foot__note{font-size:.86rem;letter-spacing:.02em}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  height:var(--dock);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:0 clamp(.85rem,4vw,2rem) env(safe-area-inset-bottom);
  background:var(--paper);
  border-top:2px solid #000;
}

.dock__mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  background:#000;
  color:#fff;
  border-radius:4px;
  text-decoration:none;
  font-weight:700;
  font-size:1.35rem;
  line-height:1;
  overflow:hidden;
  transition:transform .2s ease;
}
.dock__mark:hover{transform:rotate(-6deg)}
.dock__mark img{width:100%;height:100%;object-fit:cover;border-radius:2px}

.dock__menu{display:flex}

.dock__summary{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  min-height:46px;
  padding:.5rem .95rem;
  background:#000;
  color:#fff;
  border-radius:4px;
  cursor:pointer;
  list-style:none;
  position:relative;
  z-index:70;
  font-size:.95rem;
  letter-spacing:.06em;
  user-select:none;
}
.dock__summary::-webkit-details-marker{display:none}

.bars{display:inline-flex;flex-direction:column;justify-content:center;gap:4px;width:20px;height:16px}
.bars i{display:block;height:2px;background:#fff;transition:transform .25s ease,opacity .25s ease}

.dock__menu[open] .bars i:nth-child(1){transform:translateY(6px) rotate(45deg)}
.dock__menu[open] .bars i:nth-child(2){opacity:0}
.dock__menu[open] .bars i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

.sheet{
  position:fixed;
  inset:0;
  z-index:55;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.15rem;
  margin:0;
  padding:calc(2rem + env(safe-area-inset-top)) clamp(1.15rem,5vw,4rem) calc(var(--dock) + 2rem);
  background:#000;
  color:#fff;
  overflow-y:auto;
}

.dock__menu:not([open]) .sheet{display:none}

.sheet li{border-bottom:1px solid rgba(255,255,255,.25)}

.sheet a{
  display:flex;
  align-items:center;
  min-height:58px;
  color:#fff;
  text-decoration:none;
  font-size:clamp(1.2rem,5vw,2rem);
  font-weight:700;
  letter-spacing:-.025em;
  line-height:1.15;
  transition:transform .22s ease;
}
.sheet a:hover{transform:translateX(8px)}

/* ---------- 移动端 ---------- */
@media (max-width:880px){
  main{display:block}
  main > * + *{margin-top:2.25rem}
  main > div[id]{border-top:2px solid #000}
  .hero__inner{flex-direction:column;align-items:flex-start;gap:1.4rem}
  .hero__fig{order:-1;width:70px;flex-direction:row;align-items:flex-end}
  .hero__brush{height:74px;width:56px}
  .rail{margin-top:3rem}
  .rail__box{position:static}
  .foot__note{flex:1 1 100%;text-align:center;border-top:1px solid #000;padding-top:.9rem}
}

@media (max-width:420px){
  .dock__word{display:none}
  .dock__summary{padding:.5rem .8rem}
  .hero{min-height:60vh}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
  .hero__brush{transform:rotate(-7deg)!important}
}

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