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

:root{
  --paper:#fafaf8;
  --ink:#1a1a1a;
  --gray:#4a4a4a;
  --hair:rgba(26,26,26,.22);
  --glass:rgba(250,250,248,.78);
}

*{box-sizing:border-box}

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

body{
  margin:0;
  overflow-x:hidden;
  font-family:Roboto,"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.17'/%3E%3C/svg%3E"),
    repeating-linear-gradient(96deg, rgba(74,74,74,.05) 0 1px, rgba(74,74,74,0) 1px 8px),
    radial-gradient(circle at 12% 6%, rgba(74,74,74,.09), rgba(74,74,74,0) 46%),
    radial-gradient(circle at 88% 74%, rgba(26,26,26,.07), rgba(26,26,26,0) 44%);
  background-attachment:fixed;
}

a{color:var(--ink)}

:focus-visible{
  outline:3px dashed var(--gray);
  outline-offset:3px;
}

/* 底部条导航 */
.dock{
  position:fixed;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  z-index:60;
  width:min(1040px,calc(100% - 16px));
  background:var(--glass);
  -webkit-backdrop-filter:blur(9px) saturate(1.15);
  backdrop-filter:blur(9px) saturate(1.15);
  border:2px solid var(--ink);
  border-radius:18px 22px 18px 22px;
  box-shadow:5px 6px 0 rgba(26,26,26,.15);
}

.dock nav{
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}

.dock nav::-webkit-scrollbar{display:none}

.dock ul{
  display:flex;
  gap:2px;
  min-width:max-content;
  margin:0;
  padding:5px;
  list-style:none;
}

.dock a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 13px;
  font-size:16px;
  line-height:1.4;
  color:var(--gray);
  text-decoration:none;
  white-space:nowrap;
  border-radius:12px;
  transition:transform .12s linear,color .12s linear,background-color .12s linear;
}

.dock a::before{
  content:"";
  width:6px;
  height:6px;
  margin-right:7px;
  border-radius:50% 46% 54% 50%;
  background:var(--ink);
  opacity:0;
}

.dock a:hover,
.dock a:focus-visible{
  color:var(--ink);
  background:rgba(26,26,26,.08);
  transform:translateY(-2px);
}

.dock a.on{color:var(--ink);background:rgba(26,26,26,.1)}
.dock a.on::before{opacity:1}

/* 页头 */
.hero{
  position:relative;
  min-height:70vh;
  display:grid;
  align-items:center;
  padding:88px 18px 46px;
  overflow:hidden;
  border-bottom:2px solid var(--ink);
}

.hero::after{
  content:"04";
  position:absolute;
  right:-2vw;
  bottom:-3vh;
  z-index:0;
  font-family:Newsreader,"Noto Serif SC",serif;
  font-weight:700;
  font-size:clamp(9rem,32vw,24rem);
  line-height:.75;
  letter-spacing:-.05em;
  color:rgba(26,26,26,.07);
  pointer-events:none;
  user-select:none;
}

.mark{
  position:absolute;
  top:14px;
  left:14px;
  z-index:5;
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:14px 18px 15px 19px;
  transform:rotate(-3deg);
  text-decoration:none;
}

.mark svg,
.mark img{
  display:block;
  width:32px;
  height:32px;
  object-fit:contain;
}

.hero-in{
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap-reverse;
  align-items:flex-end;
  justify-content:flex-end;
  gap:clamp(14px,4vw,44px);
  width:100%;
  max-width:960px;
  margin:0 auto;
}

.hero-art{
  flex:0 0 auto;
  width:clamp(84px,18vw,150px);
  margin-bottom:6px;
  transform:rotate(-5deg);
}

.hero-art svg,
.hero-pic{
  display:block;
  width:100%;
  height:auto;
}

.hero-pic{
  border:2px solid var(--ink);
  border-radius:18px 22px 20px 24px;
  padding:5px;
  background:var(--paper);
}

.hero-copy{
  flex:1 1 250px;
  min-width:0;
  text-align:right;
}

h1{
  margin:0;
  font-family:Newsreader,"Noto Serif SC","Songti SC",serif;
  font-weight:600;
  font-size:clamp(2.1rem,6.6vw,4.4rem);
  line-height:1.18;
  letter-spacing:.01em;
}

.wire{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-top:16px;
  padding:0 18px;
  font-size:16px;
  color:var(--gray);
  text-decoration:none;
  border:2px dashed var(--gray);
  border-radius:18px 22px 18px 22px;
  transform:rotate(-1.2deg);
  transition:background-color .12s linear,color .12s linear,transform .12s linear;
}

.wire:hover,
.wire:focus-visible{
  color:var(--ink);
  background:rgba(74,74,74,.12);
  transform:rotate(.8deg);
}

/* 正文骨架 */
main{display:block}

.wrap{
  width:100%;
  max-width:900px;
  margin:0 auto;
  padding:0 18px 40px;
}

.board{padding-top:34px}

.prose{font-size:17px}

.prose section{
  padding:26px 0 30px;
  border-bottom:2px dashed var(--hair);
  scroll-margin-top:22px;
}

.prose section:last-child{border-bottom:0;padding-bottom:44px}

.prose h2{
  margin:0 0 12px;
  font-family:Newsreader,"Noto Serif SC",serif;
  font-weight:600;
  font-size:clamp(1.5rem,3.6vw,2rem);
  line-height:1.3;
  letter-spacing:.01em;
}

.prose h3{
  margin:1.4em 0 .5em;
  font-size:1.2rem;
  line-height:1.4;
}

.prose p{margin:0 0 1.05em;color:var(--gray)}

.prose strong{color:var(--ink)}

.prose ul,
.prose ol{pargin:1em 1.4em;margin:1em 0 1em 1.35em;color:var(--gray)}

.prose li{margin:.35em 0}

.prose a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-style:wavy;
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
}

.prose img{
  max-width:100%;
  height:auto;
  margin:14px 0;
  padding:6px;
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:18px 22px 18px 22px;
  transform:rotate(-.5deg);
}

.prose blockquote{
  margin:1.2em 0;
  padding:12px 18px;
  color:var(--gray);
  background:rgba(26,26,26,.045);
  border-left:4px solid var(--ink);
  border-radius:0 18px 18px 0;
}

.prose table{
  width:100%;
  border-collapse:collapse;
  margin:1.2em 0;
  font-size:16px;
}

.prose th,
.prose td{
  padding:8px 10px;
  text-align:left;
  border:1px solid rgba(26,26,26,.3);
}

.prose hr{
  width:66px;
  height:2px;
  margin:0 0 16px;
  border:0;
  background:var(--ink);
  transform:rotate(-.7deg);
}

.prose time{
  font-size:16px;
  color:var(--gray);
}

/* 页脚 */
.foot{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px 26px;
  max-width:1000px;
  margin:0 auto;
  padding:34px 18px 130px;
  border-top:2px solid var(--ink);
}

.foot-brand h2{
  margin:0;
  font-family:Newsreader,"Noto Serif SC",serif;
  font-weight:700;
  font-size:clamp(1.8rem,5.4vw,3.4rem);
  line-height:1.05;
  letter-spacing:-.02em;
}

.foot-brand hr{
  width:78px;
  height:2px;
  margin:10px 0;
  border:0;
  background:var(--ink);
  transform:rotate(-1deg);
}

.foot-brand p{
  margin:0;
  max-width:34ch;
  font-size:16px;
  line-height:1.6;
  color:var(--gray);
}

.foot nav ul{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}

.foot nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 10px;
  font-size:16px;
  color:var(--gray);
  text-decoration:none;
  border-radius:10px;
  transition:color .12s linear,background-color .12s linear;
}

.foot nav a:hover,
.foot nav a:focus-visible{
  color:var(--ink);
  background:rgba(26,26,26,.07);
}

.foot-copy{
  text-align:right;
  font-size:16px;
  color:var(--gray);
}

.foot-copy p{margin:0}

/* 滚动显现 */
.js .prose article{
  opacity:0;
  transform:translateY(10px) rotate(.2deg);
}

.js .prose article.in{
  opacity:1;
  transform:none;
  transition:opacity .18s linear,transform .18s linear;
}

@media (max-width:760px){
  .hero{padding:80px 16px 38px;min-height:66vh}
  .hero-in{justify-content:flex-end;gap:14px}
  .hero-copy{text-align:right}
  .mark{width:44px;height:44px;top:12px;left:12px}
  .mark svg,.mark img{width:28px;height:28px}

  .dock{bottom:8px;width:calc(100% - 12px)}
  .dock a{padding:0 11px;font-size:16px}

  .foot{grid-template-columns:1fr;gap:14px;text-align:center;padding-bottom:124px}
  .foot-brand hr{margin:10px auto}
  .foot-brand p{margin:0 auto}
  .foot-copy{text-align:center}
  .foot nav a{min-height:44px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important;animation:none !important}
  .js .prose article{opacity:1;transform:none}
}

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