@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root{
  --ink:#1f1f1f;
  --paper:#ffffff;
  --mist:#f5f5f5;
  --dim:#787878;
  --line:#e6e6e6;
  --e1:0 1px 2px rgba(0,0,0,.14);
  --e2:0 4px 10px rgba(0,0,0,.14);
  --e3:0 12px 28px rgba(0,0,0,.16);
  --e4:0 26px 56px rgba(0,0,0,.20);
  --r:4px;
  --head-h:64px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--mist);
  color:var(--ink);
  font-family:'Public Sans',system-ui,-apple-system,'Segoe UI','Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.65;
  letter-spacing:.002em;
}
h1,h2,h3,h4,.brand,.rail-cta,.foot-btn,.foot-h,.foot-h2{
  font-family:'Lexend Mega','Public Sans',system-ui,'Noto Sans SC',sans-serif;
  line-height:1.24;
  letter-spacing:-.022em;
  font-weight:800;
  margin:0;
}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
section[id]{scroll-margin-top:96px}

/* ---------- 侧栏 ---------- */
.shell{
  display:grid;
  grid-template-columns:292px minmax(0,1fr);
  align-items:start;
}
.rail{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:26px 22px 24px;
  background:var(--paper);
  box-shadow:9px 0 26px rgba(0,0,0,.07);
  z-index:3;
  overflow-y:auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  padding:8px 0 12px;
  font-size:20px;
  letter-spacing:-.03em;
  min-height:44px;
}
.brand-mark{width:28px;height:28px;border-radius:var(--r);object-fit:cover;box-shadow:var(--e2)}
.kicker{
  display:block;
  font-size:16px;
  line-height:1.5;
  letter-spacing:.16em;
  color:var(--dim);
  margin:0;
}
.rail-h{
  font-size:17px;
  letter-spacing:-.02em;
  margin:0 0 4px;
}
.rail-nav{flex:0 0 auto}
.rail-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.rail-nav a{
  display:block;
  padding:11px 13px;
  font-size:17px;
  line-height:1.4;
  text-decoration:none;
  color:var(--ink);
  background:var(--mist);
  border-radius:var(--r);
  box-shadow:var(--e1);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease;
}
.rail-cta{
  margin-top:auto;
  display:block;
  text-align:center;
  padding:14px 12px;
  min-height:48px;
  font-size:17px;
  text-decoration:none;
  color:var(--paper);
  background:var(--ink);
  border-radius:var(--r);
  box-shadow:5px 5px 0 rgba(31,31,31,.22);
  transition:transform .18s ease,box-shadow .18s ease;
}
@media (hover:hover){
  .rail-nav a:hover{background:var(--paper);box-shadow:var(--e3);transform:translateX(5px)}
  .rail-nav a:hover::after{content:"";display:block}
  .rail-cta:hover{transform:translate(-2px,-2px);box-shadow:8px 8px 0 rgba(31,31,31,.26)}
}

/* ---------- 舞台 ---------- */
.stage{
  position:relative;
  z-index:1;
  padding:26px clamp(16px,3.4vw,52px) 0;
  max-width:1080px;
  min-width:0;
}

.hero{
  position:relative;
  min-height:45vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:16px;
  padding:34px 0 42px;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(var(--ink) 1px,transparent 1px);
  background-size:20px 20px;
  opacity:.12;
  z-index:0;
  -webkit-mask-image:radial-gradient(ellipse at center,#000 38%,transparent 78%);
  mask-image:radial-gradient(ellipse at center,#000 38%,transparent 78%);
}
.hero-in{position:relative;z-index:2;max-width:820px}
.hero-h1{
  font-size:clamp(29px,4.6vw,50px);
  letter-spacing:-.035em;
  line-height:1.16;
}
.hero-lede{
  margin:14px auto 0;
  max-width:46ch;
  font-size:18px;
  line-height:1.65;
  color:#3b3b3b;
}
.hero-art{
  position:relative;
  width:96px;
  height:96px;
  margin-top:4px;
  z-index:1;
}
.hero-art span{
  position:absolute;
  inset:0;
  border-radius:var(--r);
  box-shadow:var(--e2);
}
.hero-art span:nth-child(1){background:var(--ink);transform:translate(-15px,-11px) rotate(-8deg);z-index:1}
.hero-art span:nth-child(2){background:var(--paper);transform:rotate(3deg);z-index:2}
.hero-art span:nth-child(3){background:#dcdcdc;transform:translate(15px,12px) rotate(10deg);z-index:3}
.hero-img{
  width:96px;
  height:96px;
  object-fit:cover;
  border-radius:var(--r);
  box-shadow:var(--e3);
  position:relative;
  z-index:2;
}

/* ---------- 正文 ---------- */
.body{position:relative;z-index:1;display:block}
.body > section{
  position:relative;
  background:var(--paper);
  border-radius:var(--r);
  padding:clamp(22px,3.6vw,42px);
  margin:0 0 26px;
  box-shadow:var(--e2),var(--e4);
  transition:transform .22s ease,box-shadow .22s ease;
}
.body > section:nth-child(2n){margin-left:clamp(0px,2.6vw,40px);z-index:2}
.body > section:nth-child(2n+1){margin-right:clamp(0px,2.6vw,40px)}
@media (hover:hover){
  .body > section:hover{transform:translate(-3px,-4px);box-shadow:var(--e3),var(--e4)}
}
.body h2{
  font-size:clamp(21px,2.6vw,29px);
  margin:0 0 14px;
}
.body h3{
  font-size:clamp(18px,2vw,22px);
  margin:26px 0 10px;
}
.body small{
  display:block;
  font-size:16px;
  line-height:1.5;
  letter-spacing:.14em;
  color:var(--dim);
  margin:0 0 6px;
}
.body small + h2,.body small + h3{margin-top:0}
.body p{margin:0 0 1.05em;max-width:66ch}
.body ul,.body ol{margin:0 0 1.1em;padding-left:1.3em;max-width:64ch}
.body li{margin:0 0 .45em}
.body a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.body a:hover{background:var(--ink);color:var(--paper);text-decoration:none}
.body blockquote{
  margin:0 0 1.2em;
  padding:16px 20px;
  background:var(--mist);
  border-radius:var(--r);
  box-shadow:inset 4px 0 0 var(--ink);
}
.body blockquote p:last-child{margin-bottom:0}
.body img{border-radius:var(--r);box-shadow:var(--e2);margin:0 0 1.2em}
.body figure{margin:0 0 1.2em}
.body hr{border:0;height:1px;background:var(--line);margin:26px 0}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:2;
  margin-top:52px;
  display:grid;
  grid-template-columns:1.55fr 1fr 1fr;
  background:var(--ink);
  color:var(--paper);
  box-shadow:0 -16px 44px rgba(0,0,0,.18);
}
.foot section{padding:40px clamp(18px,2.8vw,38px)}
.foot .kicker{color:#a8a8a8}
.foot-h{font-size:clamp(24px,3.4vw,38px);color:var(--paper);margin:2px 0 10px}
.foot-h2{font-size:18px;color:var(--paper);margin:2px 0 14px}
.foot-p{margin:0 0 20px;color:#d6d6d6;max-width:34ch}
.foot-btn{
  display:inline-block;
  padding:14px 22px;
  min-height:48px;
  font-size:17px;
  text-decoration:none;
  color:var(--ink);
  background:var(--paper);
  border-radius:var(--r);
  box-shadow:5px 5px 0 rgba(255,255,255,.24);
  transition:transform .18s ease,box-shadow .18s ease;
}
.foot-list{list-style:none;margin:0;padding:0}
.foot-list a{
  display:inline-block;
  padding:10px 0;
  min-height:40px;
  color:#e4e4e4;
  text-decoration:none;
  transition:color .18s ease,transform .18s ease;
}
.foot-bar{display:flex;align-items:flex-end}
.foot-copy{margin:0;color:#b4b4b4;font-size:16px}
@media (hover:hover){
  .foot-btn:hover{transform:translate(-2px,-2px);box-shadow:8px 8px 0 rgba(255,255,255,.28)}
  .foot-list a:hover{color:#fff;transform:translateX(4px)}
}

/* ---------- 入场 ---------- */
.js .stage article > section,
.js .body > section,
.js .foot section{
  opacity:0;
  transform:translateY(22px);
}
.js .stage article > section.in,
.js .body > section.in,
.js .foot section.in{
  opacity:1;
  transform:none;
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.3,1);
}
@media (hover:hover){
  .js .body > section.in:hover{transform:translate(-3px,-4px)}
}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  :root{--head-h:62px}
  .shell{grid-template-columns:minmax(0,1fr)}
  .rail{
    height:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    overflow:visible;
    box-shadow:0 7px 22px rgba(0,0,0,.13);
  }
  .rail .kicker,.rail .rail-h{display:none}
  .brand{padding:6px 0;font-size:17px;flex:0 0 auto;min-height:44px}
  .rail-nav{flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}
  .rail-nav::-webkit-scrollbar{display:none}
  .rail-nav ul{flex-direction:row;gap:6px}
  .rail-nav a{padding:10px 12px;white-space:nowrap;min-height:42px;display:flex;align-items:center}
  .rail-cta{margin:0;flex:0 0 auto;padding:11px 15px}
  .stage{padding:14px 14px 0}
  .hero{min-height:44vh;padding:24px 0 30px}
  .body > section:nth-child(n){margin-left:0;margin-right:0}
  .foot{grid-template-columns:1fr;margin-top:36px}
  .foot-bar{padding-top:0}
  .body p,.body ul,.body ol{max-width:none}
}
@media (max-width:420px){
  .brand-txt{font-size:16px}
  .hero-h1{font-size:clamp(26px,7.6vw,34px)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .body > section,.js .foot section{opacity:1;transform:none}
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
}
</style>

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