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

:root{
  --paper:#fafaf8;
  --gray:#4a4a4a;
  --ink:#1a1a1a;
  --rule:#deded8;
  --tape:#eeece5;
}

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

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

body{
  margin:0;
  overflow-x:clip;
  background-color:var(--paper);
  background-image:repeating-linear-gradient(to bottom,transparent 0 31px,rgba(26,26,26,.045) 31px 32px);
  color:var(--ink);
  font-family:'DM Sans',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.68;
  font-weight:400;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3{line-height:1.1;letter-spacing:-.022em;margin:0;font-weight:700}
ul,ol{margin:0}

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

.grain{
  position:fixed;
  inset:0;
  z-index:60;
  pointer-events:none;
  opacity:.42;
  mix-blend-mode:multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

/* 顶部细条 */
.strip{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:6px 14px;
  min-height:30px;
  font-size:12.5px;
  letter-spacing:.34em;
  color:var(--gray);
  border-bottom:1px solid var(--rule);
}
.strip span{opacity:.9}

/* 头部两行 */
.top{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--paper);
  border-bottom:1.5px solid var(--ink);
}

.brandrow{
  display:flex;
  align-items:center;
  padding:9px 16px 4px;
}

.logo{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1.5px solid var(--ink);
  border-radius:11px;
  background:var(--tape);
  transform:rotate(-3deg);
  text-decoration:none;
}
.logo .mark{width:36px;height:36px;object-fit:cover;border-radius:8px}
.mark-txt{font-weight:700;font-size:19px;line-height:1}

.menurow{padding:0 12px 9px}

.pillnav{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:none;
}
.pillnav::-webkit-scrollbar{display:none}

.pill{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 15px;
  border:1.5px solid var(--ink);
  border-radius:999px;
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
  background:transparent;
  transition:background .14s steps(2,end),color .14s steps(2,end);
}
.pill:nth-child(2n){transform:rotate(-.7deg)}
.pill:nth-child(3n){transform:rotate(.6deg)}
.pill:hover,.pill:focus-visible{background:var(--ink);color:var(--paper)}

/* 首屏拼贴 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:20px;
  align-items:center;
  min-height:calc(100svh - 108px);
  max-width:1120px;
  margin:0 auto;
  padding:24px 16px 34px;
  overflow:clip;
}

.collage{
  position:relative;
  min-height:300px;
  height:100%;
}

.shot{
  position:absolute;
  margin:0;
  padding:8px 8px 10px;
  background:#fff;
  border:1px solid #e3e2dc;
  box-shadow:3px 4px 0 rgba(26,26,26,.13);
}
.shot .shotimg{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.06);
}
.shot::before{
  content:"";
  position:absolute;
  top:-9px;
  left:34%;
  width:54px;
  height:16px;
  background:rgba(26,26,26,.15);
  transform:rotate(-2.4deg);
}
.shot-a{
  width:63%;
  left:1%;
  top:4%;
  transform:rotate(-3.4deg);
  z-index:2;
}
.shot-a .shotimg{aspect-ratio:3/4}
.shot-b{
  width:53%;
  right:1%;
  bottom:2%;
  transform:rotate(2.7deg);
}
.shot-b .shotimg{aspect-ratio:4/3}

.badge{
  position:absolute;
  left:5%;
  bottom:20%;
  z-index:3;
  max-width:78%;
  padding:6px 12px;
  background:var(--ink);
  color:var(--paper);
  border-radius:5px;
  font-size:12.5px;
  line-height:1.4;
  letter-spacing:.06em;
  transform:rotate(-4deg);
}

.hero-copy{text-align:right;transform:rotate(-.6deg)}
.hero-copy h1{
  font-size:clamp(2.25rem,6.2vw,4.5rem);
  letter-spacing:-.045em;
  line-height:1.03;
  text-wrap:balance;
}
.hero-copy h1::after{
  content:"";
  display:block;
  width:56%;
  margin:14px 0 0 auto;
  border-bottom:3px solid var(--ink);
}

/* 内容区 */
.shell{
  display:grid;
  grid-template-columns:200px minmax(0,1fr);
  gap:clamp(18px,4vw,50px);
  align-items:start;
  max-width:1120px;
  margin:0 auto;
  padding:0 16px 72px;
}

.side{
  position:sticky;
  top:126px;
  border-top:2px solid var(--ink);
  padding-top:9px;
}
.side small{
  display:block;
  font-size:11.5px;
  letter-spacing:.3em;
  color:var(--gray);
}
.side h2{font-size:20px;margin:2px 0 8px}

.side-list{list-style:none;margin:0;padding:0}
.side-list a{
  display:block;
  padding:9px 0;
  min-height:40px;
  font-size:15.5px;
  text-decoration:none;
  border-bottom:1px dashed var(--rule);
}
.side-list a:hover{text-decoration:underline}

.doc{min-width:0}

.doc article{
  border-top:2px solid var(--ink);
  padding:28px 0 26px;
  scroll-margin-top:126px;
}
.doc article:nth-child(even).is-in{transform:rotate(-.18deg)}

.doc.reveal-on article{opacity:0;transform:translateY(12px)}
.doc.reveal-on article.is-in{
  opacity:1;
  transform:none;
  transition:opacity .17s steps(2,end),transform .17s steps(2,end);
}
.doc.reveal-on article:nth-child(even).is-in{transform:rotate(-.18deg)}

.doc small{
  display:block;
  margin-bottom:4px;
  font-size:12px;
  letter-spacing:.3em;
  color:var(--gray);
}
.doc h2{font-size:clamp(1.5rem,3.3vw,2rem);margin:0 0 13px}
.doc h3{font-size:1.15rem;margin:20px 0 8px}

.doc p{max-width:64ch;margin:0 0 15px}
.doc ul,.doc ol{padding-left:1.25em;max-width:64ch;margin:0 0 15px}
.doc li{margin:.32em 0}
.doc a{text-decoration:underline;text-underline-offset:3px}
.doc blockquote{
  margin:18px 0;
  padding:10px 16px;
  border-left:3px solid var(--ink);
  background:#fff;
  transform:rotate(-.2deg);
}
.doc blockquote p:last-child{margin-bottom:0}
.doc strong{font-weight:700}

/* 页脚 */
.foot{
  margin-top:16px;
  padding:34px 16px 22px;
  background:var(--ink);
  color:var(--paper);
}
.foot-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr;
  gap:24px;
  max-width:1120px;
  margin:0 auto;
}
.foot-addr{
  font-style:normal;
  font-size:16px;
  font-weight:500;
  line-height:1.6;
}
.foot-addr span{
  display:block;
  margin-top:5px;
  font-size:13px;
  font-weight:400;
  color:#b8b7b1;
  letter-spacing:.05em;
}
.foot dl{margin:0}
.foot dt{
  font-size:12px;
  letter-spacing:.28em;
  color:#b0afa9;
}
.foot dd{margin:0}
.foot-nav a,.foot-links a{
  display:inline-block;
  min-width:66px;
  min-height:40px;
  padding:9px 0;
  font-size:16px;
  color:var(--paper);
  text-decoration:none;
  border-bottom:1px dashed #3b3b3b;
}
.foot-nav a:hover,.foot-links a:hover{text-decoration:underline}
.foot-links{list-style:none;margin:0;padding:0}

.foot-brand{
  max-width:1120px;
  margin:30px auto 12px;
  font-size:clamp(2.6rem,15vw,7.5rem);
  line-height:.86;
  letter-spacing:-.05em;
  font-weight:700;
}
.foot-copy{
  max-width:1120px;
  margin:0 auto;
  padding-top:11px;
  border-top:1px solid #3b3b3b;
  font-size:13.5px;
  color:#a9a8a2;
}

/* 窄屏 */
@media (max-width:820px){
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding:16px 16px 26px;
    gap:14px;
  }
  .collage{min-height:206px;order:1}
  .shot-a{width:56%}
  .shot-b{width:46%}
  .hero-copy{order:2;text-align:right}
  .hero-copy h1::after{margin-top:10px}

  .shell{grid-template-columns:minmax(0,1fr);gap:14px;padding-bottom:56px}
  .side{position:static;border-top:2px solid var(--ink)}
  .side-list{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:4px}
  .side-list a{
    border:1px solid var(--rule);
    border-radius:999px;
    padding:8px 12px;
    font-size:15px;
  }
  .doc article{scroll-margin-top:118px}

  .foot-grid{grid-template-columns:1fr 1fr;gap:16px}
  .foot-addr{grid-column:1 / -1}
}

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

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