@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue:wght@400;500;600;700&display=swap');

:root{
  --paper:#fafaf8;
  --gray:#4a4a4a;
  --ink:#1a1a1a;
  --dock-h:176px;
  --sans:'Epilogue',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --shout:'Anton',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}

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

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.78;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    repeating-linear-gradient(0deg,rgba(26,26,26,.028) 0 1px,transparent 1px 4px),
    radial-gradient(circle at 16% 8%,rgba(74,74,74,.07),transparent 40%),
    radial-gradient(circle at 86% 74%,rgba(26,26,26,.055),transparent 44%);
  padding-bottom:calc(var(--dock-h) + 16px);
  -webkit-text-size-adjust:100%;
  overflow-x:hidden;
}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  background:rgba(250,250,248,.97);
  border-top:2px solid var(--ink);
  box-shadow:0 -6px 0 rgba(26,26,26,.05);
}
.dock-nav{
  max-width:1120px;
  margin:0 auto;
  padding:8px 10px 6px;
}
.dock-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:2px 2px;
  width:100%;
}
.dock-list > li{display:flex}
.dock-list a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:8px 9px;
  font-size:16px;
  line-height:1.2;
  color:var(--gray);
  text-decoration:none;
  border-radius:14px 12px 15px 11px;
  transition:background-color .12s linear,color .12s linear;
}
.dock-list a:hover,
.dock-list a:focus-visible{
  color:var(--ink);
  background:rgba(26,26,26,.08);
}
.dock-brand{
  order:-1;
  flex:0 0 100%;
  justify-content:center;
  align-items:center;
  gap:10px;
  padding-bottom:4px;
  margin-bottom:2px;
  border-bottom:1px dashed rgba(26,26,26,.28);
}
.dock-logo{
  font-family:var(--shout);
  font-size:20px;
  letter-spacing:.08em;
  color:var(--ink);
  text-decoration:none;
  padding:2px 4px;
  transform:rotate(-1.2deg);
}
.dock-logo:hover{background:rgba(26,26,26,.08)}
.dock-contact{
  font-size:16px;
  color:var(--gray);
  text-decoration:none;
  border-bottom:2px solid var(--ink);
  padding:6px 2px;
}

/* ---------- 头图 ---------- */
.hero{
  position:relative;
  min-height:70vh;
  display:grid;
  place-items:center;
  padding:76px 22px 96px;
  background:#141414;
  overflow:hidden;
  clip-path:polygon(0 0,100% 0,100% 91%,0 100%);
}
.hero-fig{
  position:absolute;
  inset:0;
  margin:0;
  overflow:hidden;
}
.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:grayscale(1) contrast(1.2);
  opacity:.5;
}
.hero-sketch{
  width:100%;
  height:100%;
  display:block;
}
.hero-h1{
  position:relative;
  z-index:2;
  margin:0;
  max-width:16ch;
  font-family:var(--shout);
  font-size:clamp(2.5rem,11vw,6rem);
  line-height:1.02;
  letter-spacing:.02em;
  text-align:center;
  color:var(--paper);
  text-shadow:3px 3px 0 rgba(0,0,0,.55);
  transform:rotate(-1deg);
}

/* ---------- 主体栅格：左侧栏 + 正文 ---------- */
.stage{
  max-width:1120px;
  margin:0 auto;
  padding:44px 20px 0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
  align-items:start;
}
.rail{
  border-bottom:2px dashed rgba(26,26,26,.3);
  padding-bottom:18px;
}
.rail-title{
  margin:0 0 10px;
  font-family:var(--shout);
  font-size:20px;
  letter-spacing:.12em;
  font-weight:400;
}
.rail-title span{
  display:inline-block;
  border-bottom:3px solid var(--ink);
  padding:0 4px 2px;
  transform:rotate(-1.4deg);
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:6px 8px;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 13px;
  font-size:16px;
  color:var(--gray);
  text-decoration:none;
  border:1.5px solid rgba(26,26,26,.3);
  border-radius:999px;
  transition:border-color .12s linear,color .12s linear;
}
.rail-list a:hover,
.rail-list a:focus-visible{
  color:var(--ink);
  border-color:var(--ink);
}

/* ---------- 正文内容 ---------- */
.body{min-width:0}
.body > div{
  position:relative;
  margin:0 0 30px;
  padding:24px 20px 26px;
  background:rgba(255,255,255,.62);
  border:2px solid var(--ink);
  border-radius:28px 22px 30px 24px;
  scroll-margin-top:22px;
  transform:rotate(-.3deg);
  animation:paperIn .42s ease-out both;
}
.body > div:nth-child(even){
  transform:rotate(.36deg);
  border-radius:22px 30px 24px 28px;
}
.body > div:nth-child(1){animation-delay:.02s}
.body > div:nth-child(2){animation-delay:.06s}
.body > div:nth-child(3){animation-delay:.1s}
.body > div:nth-child(4){animation-delay:.14s}
.body > div:nth-child(5){animation-delay:.18s}
.body > div:nth-child(6){animation-delay:.22s}
.body > div:nth-child(7){animation-delay:.26s}

@keyframes paperIn{
  from{opacity:0;transform:translateY(14px) rotate(-.9deg)}
  to{opacity:1}
}

.body h2{
  font-family:var(--shout);
  font-weight:400;
  font-size:clamp(1.45rem,5.4vw,2.1rem);
  line-height:1.28;
  letter-spacing:.015em;
  margin:.1em 0 .65em;
}
.body h2 span{
  display:inline-block;
  padding:0 .14em;
  transform:rotate(-.5deg);
  background:linear-gradient(transparent 64%,rgba(26,26,26,.17) 64%);
}
.body h3{
  font-family:var(--shout);
  font-weight:400;
  font-size:1.2rem;
  line-height:1.35;
  margin:1.3em 0 .5em;
  letter-spacing:.02em;
}
.body h3 span{
  display:inline-block;
  border-left:4px solid var(--ink);
  padding-left:9px;
}
.body p{margin:0 0 1.05em;color:#2a2a2a}
.body ul,
.body ol{margin:0 0 1.05em;padding-left:1.35em;color:#2a2a2a}
.body li{margin:.28em 0}
.body a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:2px solid var(--gray);
}
.body a:hover{border-bottom-color:var(--ink);background:rgba(26,26,26,.07)}
.body strong{
  background:linear-gradient(transparent 58%,rgba(26,26,26,.2) 58%);
  font-weight:700;
}
.body img{
  max-width:100%;
  height:auto;
  display:block;
  margin:1em 0;
  border:2px solid var(--ink);
  border-radius:18px;
  filter:grayscale(1) contrast(1.08);
}
.body figure{margin:1em 0}
.body blockquote{
  margin:1em 0;
  padding:10px 16px;
  border-left:5px solid var(--ink);
  background:rgba(26,26,26,.04);
  color:#333;
}
.body > div > :last-child{margin-bottom:0}
.body time{
  display:inline-block;
  font-size:15px;
  color:var(--gray);
  border-bottom:1px dashed var(--gray);
}

/* ---------- 页脚 ---------- */
.foot{
  max-width:1120px;
  margin:64px auto 0;
  padding:34px 20px 42px;
  border-top:2px solid var(--ink);
}
.foot-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.foot-col-a{min-width:0}
.foot-brand{
  margin:0 0 10px;
  font-family:var(--shout);
  font-weight:400;
  font-size:clamp(2.3rem,12vw,4.6rem);
  line-height:.94;
  letter-spacing:.02em;
}
.foot-brand span{
  display:inline-block;
  transform:rotate(-1.2deg);
  border-bottom:4px solid var(--ink);
  padding-bottom:4px;
}
.foot-addr{
  font-style:normal;
  font-size:15px;
  color:var(--gray);
  display:flex;
  flex-wrap:wrap;
  gap:4px 10px;
}
.foot-host{
  letter-spacing:.06em;
  border-left:1px solid rgba(26,26,26,.35);
  padding-left:10px;
}
.foot-links{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:2px 14px;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:16px;
  color:var(--gray);
  text-decoration:none;
  border-bottom:2px solid transparent;
  transition:border-color .12s linear,color .12s linear;
}
.foot-links a:hover,
.foot-links a:focus-visible{
  color:var(--ink);
  border-bottom-color:var(--ink);
}
.foot-copy{
  margin:30px 0 0;
  text-align:center;
  font-size:15px;
  color:var(--gray);
  letter-spacing:.05em;
}

/* ---------- 桌面 ---------- */
@media (min-width:900px){
  :root{--dock-h:80px}
  .dock-nav{padding:8px 24px}
  .dock-list{flex-wrap:nowrap;gap:4px 8px}
  .dock-list a{padding:8px 12px}
  .dock-brand{
    order:0;
    flex:0 0 auto;
    padding:0 16px;
    margin:0;
    border-bottom:0;
    border-left:1px dashed rgba(26,26,26,.28);
    border-right:1px dashed rgba(26,26,26,.28);
  }
  .hero{padding:96px 40px 120px}
  .stage{
    grid-template-columns:196px minmax(0,1fr);
    gap:44px;
    padding:56px 24px 0;
  }
  .rail{
    position:sticky;
    top:28px;
    border-bottom:0;
    padding-bottom:0;
  }
  .rail-list{flex-direction:column;flex-wrap:nowrap;gap:1px}
  .rail-list a{
    border:0;
    border-bottom:1px dashed rgba(26,26,26,.22);
    border-radius:0;
    padding:8px 2px;
    min-height:40px;
  }
  .rail-list a:hover{padding-left:9px;background:rgba(26,26,26,.05)}
  .body > div{padding:32px 34px}
  .foot{padding:44px 24px 56px}
  .foot-grid{grid-template-columns:1.5fr 1fr;gap:32px}
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
  }
}

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