*,*::before,*::after{box-sizing:border-box}
:root{
  --ink:#000;
  --paper:#fff;
  --muted:rgba(0,0,0,.62);
  --line:rgba(0,0,0,.15);
  --pad:clamp(1rem,4vw,2.5rem);
}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Noto Sans SC",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
h1,h2,h3{font-weight:700;line-height:1.14;letter-spacing:-.02em;margin:0 0 .6em;text-wrap:balance}
p{margin:0 0 1.15em}
a{color:inherit}
small{font-size:.8rem}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.eyebrow,.kicker{
  display:block;
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.26em;
  color:var(--muted);
  margin-bottom:.55rem;
}
.kicker{letter-spacing:.2em}

/* 角落品牌 */
.corner{
  position:fixed;
  top:.75rem;left:.75rem;z-index:70;
  width:46px;height:46px;
  display:grid;place-items:center;
  padding:.4rem;
  background:#fff;
  border:1.5px solid var(--ink);
  border-radius:4px;
  text-decoration:none;
}
.corner .mark{width:100%;height:100%;object-fit:contain}
.corner .mark-txt{font-size:1.05rem}

/* 刊头 */
.hero{
  min-height:70vh;
  display:grid;
  align-content:end;
  padding:5.75rem var(--pad) 2.5rem;
  border-bottom:1px solid var(--ink);
}
.hero-inner{display:flex;flex-direction:column-reverse;gap:1.25rem;align-items:flex-start}
.hero-text{max-width:36ch;min-width:0}
h1{font-size:clamp(2.1rem,7vw,4.6rem);margin:0 0 .5em}
.kicker+h1{margin-top:0}
.dek{margin:0;color:var(--muted);font-size:1.02rem;line-height:1.7;max-width:44ch}
.hero-mark{
  width:clamp(52px,13vw,84px);
  aspect-ratio:1;
  border:1.5px solid var(--ink);
  border-radius:4px;
  display:grid;place-items:center;
  padding:.5rem;
  background:#fff;
  will-change:transform;
}
.hero-mark .mark{width:100%;height:100%;object-fit:contain}
.mark-txt{font-size:1.4rem;font-weight:700;line-height:1}
@media(min-width:720px){
  .hero-inner{flex-direction:row;align-items:flex-end;justify-content:space-between;gap:3rem}
  .hero-mark{width:clamp(84px,12vw,132px)}
}

/* 主体栅格 */
main{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:2.5rem;
  padding:3rem var(--pad) 1rem;
  align-items:start;
}
@media(min-width:980px){
  main{grid-template-columns:16rem minmax(0,1fr);gap:clamp(2rem,5vw,4.5rem)}
}

/* 左栏 */
.rail{border-top:2px solid var(--ink);padding-top:1.1rem}
@media(min-width:980px){.rail{position:sticky;top:1.5rem}}
.rail h2{font-size:1.05rem;letter-spacing:.02em;margin-bottom:1rem}
.toc{margin:0;padding:0;list-style:none}
.toc li{border-bottom:1px solid var(--line)}
.toc a{
  display:block;
  padding:.62rem 0;
  min-height:44px;
  text-decoration:none;
  font-size:.95rem;
  line-height:1.5;
}
.toc a:hover{text-decoration:underline;text-underline-offset:.25em}

/* 正文 */
div{min-width:0}
.prose{max-width:72ch}
article[id]{scroll-margin-top:1.5rem;scroll-margin-bottom:5.5rem}
.prose>article{padding-bottom:.4rem}
.prose>article+article{
  border-top:1px solid var(--ink);
  margin-top:2.75rem;
  padding-top:2rem;
}
.prose h2{font-size:clamp(1.5rem,3.6vw,2.15rem);margin-top:0}
.prose h3{font-size:clamp(1.15rem,2.4vw,1.4rem);margin-top:1.8em}
.prose small{
  display:block;
  font-size:.72rem;
  letter-spacing:.24em;
  color:var(--muted);
  margin-bottom:.45rem;
}
.prose a{text-decoration:underline;text-underline-offset:.24em;text-decoration-thickness:1px}
.prose ul,.prose ol{padding-left:1.3em;margin:0 0 1.2em}
.prose li{margin-bottom:.4em}
.prose blockquote{
  margin:2rem 0;
  padding:.2rem 0 .2rem 1.4rem;
  border-left:3px solid var(--ink);
  font-size:1.16em;
  font-weight:500;
  line-height:1.62;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose figure{margin:2rem 0}
.prose figcaption{font-size:.85rem;color:var(--muted);margin-top:.5rem}
.prose hr{border:0;border-top:1px solid var(--ink);margin:2.5rem 0}
.prose>article:first-child>p:first-of-type::first-letter{
  float:left;
  font-size:3.6em;
  line-height:.82;
  font-weight:700;
  padding:.04em .1em 0 0;
}
@media(min-width:1140px){
  .prose>article{column-count:2;column-gap:2.6rem}
  .prose>article h2,.prose>article h3,.prose>article blockquote,.prose>article figure{break-inside:avoid}
}

/* 页脚 */
footer{
  margin-top:3.5rem;
  border-top:2px solid var(--ink);
  padding:2.5rem var(--pad) 7rem;
  display:grid;
  gap:2.5rem;
}
@media(min-width:760px){
  footer{grid-template-columns:1.5fr 1fr;gap:3rem}
}
.foot-brand h2{
  font-size:clamp(2.4rem,10vw,6.5rem);
  line-height:.94;
  letter-spacing:-.035em;
  margin:0;
  word-break:break-word;
}
.foot-links h2{font-size:1.1rem;margin-bottom:.9rem}
.foot-nav{list-style:none;margin:0;padding:0}
.foot-nav a{
  display:block;
  padding:.55rem 0;
  min-height:44px;
  text-decoration:none;
  border-bottom:1px solid var(--line);
  font-size:.95rem;
}
.foot-nav a:hover{text-decoration:underline;text-underline-offset:.25em}
.foot-bottom{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:.8rem;
  border-top:1px solid var(--ink);
  padding-top:1rem;
  font-size:.9rem;
}
.foot-bottom p{margin:0}
.foot-bottom a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  text-decoration:none;
  border-bottom:1px solid currentColor;
}

/* 底部固定条 */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;z-index:60;
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.5rem var(--pad) calc(.5rem + env(safe-area-inset-bottom));
  background:#fff;
  border-top:1.5px solid var(--ink);
}
.dock-group{position:relative}
.dock-group>summary{
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:44px;
  padding:0 1rem;
  border:1.5px solid var(--ink);
  border-radius:4px;
  background:#fff;
  font-weight:500;
  cursor:pointer;
}
.dock-group>summary::-webkit-details-marker{display:none}
.dock-group>summary::before{
  content:"";
  width:14px;height:2px;
  background:currentColor;
  box-shadow:0 5px 0 currentColor,0 -5px 0 currentColor;
}
.dock-group[open]>summary{background:var(--ink);color:var(--paper)}
.dock-list{
  position:absolute;
  left:0;
  bottom:calc(100% + .6rem);
  width:min(20rem,calc(100vw - 1.5rem));
  max-height:60vh;
  overflow:auto;
  margin:0;
  padding:.4rem;
  list-style:none;
  background:#fff;
  border:1.5px solid var(--ink);
  border-radius:4px;
  box-shadow:0 10px 26px rgba(0,0,0,.16);
}
.dock-list a{
  display:flex;
  align-items:baseline;
  gap:.7rem;
  padding:.62rem .7rem;
  min-height:44px;
  text-decoration:none;
  border-bottom:1px solid var(--line);
  font-size:.98rem;
}
.dock-list li:last-child a{border-bottom:0}
.dock-list li:nth-child(3) a{border-bottom:1.5px solid var(--ink)}
.dock-list a:hover{background:rgba(0,0,0,.05)}
.no{
  font-size:.72rem;
  letter-spacing:.1em;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.dock-search{flex:1;min-width:0;display:flex}
.dock-search input{
  width:100%;
  min-height:44px;
  padding:0 .8rem;
  border:1.5px solid var(--ink);
  border-radius:4px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:16px;
}
.dock-search input::placeholder{color:var(--muted)}

/* 动效 */
[data-reveal]{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
[data-reveal].revealed{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  [data-reveal]{opacity:1!important;transform:none!important;transition:none!important}
  .hero-mark{transform:none!important}
}

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