@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

:root{
  --paper:#fafaf8;
  --mid:#4a4a4a;
  --ink:#1a1a1a;
  --glass:rgba(255,255,255,.6);
  --line:1.5px solid var(--ink);
  --hard:5px 5px 0 var(--ink);
  --soft:5px 5px 0 rgba(26,26,26,.22);
}

*{box-sizing:border-box}

html{font-size:16px;scroll-behavior:smooth}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Nunito','DM Sans',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  mix-blend-mode:multiply;
  opacity:.85;
  background-image:
    repeating-linear-gradient(2deg, rgba(26,26,26,.05) 0 1px, rgba(26,26,26,0) 1px 3px),
    radial-gradient(rgba(74,74,74,.13) .8px, rgba(74,74,74,0) 1px);
  background-size:auto, 4px 4px;
}

img{max-width:100%;height:auto;display:block}

a{color:var(--ink);transition:background-color .12s steps(2), color .12s steps(2)}

a:focus-visible,button:focus-visible{
  outline:2.5px dashed var(--ink);
  outline-offset:2px;
}

/* ---------- 头部 ---------- */
.mast{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(250,250,248,.94);
  backdrop-filter:blur(6px);
  border-bottom:2px solid var(--ink);
}

.strip{
  margin:0;
  padding:.28rem 1rem;
  background:var(--ink);
  color:var(--paper);
  font-size:1rem;
  font-weight:800;
  letter-spacing:.22em;
  text-align:center;
  line-height:1.5;
  border-bottom:1px solid var(--paper);
}

.brandline{
  padding:.55rem 1rem .2rem;
  display:flex;
  align-items:center;
}

.brand-link{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:44px;
  padding:.1rem .15rem;
  text-decoration:none;
}

.mark{
  width:34px;
  height:34px;
  object-fit:cover;
  border:1.5px solid var(--ink);
  transform:rotate(-7deg);
  box-shadow:3px 3px 0 var(--mid);
}

.brand{
  font-weight:900;
  font-size:1.55rem;
  letter-spacing:-.02em;
  line-height:1.2;
  border-bottom:3px solid var(--ink);
  padding-bottom:1px;
}

.nav{
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  border-top:1.5px dashed rgba(26,26,26,.4);
  margin-top:.45rem;
}

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

.nav p{
  margin:0;
  padding:.15rem .6rem .3rem;
  display:flex;
  align-items:center;
  gap:.15rem;
  white-space:nowrap;
}

.nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.3rem .6rem;
  font-size:1rem;
  font-weight:800;
  text-decoration:none;
  border:1.5px dashed transparent;
  animation:rise .34s both;
}

.nav a:nth-child(1){animation-delay:0ms}
.nav a:nth-child(2){animation-delay:45ms}
.nav a:nth-child(3){animation-delay:90ms}
.nav a:nth-child(4){animation-delay:135ms}
.nav a:nth-child(5){animation-delay:180ms}
.nav a:nth-child(6){animation-delay:225ms}
.nav a:nth-child(7){animation-delay:270ms}

.nav a:hover{
  border-color:var(--ink);
  background:var(--ink);
  color:var(--paper);
}

/* ---------- 网格 ---------- */
.grid{
  position:relative;
  z-index:1;
  max-width:1120px;
  margin:0 auto;
  padding:1.4rem 1rem 2.4rem;
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  gap:1.6rem;
  align-items:start;
}

/* ---------- 大图 ---------- */
.hero{
  grid-column:1 / -1;
  position:relative;
  min-height:45vh;
  margin:0 -1rem -0.6rem;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding:1.1rem 1.2rem 2.2rem;
  overflow:hidden;
  background-color:var(--mid);
  background-image:
    repeating-linear-gradient(126deg, rgba(250,250,248,.14) 0 2px, rgba(250,250,248,0) 2px 11px),
    repeating-linear-gradient(38deg, rgba(26,26,26,.22) 0 1px, rgba(26,26,26,0) 1px 9px);
  clip-path:polygon(
    0 0, 100% 0, 100% calc(100% - 12px),
    93% 100%, 86% calc(100% - 10px), 79% 100%, 72% calc(100% - 13px),
    65% 100%, 58% calc(100% - 10px), 51% 100%, 44% calc(100% - 13px),
    37% 100%, 30% calc(100% - 10px), 23% 100%, 16% calc(100% - 13px),
    9% 100%, 0 calc(100% - 12px)
  );
}

.hero-img{
  position:absolute;
  left:0;
  top:-8%;
  width:100%;
  height:116%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.16);
  opacity:.62;
  will-change:transform;
}

.hero-veil{
  position:absolute;
  inset:0;
  background:linear-gradient(104deg, rgba(250,250,248,.5) 0%, rgba(26,26,26,.28) 52%, rgba(26,26,26,.88) 100%);
  pointer-events:none;
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:34ch;
  text-align:right;
  color:var(--paper);
}

.hero:not(.has-img) .hero-copy{text-shadow:1px 1px 0 rgba(26,26,26,.35)}

.hero h1{
  margin:0;
  font-size:clamp(1.85rem, 5.4vw, 3rem);
  line-height:1.16;
  font-weight:900;
  letter-spacing:-.015em;
  text-shadow:2px 2px 0 rgba(26,26,26,.55);
}

.hero-desc{
  margin:.6rem 0 0;
  font-size:1rem;
  line-height:1.6;
  font-weight:700;
  color:var(--paper);
  text-shadow:1px 1px 0 rgba(26,26,26,.6);
}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:150px;
  padding:.85rem .8rem 1rem;
  background:var(--glass);
  backdrop-filter:blur(9px);
  border:var(--line);
  box-shadow:var(--hard);
  transform:rotate(-.8deg);
}

.kick{
  display:block;
  font-size:1rem;
  font-weight:800;
  letter-spacing:.2em;
  color:var(--mid);
  line-height:1.3;
}

.rail-h{
  margin:.05rem 0 .55rem;
  font-size:1.3rem;
  font-weight:900;
  letter-spacing:-.01em;
  line-height:1.25;
  border-bottom:2px solid var(--ink);
  padding-bottom:.25rem;
}

.rail-list{
  margin:0;
  display:flex;
  flex-direction:column;
}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.2rem .25rem;
  font-size:1rem;
  font-weight:700;
  text-decoration:none;
  border-bottom:1.5px dashed rgba(26,26,26,.32);
  animation:rise .42s both;
  animation-delay:calc(var(--i) * 55ms);
}

.rail-list a:last-child{border-bottom:0}

.rail-list a:hover{
  background:var(--ink);
  color:var(--paper);
  transform:translateX(2px) rotate(-.5deg);
}

/* ---------- 正文纸片 ---------- */
.sheet{
  padding:1.1rem 1.15rem 1.8rem;
  background:var(--glass);
  backdrop-filter:blur(8px);
  border:var(--line);
  box-shadow:var(--hard);
  transform:rotate(.25deg);
  min-width:0;
}

.sheet section{
  padding:1.7rem 0;
  border-top:2px dashed rgba(26,26,26,.34);
  scroll-margin-top:158px;
}

.sheet section:first-child{
  border-top:0;
  padding-top:.35rem;
  scroll-margin-top:158px;
}

.sheet h2{
  margin:.1rem 0 .6rem;
  font-size:1.5rem;
  line-height:1.28;
  font-weight:900;
  letter-spacing:-.01em;
}

.sheet h3{
  margin:1.4rem 0 .45rem;
  font-size:1.2rem;
  line-height:1.35;
  font-weight:800;
}

.sheet small{
  display:block;
  font-size:1rem;
  font-weight:800;
  letter-spacing:.16em;
  color:var(--mid);
  line-height:1.4;
}

.sheet p{
  margin:.7rem 0;
  line-height:1.8;
}

.sheet ul,.sheet ol{
  margin:.7rem 0;
  padding-left:1.3rem;
}

.sheet li{margin:.35rem 0;line-height:1.75}

.sheet a{
  text-decoration:underline;
  text-decoration-style:dashed;
  text-underline-offset:3px;
  font-weight:700;
}

.sheet a:hover{background:var(--ink);color:var(--paper);text-decoration:none}

.sheet img{
  margin:1rem 0;
  border:var(--line);
  box-shadow:var(--soft);
}

.sheet blockquote{
  margin:1rem 0;
  padding:.55rem 1rem;
  border-left:4px solid var(--ink);
  background:rgba(74,74,74,.09);
  transform:rotate(-.35deg);
}

.sheet table{
  width:100%;
  border-collapse:collapse;
  margin:1rem 0;
  font-size:1rem;
}

.sheet th,.sheet td{
  border:1.5px solid rgba(26,26,26,.55);
  padding:.45rem .55rem;
  text-align:left;
  line-height:1.6;
}

.sheet th{background:rgba(26,26,26,.85);color:var(--paper)}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  max-width:1120px;
  margin:0 auto;
  padding:1.3rem 1rem 2.6rem;
  border-top:2px dashed rgba(26,26,26,.42);
  text-align:center;
}

.foot p{
  margin:0 0 .18rem;
  font-weight:800;
  letter-spacing:.02em;
}

.foot small{
  font-size:1rem;
  color:var(--mid);
}

/* ---------- 按钮 ---------- */
.to-top{
  position:fixed;
  right:1rem;
  bottom:1rem;
  z-index:30;
  min-height:44px;
  padding:.55rem 1rem;
  font-family:inherit;
  font-size:1rem;
  font-weight:800;
  color:var(--paper);
  background:var(--ink);
  border:1.5px solid var(--paper);
  box-shadow:4px 4px 0 rgba(26,26,26,.4);
  cursor:pointer;
  transform:rotate(-2.2deg);
  opacity:0;
  pointer-events:none;
  transition:opacity .14s steps(2), transform .14s steps(2);
}

.to-top.on{opacity:1;pointer-events:auto}

.to-top:active{transform:rotate(-2.2deg) translate(2px,2px)}

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

/* ---------- 窄屏 ---------- */
@media (max-width:840px){
  .grid{
    grid-template-columns:minmax(0,1fr);
    gap:1.1rem;
    padding-top:1rem;
  }

  .hero{margin:0 -1rem .2rem}

  .rail{
    position:static;
    order:3;
    transform:rotate(-.5deg);
  }

  .sheet{
    order:2;
    transform:none;
    padding:1rem .9rem 1.4rem;
  }

  .sheet section,
  .sheet section:first-child{scroll-margin-top:186px}

  .to-top{right:.7rem;bottom:.7rem}
}

@media (max-width:420px){
  body{font-size:16.5px}
  .brand{font-size:1.35rem}
  .hero{padding:1rem .9rem 2rem}
  .hero-copy{max-width:100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
  .hero-img{transform:none !important}
}

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