:root{
  --paper:#fdfbf7;
  --paper-2:#f5f5f5;
  --ink:#1a1a1a;
  --mute:#5f5f5f;
  --line:#e2ded6;
  --card:#fffdfa;
  --radius:28px;
  --shadow:10px 10px 26px rgba(26,26,26,.07), -8px -8px 22px rgba(255,255,255,.92);
}

*,*::before,*::after{box-sizing:border-box;transition:none}

html{
  scroll-behavior:smooth;
  scroll-padding-top:136px;
  -webkit-text-size-adjust:100%;
}

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

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.05;
  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.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a{color:inherit}

h1,h2,h3{line-height:1.24;margin:0 0 .55em;letter-spacing:-.015em}
h1{font-size:clamp(2rem,5.2vw,3.3rem);letter-spacing:-.035em}
h2{font-size:clamp(1.45rem,2.6vw,1.95rem)}
h3{font-size:1.2rem}

hr{
  border:0;
  border-top:2px solid var(--ink);
  width:64px;
  margin:.35rem 0 1.5rem;
}

/* 顶部：品牌行 + 粘性胶囊锚点条 */
.top{
  position:sticky;
  top:0;
  z-index:10;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}

.bar{
  max-width:1120px;
  margin:0 auto;
  padding:10px clamp(16px,4vw,40px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:-.02em;
  text-decoration:none;
}

.brand .mark{
  width:12px;
  height:12px;
  border-radius:3px;
  background:var(--ink);
}

.contact{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid var(--ink);
  font-size:1rem;
  text-decoration:none;
  background:var(--paper);
}

.contact:hover{background:var(--ink);color:var(--paper)}

.rail{
  max-width:1120px;
  margin:0 auto;
  padding:0 clamp(16px,4vw,40px) 10px;
}

.rail p{
  display:flex;
  gap:8px;
  margin:0;
  overflow-x:auto;
  scrollbar-width:none;
  padding-bottom:2px;
}

.rail p::-webkit-scrollbar{display:none}

.rail a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper-2);
  font-size:1rem;
  white-space:nowrap;
  text-decoration:none;
}

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

/* 首屏 */
.hero{
  max-width:1120px;
  margin:0 auto;
  padding:clamp(24px,5vw,56px) clamp(16px,4vw,40px);
  min-height:70vh;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:clamp(24px,4vw,48px);
  align-items:center;
  background-image:radial-gradient(var(--line) 1px,transparent 1px);
  background-size:22px 22px;
}

.hero-copy h1{margin-bottom:.35em}

.lede{
  max-width:34ch;
  margin:0 0 1.5em;
  font-size:1.05rem;
  color:var(--mute);
}

.hero-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0;
}

.hero-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 20px;
  border-radius:999px;
  border:1px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  font-size:1rem;
  text-decoration:none;
}

.hero-links a + a{
  background:var(--paper);
  color:var(--ink);
}

.hero-links a:hover{background:var(--paper);color:var(--ink)}
.hero-links a + a:hover{background:var(--ink);color:var(--paper)}

.hero-art{
  margin:0;
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio:4/3;
  background:var(--paper-2);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.hero-art img{width:100%;height:100%;object-fit:cover}

.hero-art.is-blank{display:grid;place-items:center}

.hero-art.is-blank p{
  margin:0;
  padding:1rem;
  text-align:center;
  font-size:clamp(1.2rem,3vw,1.8rem);
  font-weight:700;
  letter-spacing:.02em;
  color:var(--mute);
}

/* 正文：左侧目录 + 右侧纸卡 */
.sheet{
  max-width:1120px;
  margin:0 auto;
  padding:clamp(20px,4vw,44px) clamp(16px,4vw,40px) clamp(40px,6vw,80px);
  display:grid;
  grid-template-columns:200px minmax(0,1fr);
  gap:0 clamp(24px,4vw,48px);
  align-items:start;
}

.side{
  grid-column:1;
  grid-row:1 / span 400;
  align-self:start;
  position:sticky;
  top:136px;
}

.side h2{
  font-size:1rem;
  letter-spacing:.12em;
  margin-bottom:.3em;
}

.side hr{
  width:40px;
  border-top-width:1px;
  margin-bottom:1rem;
}

.side p{
  display:flex;
  flex-direction:column;
  margin:0;
}

.side a{
  display:flex;
  align-items:center;
  min-height:40px;
  border-bottom:1px solid var(--line);
  font-size:1rem;
  text-decoration:none;
}

.side a:hover{color:var(--mute)}

.sheet > article{
  grid-column:2;
  margin:0 0 24px;
  padding:clamp(22px,3vw,36px);
  background:var(--card);
  border:1px solid #eeeae2;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  scroll-margin-top:150px;
}

.sheet > article:last-child{margin-bottom:0}

.sheet > article h2:first-child,
.sheet > article h3:first-child{margin-top:0}

.sheet > article p{margin:0 0 1em}
.sheet > article p:last-child{margin-bottom:0}

.sheet > article ul,
.sheet > article ol{padding-left:1.25em;margin:0 0 1em}

.sheet > article li{margin-bottom:.4em}

.sheet > article a{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}

.sheet > article blockquote{
  margin:0 0 1em;
  padding:4px 0 4px 18px;
  border-left:3px solid var(--ink);
  color:var(--mute);
}

/* 页脚 */
footer{
  max-width:1120px;
  margin:0 auto;
  padding:clamp(32px,5vw,60px) clamp(16px,4vw,40px) 36px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px 32px;
  align-items:start;
}

.foot-brand{
  grid-column:1;
  margin:0;
  font-size:clamp(2rem,7vw,4.2rem);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.045em;
}

.foot-links{
  grid-column:2;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper-2);
  font-size:1rem;
  text-decoration:none;
}

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

footer small{
  grid-column:1/-1;
  margin-top:20px;
  font-size:1rem;
  color:var(--mute);
}

/* 进入态 */
.reveal{opacity:0}

.reveal.in{animation:rise .55s cubic-bezier(.2,.7,.3,1) both}

@keyframes rise{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:none}
}

@media (max-width:900px){
  html{scroll-padding-top:124px}

  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding-top:26px;
  }

  .hero-art{order:2;aspect-ratio:16/10}

  .sheet{grid-template-columns:1fr}

  .side{
    grid-column:1;
    grid-row:auto;
    position:static;
    margin-bottom:24px;
  }

  .side p{
    flex-direction:row;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    scrollbar-width:none;
    padding-bottom:2px;
  }

  .side p::-webkit-scrollbar{display:none}

  .side a{
    flex:0 0 auto;
    padding:0 12px;
    border:1px solid var(--line);
    border-radius:999px;
    background:var(--paper-2);
    white-space:nowrap;
  }

  .sheet > article{
    grid-column:1;
    scroll-margin-top:130px;
  }

  footer{grid-template-columns:1fr}

  .foot-links{
    grid-column:1;
    justify-content:flex-start;
  }
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1}
  .reveal.in{animation:none}
}

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