:root{
  --ink:#1f1f1f;
  --paper:#ffffff;
  --mist:#f5f5f5;
  --line:rgba(31,31,31,.1);
  --sh1:0 1px 2px rgba(31,31,31,.08),0 3px 8px rgba(31,31,31,.06);
  --sh2:0 4px 12px rgba(31,31,31,.1),0 12px 26px rgba(31,31,31,.07);
  --sh3:0 10px 24px rgba(31,31,31,.13),0 26px 52px rgba(31,31,31,.09);
  --sh4:0 18px 42px rgba(31,31,31,.17),0 44px 84px rgba(31,31,31,.11);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  padding-top:68px;
  font-family:"Didact Gothic",system-ui,-apple-system,"PingFang SC","Noto Sans SC",sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background:var(--paper);
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
p{margin:0 0 1em}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* 顶栏 / 导航 */
.topbar{
  position:fixed;
  z-index:60;
  top:0;left:0;right:0;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  background:rgba(255,255,255,.86);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
  box-shadow:0 8px 22px rgba(31,31,31,.08);
}
.mark{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;height:42px;
  border:1px solid rgba(31,31,31,.22);
  border-radius:10px;
  background:var(--paper);
  box-shadow:var(--sh1);
  text-decoration:none;
}
.mark-img{width:26px;height:26px;object-fit:contain}
.mark-dia{
  width:12px;height:12px;
  border:1px solid var(--ink);
  transform:rotate(45deg);
  background:var(--mist);
}
.pillbar{flex:1 1 auto;min-width:0;overflow:hidden}
.pillbar p{
  display:flex;
  gap:8px;
  margin:0;
  overflow-x:auto;
  padding:2px 2px 4px;
  scrollbar-width:none;
}
.pillbar p::-webkit-scrollbar{display:none}
.pill{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(31,31,31,.1);
  background:var(--mist);
  color:var(--ink);
  font-size:16px;
  white-space:nowrap;
  text-decoration:none;
  box-shadow:0 2px 6px rgba(31,31,31,.07);
  transition:background .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.pill:hover{background:var(--ink);color:#fff;box-shadow:var(--sh2);transform:translateY(-1px)}
.contact{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 15px;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font-size:16px;
  text-decoration:none;
  box-shadow:var(--sh2);
}
.contact:hover{box-shadow:var(--sh3)}

/* 主区 */
.stage{display:block}
.doc{
  display:flex;
  flex-direction:column;
  gap:26px;
  max-width:1180px;
  margin:0 auto;
  padding:0 16px 56px;
}
.hero{order:1}
.rail{order:2}
.prose{order:3}

/* 主视觉 */
.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:70vh;
  padding:48px 0 40px;
  overflow:hidden;
  text-align:right;
}
.hero-band{
  position:absolute;
  z-index:1;
  left:-10%;right:-26%;
  bottom:10%;
  height:40%;
  border-radius:8px;
  background:linear-gradient(100deg,#f5f5f5 0%,#ececec 52%,#e2e2e2 100%);
  transform:rotate(-5.5deg);
  box-shadow:var(--sh4);
  will-change:transform;
}
.hero-title{
  position:relative;
  z-index:3;
  margin:0;
  max-width:16ch;
  font-family:"Poiret One","Didact Gothic",system-ui,sans-serif;
  font-weight:400;
  font-size:clamp(2.1rem,8.6vw,4.7rem);
  line-height:1.1;
  letter-spacing:.02em;
}
.hero-title::after{
  content:"";
  display:block;
  width:96px;
  height:1px;
  margin:22px 0 0 auto;
  background:var(--ink);
  opacity:.35;
}

/* 侧栏 */
.rail{
  position:relative;
  z-index:2;
  align-self:start;
  padding:16px;
  border:1px solid rgba(31,31,31,.09);
  border-radius:10px;
  background:var(--mist);
  box-shadow:var(--sh2);
}
.rail-cap{
  margin:0 0 10px;
  padding-left:8px;
  font-family:"Poiret One",system-ui,sans-serif;
  font-size:15px;
  letter-spacing:.34em;
  color:#6a6a6a;
}
.rail-list{list-style:none;margin:0;padding:0}
.rail-list li+li{margin-top:2px}
.rail-list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:4px 8px;
  border-radius:8px;
  font-size:16px;
  text-decoration:none;
  transition:background .2s ease,box-shadow .2s ease;
}
.rail-list a:hover{background:var(--paper);box-shadow:var(--sh1)}
.num{
  min-width:22px;
  font-family:"Poiret One",system-ui,sans-serif;
  font-size:13px;
  font-weight:400;
  color:#8d8d8d;
}

/* 正文 */
.prose{
  display:flex;
  flex-direction:column;
  gap:24px;
  min-width:0;
  max-width:78ch;
}
.prose section{
  position:relative;
  padding:26px 20px;
  border:1px solid rgba(31,31,31,.09);
  border-radius:10px;
  background:var(--paper);
  box-shadow:var(--sh1),0 20px 44px rgba(31,31,31,.06);
  scroll-margin-top:92px;
}
.prose section > :last-child{margin-bottom:0}
.prose small{
  display:block;
  margin:0 0 6px;
  font-size:15px;
  letter-spacing:.32em;
  color:#7d7d7d;
}
.prose h2{
  margin:0 0 14px;
  font-family:"Poiret One","Didact Gothic",system-ui,sans-serif;
  font-weight:400;
  font-size:clamp(1.45rem,3.6vw,2rem);
  line-height:1.25;
  letter-spacing:.03em;
}
.prose h3{
  margin:26px 0 10px;
  font-family:"Poiret One","Didact Gothic",system-ui,sans-serif;
  font-weight:400;
  font-size:clamp(1.15rem,2.6vw,1.4rem);
  line-height:1.3;
  letter-spacing:.02em;
}
.prose p{color:#2b2b2b}
.prose a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.prose a:hover{background:var(--mist)}
.prose ul,.prose ol{padding-left:1.3em;margin:0 0 1em}
.prose li{margin:.35em 0}
.prose blockquote{
  margin:18px 0;
  padding:14px 18px;
  border-left:3px solid var(--ink);
  border-radius:0 10px 10px 0;
  background:var(--mist);
  box-shadow:var(--sh1);
}
.prose blockquote p:last-child{margin-bottom:0}
.prose img{border-radius:10px;box-shadow:var(--sh2);margin:18px 0}

/* 页脚 */
.foot{
  position:relative;
  margin-top:44px;
  padding:64px 16px 26px;
  background:var(--ink);
  color:var(--mist);
  overflow:hidden;
}
.foot::before{
  content:"";
  position:absolute;
  z-index:0;
  left:-6%;right:-6%;
  top:-8px;
  height:60px;
  border-radius:8px;
  background:var(--ink);
  transform:rotate(-2deg);
  box-shadow:0 -14px 34px rgba(31,31,31,.18);
}
.foot-in{position:relative;z-index:1;max-width:1180px;margin:0 auto}
.cta{
  padding:26px 22px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:10px;
  background:rgba(255,255,255,.05);
  box-shadow:0 22px 48px rgba(0,0,0,.35);
}
.kicker{
  display:block;
  margin:0 0 8px;
  font-size:15px;
  letter-spacing:.34em;
  color:#b6b6b6;
}
.cta-title{
  margin:0;
  font-family:"Poiret One","Didact Gothic",system-ui,sans-serif;
  font-weight:400;
  font-size:clamp(1.8rem,6.2vw,3.2rem);
  line-height:1.15;
  letter-spacing:.02em;
  color:#fff;
}
.cta-go{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  margin-top:18px;
  padding:0 22px;
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-size:16px;
  text-decoration:none;
  box-shadow:var(--sh3);
  transition:transform .2s ease,box-shadow .2s ease;
}
.cta-go:hover{transform:translateY(-2px);box-shadow:var(--sh4)}
.foot-cols{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  margin-top:38px;
  padding-top:26px;
  border-top:1px solid rgba(255,255,255,.16);
}
.foot-cols dl{margin:0}
.foot-cols dt{
  margin-bottom:8px;
  font-size:15px;
  letter-spacing:.3em;
  color:#b0b0b0;
}
.foot-cols dd{margin:0}
.foot-cols dd a,.foot-cols dd.plain{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:#f2f2f2;
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.foot-cols dd a:hover{border-bottom-color:rgba(255,255,255,.6)}
.foot-base{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px 18px;
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.16);
  font-size:15px;
  color:#c4c4c4;
}
.foot-base p{margin:0}
.foot-links{display:flex;flex-wrap:wrap;gap:16px}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#f2f2f2;
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.foot-links a:hover{border-bottom-color:rgba(255,255,255,.6)}

/* 回到顶部 */
.to-top{
  position:fixed;
  z-index:70;
  right:14px;
  bottom:14px;
  min-height:44px;
  padding:0 15px;
  border-radius:999px;
  border:1px solid rgba(31,31,31,.14);
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  color:var(--ink);
  font:inherit;
  font-size:15px;
  box-shadow:var(--sh2);
  cursor:pointer;
}
.to-top:hover{box-shadow:var(--sh3)}

/* 动效 */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.reveal.on{opacity:1;transform:none}

/* 断点 */
@media (min-width:640px){
  .foot-cols{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .cta{padding:34px 30px}
  .prose section{padding:30px 26px}
}
@media (min-width:900px){
  body{padding-top:0;padding-left:228px}
  .topbar{
    right:auto;
    bottom:0;
    width:228px;
    flex-direction:column;
    align-items:stretch;
    padding:26px 20px 22px;
    border-right:1px solid var(--line);
    border-bottom:0;
    box-shadow:10px 0 30px rgba(31,31,31,.07);
  }
  .mark{align-self:flex-start}
  .pillbar{flex:1 1 auto;margin-top:26px;overflow:visible}
  .pillbar p{flex-direction:column;overflow:visible;gap:4px;padding:0}
  .pill{width:100%;justify-content:flex-start;background:transparent;border-color:transparent;box-shadow:none}
  .pill:hover{transform:none}
  .contact{justify-content:center;margin-top:18px}
  .doc{
    display:grid;
    grid-template-columns:196px minmax(0,1fr);
    grid-template-areas:"rail hero" "rail prose";
    column-gap:44px;
    row-gap:34px;
    align-items:start;
    padding:0 40px 84px;
  }
  .hero{grid-area:hero;padding:64px 0 48px}
  .rail{grid-area:rail;position:sticky;top:32px}
  .prose{grid-area:prose}
  .prose section{scroll-margin-top:32px}
  .prose section:nth-child(odd){margin-right:30px}
  .prose section:nth-child(even){margin-left:30px}
  .to-top{right:22px;bottom:22px}
  .foot{padding:76px 40px 28px;margin-top:52px}
}
@media (min-width:1200px){
  .doc{grid-template-columns:212px minmax(0,1fr);column-gap:56px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .pill,.cta-go,.to-top{transition:none}
}

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