@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root{
  --paper:#fafaf8;
  --gray:#4a4a4a;
  --ink:#1a1a1a;
  --tint:#efeeea;
  --dock:96px;
  --radius:28px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
html,body{overflow-x:hidden}
body{
  margin:0;
  font-family:'Didact Gothic','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(26,26,26,.05) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 70%, rgba(74,74,74,.045) 0 1px, transparent 1px),
    repeating-linear-gradient(96deg, rgba(26,26,26,.02) 0 1px, transparent 1px 5px);
  background-size:19px 23px, 29px 31px, 5px 100%;
}
img{max-width:100%}
p{margin:0 0 14px}
a{color:var(--ink)}
:focus-visible{outline:3px dashed var(--gray);outline-offset:3px}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* 底部固定条：品牌居左 + 药丸胶囊菜单 */
.dock{
  position:fixed;
  inset:auto 0 0 0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  background:var(--paper);
  border-top:2px solid var(--ink);
  box-shadow:0 -6px 0 rgba(26,26,26,.06);
}
.mark{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 4px;
  border-bottom:3px solid var(--ink);
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  letter-spacing:.14em;
  white-space:nowrap;
  flex:0 0 auto;
}
.dock nav{flex:1 1 auto;min-width:0}
.dock-list{
  display:flex;
  gap:8px;
  margin:0;
  padding:2px 2px 3px;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
}
.dock-list::-webkit-scrollbar{display:none}
.dock-list li{flex:0 0 auto}
.dock-a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 15px;
  border:2px solid var(--ink);
  border-radius:999px;
  background:var(--paper);
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  white-space:nowrap;
}
.dock-list li:nth-child(odd) .dock-a{transform:rotate(-1.1deg)}
.dock-list li:nth-child(even) .dock-a{transform:rotate(1deg)}
.dock-a:hover,.dock-a:focus-visible{background:var(--ink);color:var(--paper)}

/* 首屏 */
.hero{
  position:relative;
  overflow:hidden;
  min-height:100vh;
  min-height:100svh;
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  align-items:center;
  gap:clamp(18px,4vw,56px);
  padding:clamp(28px,7vw,76px) clamp(16px,5vw,64px) calc(var(--dock) + 22px);
}
.ghost{
  position:absolute;
  right:-1%;
  bottom:0;
  z-index:0;
  font-family:'Poiret One',Georgia,serif;
  font-size:clamp(140px,26vw,340px);
  line-height:.78;
  color:rgba(26,26,26,.075);
  pointer-events:none;
  user-select:none;
  will-change:transform;
}
.hero-fig{
  position:relative;
  z-index:1;
  margin:0;
  padding:9px;
  background:var(--paper);
  border:2px solid var(--ink);
  border-bottom:9px solid var(--ink);
  border-radius:var(--radius);
  transform:rotate(-1.4deg);
}
.hero-fig::before{
  content:'';
  position:absolute;
  top:-14px;
  left:16%;
  width:92px;
  height:26px;
  background:rgba(74,74,74,.18);
  border-left:2px dashed rgba(26,26,26,.3);
  border-right:2px dashed rgba(26,26,26,.3);
  transform:rotate(-4deg);
}
.hero-img{
  display:block;
  width:100%;
  height:clamp(220px,44vh,430px);
  object-fit:cover;
  border-radius:20px;
  filter:grayscale(1) contrast(1.08);
}
.blot{
  display:block;
  height:clamp(220px,44vh,430px);
  border-radius:20px;
  background-color:var(--tint);
  background-image:repeating-linear-gradient(45deg, rgba(26,26,26,.16) 0 2px, transparent 2px 13px);
}
.hero-copy{position:relative;z-index:1;text-align:center}
.hero-copy h1{
  margin:0;
  font-family:'Poiret One',Georgia,serif;
  font-weight:400;
  font-size:clamp(2rem,5.4vw,4.2rem);
  line-height:1.08;
  letter-spacing:.04em;
}
.lead{margin:18px auto 0;max-width:34ch;color:var(--gray)}

/* 正文 + 右侧栏 */
.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 252px;
  gap:clamp(20px,3vw,44px);
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:clamp(34px,6vw,76px) clamp(16px,4vw,40px);
}
.prose{min-width:0}
.prose > div{
  position:relative;
  background:var(--paper);
  border:2px solid var(--ink);
  border-bottom:8px solid var(--ink);
  border-radius:var(--radius);
  padding:clamp(20px,3.2vw,40px);
  margin:0 0 clamp(24px,4vw,46px);
  scroll-margin-top:26px;
  scroll-margin-bottom:calc(var(--dock) + 26px);
}
.prose > div::before{
  content:'';
  position:absolute;
  top:-10px;
  right:26px;
  width:70px;
  height:18px;
  background:rgba(74,74,74,.16);
  transform:rotate(2.4deg);
}
.prose > div:nth-child(odd){transform:rotate(-.4deg)}
.prose > div:nth-child(even){transform:rotate(.34deg)}
.prose > div > *:last-child{margin-bottom:0}
.prose h2{
  margin:0 0 14px;
  font-family:'Poiret One',Georgia,serif;
  font-weight:400;
  font-size:clamp(1.5rem,3.2vw,2.1rem);
  line-height:1.22;
  letter-spacing:.04em;
}
.prose h3{
  margin:24px 0 10px;
  font-family:'Poiret One',Georgia,serif;
  font-weight:400;
  font-size:1.25rem;
  line-height:1.3;
}
.prose p{color:#262626}
.prose ul,.prose ol{margin:0 0 16px;padding-left:1.4em}
.prose li{margin-bottom:6px}
.prose a{text-decoration:none;border-bottom:2px solid var(--gray)}
.prose strong{font-weight:700}
.prose blockquote{
  margin:18px 0;
  padding:4px 0 4px 16px;
  border-left:4px solid var(--ink);
  color:var(--gray);
}
.prose figure{margin:18px 0}
.prose img{border:2px solid var(--ink);border-radius:20px;filter:grayscale(1) contrast(1.05)}
.prose time{color:var(--gray)}

small{
  display:block;
  font-size:16px;
  letter-spacing:.3em;
  color:var(--gray);
  margin-bottom:2px;
}

.rail{
  position:sticky;
  top:26px;
  padding:18px 16px;
  background:var(--tint);
  border:2px solid var(--ink);
  border-radius:var(--radius);
  transform:rotate(.9deg);
}
.rail h2{
  margin:0 0 12px;
  font-family:'Poiret One',Georgia,serif;
  font-weight:400;
  font-size:1.5rem;
  letter-spacing:.05em;
}
.rail-list{margin:0;padding:0;list-style:none}
.rail-list li + li{border-top:1px dashed rgba(26,26,26,.25)}
.rail-a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 2px;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
}
.rail-a:hover{color:var(--gray);text-decoration:underline}

/* 页脚 */
footer{
  display:grid;
  grid-template-columns:1.05fr 1fr 1.15fr;
  gap:clamp(20px,3vw,42px);
  margin-top:clamp(30px,6vw,70px);
  padding:clamp(30px,5vw,58px) clamp(16px,4vw,40px) calc(var(--dock) + 26px);
  background:var(--tint);
  border-top:3px solid var(--ink);
}
footer div{min-width:0}
footer h2{
  margin:0 0 10px;
  font-family:'Poiret One',Georgia,serif;
  font-weight:400;
  font-size:1.3rem;
  letter-spacing:.05em;
}
.f-mark{
  margin:0;
  font-family:'Poiret One',Georgia,serif;
  font-size:clamp(1.25rem,3vw,1.6rem);
  letter-spacing:.12em;
  border-bottom:3px solid var(--ink);
  display:inline-block;
  padding-bottom:4px;
}
.f-list{margin:0;padding:0;list-style:none}
.f-a{
  display:flex;
  align-items:center;
  min-height:42px;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  border-bottom:1px dashed rgba(26,26,26,.22);
}
.f-a:hover{color:var(--gray);text-decoration:underline}
.sub{display:flex;flex-wrap:wrap;gap:8px}
.sub input{
  flex:1 1 130px;
  min-width:0;
  min-height:44px;
  padding:0 14px;
  font:inherit;
  font-size:16px;
  color:var(--ink);
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:999px;
}
.sub button{
  min-height:44px;
  padding:0 20px;
  font:inherit;
  font-size:16px;
  color:var(--paper);
  background:var(--ink);
  border:2px solid var(--ink);
  border-radius:999px;
  cursor:pointer;
}
.sub button:hover{background:var(--paper);color:var(--ink)}
.f-bottom{
  grid-column:1 / -1;
  margin-top:6px;
  padding-top:14px;
  border-top:2px dashed rgba(26,26,26,.4);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  color:var(--gray);
  font-size:16px;
}
.f-bottom p{margin:0}
.f-top a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 4px;
  color:var(--ink);
  text-decoration:none;
  border-bottom:2px solid var(--ink);
}

/* 手绘感出场：分步缓动 + 交错 */
@media (prefers-reduced-motion: no-preference){
  .prose > div{animation:fade .5s steps(3,end) both}
  .prose > div:nth-child(1){animation-delay:.02s}
  .prose > div:nth-child(2){animation-delay:.07s}
  .prose > div:nth-child(3){animation-delay:.12s}
  .prose > div:nth-child(4){animation-delay:.17s}
  .prose > div:nth-child(5){animation-delay:.22s}
  .prose > div:nth-child(6){animation-delay:.27s}
  .prose > div:nth-child(7){animation-delay:.32s}
  .hero-fig,.hero-copy{animation:fade .45s steps(2,end) both}
  @keyframes fade{from{opacity:0}to{opacity:1}}
}

@media (max-width:860px){
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    gap:26px;
    padding-top:38px;
  }
  .hero-copy{order:1}
  .hero-fig{order:2}
  .ghost{top:6%;bottom:auto;font-size:clamp(120px,40vw,220px)}
  .wrap{grid-template-columns:1fr}
  .rail{position:static;transform:rotate(.6deg)}
  footer{grid-template-columns:1fr}
  .mark{font-size:16px;letter-spacing:.08em}
}

@media (max-width:400px){
  body{font-size:16px}
  .dock{padding:10px 10px;gap:8px}
  .dock-a{padding:0 12px}
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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