@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700&display=swap');

:root{
  --paper:#ffffff;
  --mist:#f5f5f5;
  --ink:#1f1f1f;
  --ink-70:rgba(31,31,31,.7);
  --ink-45:rgba(31,31,31,.45);
  --ink-28:rgba(31,31,31,.28);
  --ink-12:rgba(31,31,31,.12);
  --e1:0 1px 2px rgba(31,31,31,.06),0 2px 6px rgba(31,31,31,.05);
  --e2:0 2px 5px rgba(31,31,31,.06),0 9px 20px rgba(31,31,31,.08);
  --e3:0 5px 12px rgba(31,31,31,.07),0 20px 40px rgba(31,31,31,.12);
  --e4:0 10px 22px rgba(31,31,31,.09),0 36px 76px rgba(31,31,31,.17);
  --glass:rgba(255,255,255,.66);
  --rail:236px;
  --fh:'Syne',system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
  --fb:'Manrope',system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
}

*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}
body{
  margin:0;
  overflow-x:hidden;
  color:var(--ink);
  background:var(--paper);
  background-image:
    radial-gradient(1100px 640px at 88% -12%, var(--mist) 0%, rgba(245,245,245,0) 62%),
    radial-gradient(760px 520px at 12% 108%, var(--mist) 0%, rgba(245,245,245,0) 60%);
  background-attachment:fixed;
  font-family:var(--fb);
  font-size:17px;
  line-height:1.65;
  font-weight:400;
}

/* ---------- 左侧竖排栏 ---------- */
.rail{
  position:fixed;
  top:0;bottom:0;left:0;
  width:var(--rail);
  z-index:50;
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:30px 22px 24px;
  background:rgba(255,255,255,.72);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border-right:1px solid var(--ink-12);
  box-shadow:14px 0 44px rgba(31,31,31,.05);
}
.brand{
  display:block;
  font-family:var(--fh);
  font-weight:700;
  font-size:23px;
  line-height:1.14;
  letter-spacing:-.015em;
  color:var(--ink);
  text-decoration:none;
  padding:4px 0;
}
.burger{
  position:relative;
  z-index:60;
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:11px;
  min-height:44px;
  padding:10px 15px;
  border:1px solid var(--ink-12);
  border-radius:0;
  background:var(--paper);
  box-shadow:var(--e2);
  color:var(--ink);
  font-family:var(--fb);
  font-size:13px;
  font-weight:600;
  letter-spacing:.14em;
  cursor:pointer;
  transition:transform .22s ease,box-shadow .22s ease,background .22s ease;
}
.burger:hover,.burger:focus-visible{
  transform:translateY(-2px);
  box-shadow:var(--e3);
  background:var(--mist);
}
.bars{
  display:block;
  width:18px;
  height:2px;
  background:var(--ink);
  box-shadow:0 -6px 0 var(--ink),0 6px 0 var(--ink);
  transition:transform .26s ease,box-shadow .26s ease,background .2s ease;
}
.burger[aria-expanded="true"] .bars{
  background:transparent;
  box-shadow:0 0 0 transparent,0 0 0 transparent;
  transform:rotate(45deg);
}

/* ---------- 全屏遮罩菜单 ---------- */
.menu{
  position:fixed;
  inset:0;
  z-index:55;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
  padding:clamp(26px,7vw,86px);
  background:rgba(245,245,245,.86);
  -webkit-backdrop-filter:blur(22px);
  backdrop-filter:blur(22px);
  opacity:0;
  visibility:hidden;
  transform:scale(1.03);
  transition:opacity .34s ease,transform .34s ease,visibility .34s linear;
}
body.menu-open .menu{opacity:1;visibility:visible;transform:none}

.menu-h,.foot-h{
  margin:0 0 8px;
  font-family:var(--fb);
  font-size:11px;
  font-weight:600;
  line-height:1;
  letter-spacing:.26em;
  color:var(--ink-45);
}
.menu-h span,.foot-h span{
  display:inline-block;
  padding-bottom:6px;
  border-bottom:2px solid var(--ink);
}
.menu-list,.foot-list{list-style:none;margin:0;padding:0}
.menu-list{display:flex;flex-direction:column;gap:2px}
.menu-list a{
  display:flex;
  align-items:center;
  min-height:48px;
  padding:9px 16px;
  border-left:2px solid transparent;
  color:var(--ink);
  text-decoration:none;
  font-family:var(--fh);
  font-weight:600;
  font-size:clamp(20px,3.2vw,30px);
  line-height:1.2;
  letter-spacing:-.015em;
  transition:transform .2s ease,background .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.menu-list a:hover,.menu-list a:focus-visible{
  background:var(--paper);
  border-left-color:var(--ink);
  box-shadow:var(--e3);
  transform:translateX(6px);
}
.rail-contact{
  margin:14px 0 0;
  display:flex;
  flex-direction:column;
  gap:3px;
  font-size:12px;
  color:var(--ink-45);
}
.rail-contact span{letter-spacing:.26em;font-size:10px}
.rail-contact b{font-weight:600;font-size:14px;color:var(--ink);word-break:break-all}

/* ---------- 正文 ---------- */
main{
  margin-left:var(--rail);
  max-width:1180px;
  padding:clamp(26px,4vw,58px) clamp(18px,4vw,64px) 76px;
}

.hero{
  position:relative;
  z-index:2;
  min-height:45vh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:26px;
  padding-bottom:clamp(18px,3vw,32px);
  border-bottom:1px solid var(--ink-12);
  text-align:right;
}
.hero h1{
  margin:0;
  font-family:var(--fh);
  font-weight:700;
  font-size:clamp(34px,6vw,66px);
  line-height:1.02;
  letter-spacing:-.035em;
}
.hero-desc{
  margin:16px 0 0 auto;
  max-width:56ch;
  font-size:clamp(15px,1.4vw,18px);
  line-height:1.6;
  color:var(--ink-70);
}
.hero-fig{
  margin:0;
  width:100%;
  max-width:940px;
  margin-left:auto;
  display:flex;
  gap:14px;
  will-change:transform;
}
.hero-fig:empty{display:none}
.hero-fig img{
  display:block;
  flex:1 1 0;
  min-width:0;
  height:clamp(120px,21vw,228px);
  object-fit:cover;
  background:var(--mist);
  border:1px solid var(--ink-12);
  box-shadow:var(--e3);
  position:relative;
}
.hero-layer-1{transform:translateY(0);z-index:3}
.hero-layer-2{transform:translateY(16px);z-index:2}
.hero-layer-3{transform:translateY(32px);z-index:1}

main > section:not(.hero){
  position:relative;
  z-index:1;
  margin:clamp(26px,4vw,46px) 0;
  padding:clamp(20px,3.2vw,40px);
  background:var(--glass);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border:1px solid var(--ink-12);
  box-shadow:var(--e2);
  scroll-margin-top:96px;
}
main > section:not(.hero)::before{
  content:"";
  position:absolute;
  inset:10px -10px -10px 10px;
  z-index:-1;
  background:var(--paper);
  border:1px solid var(--ink-12);
  box-shadow:var(--e1);
}
main > section:not(.hero):nth-of-type(even){
  margin-left:clamp(0px,3vw,42px);
  box-shadow:var(--e3);
}

main section h2{
  margin:0 0 .55em;
  font-family:var(--fh);
  font-weight:700;
  font-size:clamp(23px,2.9vw,34px);
  line-height:1.16;
  letter-spacing:-.025em;
}
main section h3{
  margin:1.5em 0 .45em;
  font-family:var(--fh);
  font-weight:600;
  font-size:clamp(18px,2.1vw,22px);
  line-height:1.3;
  letter-spacing:-.012em;
}
main section h2 span,main section h3 span{display:inline}
main section p{margin:0 0 1em;max-width:70ch}
main section p:last-child{margin-bottom:0}
main section ul,main section ol{padding-left:1.25em;max-width:70ch}
main section li{margin:.32em 0}
main section a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
main section a:hover{background:var(--mist);box-shadow:var(--e1)}
main section img{
  display:block;
  max-width:100%;
  height:auto;
  margin:1.1em 0;
  border:1px solid var(--ink-12);
  box-shadow:var(--e2);
}
main section blockquote{
  margin:1.2em 0;
  padding:4px 0 4px 18px;
  border-left:3px solid var(--ink);
  color:var(--ink-70);
}
main section figure{margin:1.2em 0}

/* ---------- 页脚 ---------- */
.foot{
  margin-left:var(--rail);
  margin-top:44px;
  padding:26px clamp(18px,4vw,64px);
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px clamp(16px,3vw,40px);
  background:var(--mist);
  border-top:1px solid var(--ink-12);
  box-shadow:inset 0 14px 30px rgba(255,255,255,.85);
}
.foot-logo{
  font-family:var(--fh);
  font-weight:700;
  font-size:17px;
  color:var(--ink);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  min-height:40px;
}
.foot-nav{flex:1 1 320px;min-width:0}
.foot-list{display:flex;flex-wrap:wrap;gap:0 18px}
.foot-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:14px;
  color:var(--ink-70);
  text-decoration:none;
  transition:color .2s ease,transform .2s ease;
}
.foot-list a:hover,.foot-list a:focus-visible{color:var(--ink);transform:translateY(-1px)}
.foot-legal{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
  font-size:13px;
  color:var(--ink-45);
}
.to-top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--ink);
  font-size:13px;
  text-decoration:none;
  border-bottom:1px solid var(--ink-28);
}
.to-top:hover{border-bottom-color:var(--ink)}

/* ---------- 滚动揭示 ---------- */
.js main > section:not(.hero){
  opacity:0;
  transform:translateY(22px);
  transition:opacity .55s ease,transform .55s ease,box-shadow .3s ease;
}
.js main > section.in{opacity:1;transform:none}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .rail{
    width:auto;
    right:0;
    bottom:auto;
    height:64px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0 16px;
    border-right:0;
    border-bottom:1px solid var(--ink-12);
    box-shadow:0 10px 26px rgba(31,31,31,.07);
  }
  .brand{font-size:17px;padding:0;max-width:56vw}
  .burger{align-self:center;min-width:44px;padding:10px 12px}
  .menu{justify-content:flex-start;padding:88px 20px 40px}
  .menu-list a{font-size:clamp(19px,5.4vw,26px)}
  main,.foot{margin-left:0}
  main{padding:92px 18px 60px}
  .hero{min-height:0;text-align:right}
  .hero h1{font-size:clamp(30px,8.6vw,44px)}
  main > section:not(.hero){margin:24px 0;scroll-margin-top:80px}
  main > section:not(.hero):nth-of-type(even){margin-left:0}
  main > section:not(.hero)::before{inset:8px -8px -8px 8px}
  .foot{padding:22px 18px}
  .foot-legal{align-items:flex-start;flex-direction:row;gap:16px;width:100%;justify-content:space-between}
  .hero-fig img{height:112px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .js main > section:not(.hero){opacity:1;transform:none}
  .hero-fig{transform:none !important}
}

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