@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');
:root{
  --ink:#171f26;
  --ink-soft:#4a5a68;
  --blue:#c8e0f4;
  --pink:#f5e0e8;
  --card-a:#eaf3fb;
  --card-b:#f6e9ef;
  --raise:-6px -6px 16px rgba(255,255,255,.92), 7px 7px 18px rgba(23,31,38,.14);
  --raise-sm:-3px -3px 9px rgba(255,255,255,.9), 4px 4px 11px rgba(23,31,38,.13);
  --press:inset -3px -3px 9px rgba(255,255,255,.85), inset 4px 4px 11px rgba(23,31,38,.17);
  --r:16px;
  --rail:236px;
}
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  background:linear-gradient(158deg,#d5e8f8 0%,#e9eff9 42%,#f7e6ee 100%);
  background-attachment:fixed;
}
body{
  margin:0;
  font-family:"Lexend","Source Sans 3","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--ink);
  background-image:radial-gradient(rgba(23,31,38,.055) 1px,transparent 1px);
  background-size:22px 22px;
  background-attachment:fixed;
  -webkit-text-size-adjust:100%;
}
h1,h2,h3{line-height:1.3;margin:0 0 .55rem;font-weight:600}
p{margin:0 0 1rem}
a{color:var(--ink)}
img,svg{max-width:100%}
hr{
  border:0;height:5px;border-radius:5px;
  background:linear-gradient(90deg,rgba(23,31,38,.18),rgba(23,31,38,.03));
  margin:.5rem 0 1.1rem;
}
.shell{margin-left:var(--rail)}

/* 左侧固定竖排导航 */
.rail{
  position:fixed;top:0;left:0;bottom:0;width:var(--rail);
  display:flex;flex-direction:column;gap:1rem;
  padding:18px 14px;z-index:30;overflow-y:auto;
  background:linear-gradient(160deg,#dceaf6,#f7e8ef);
  box-shadow:8px 0 22px rgba(23,31,38,.12);
  -webkit-overflow-scrolling:touch;
}
.brand-corner{display:flex}
.mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:46px;height:46px;border-radius:14px;
  background:linear-gradient(145deg,var(--card-a),var(--card-b));
  box-shadow:var(--raise-sm);text-decoration:none;
  font-weight:700;font-size:18px;transition:box-shadow .15s ease,transform .15s ease;
}
.mark:hover{box-shadow:var(--raise);transform:translateY(-1px)}
.mark:active{box-shadow:var(--press);transform:scale(.96)}
.mark svg,.mark img{width:24px;height:24px;display:block;object-fit:contain;border-radius:6px}
.rail-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.rail-list a{
  display:flex;align-items:center;gap:10px;
  min-height:44px;padding:9px 13px;border-radius:14px;
  background:linear-gradient(145deg,var(--card-a),var(--card-b));
  box-shadow:var(--raise-sm);text-decoration:none;
  font-size:16px;font-weight:500;line-height:1.35;
  transition:box-shadow .15s ease,transform .15s ease;
}
.rail-list a:hover{box-shadow:var(--raise);transform:translateY(-1px)}
.rail-list a:active{box-shadow:var(--press);transform:scale(.985)}
.rail-list a[aria-current]{box-shadow:var(--press);background:linear-gradient(145deg,var(--blue),var(--pink))}
.ico{
  width:9px;height:9px;border-radius:50%;flex:0 0 auto;
  background:linear-gradient(145deg,var(--blue),var(--pink));
  box-shadow:inset -1px -1px 2px rgba(255,255,255,.95),1px 1px 3px rgba(23,31,38,.3);
}
.contact{
  margin-top:auto;padding:12px;border-radius:14px;box-shadow:var(--press);
  display:flex;flex-direction:column;gap:4px;font-size:15px;
}
.contact .host{color:var(--ink-soft);word-break:break-all;font-size:15px}
.contact-link{
  display:inline-flex;align-items:center;min-height:40px;
  font-weight:600;text-decoration:none;
  border-bottom:2px solid rgba(23,31,38,.22);
}

/* 首屏 */
.hero{
  min-height:100svh;display:grid;grid-template-columns:1.02fr .98fr;
  align-items:center;gap:clamp(1.5rem,4vw,3.5rem);
  padding:5vh 5vw;
}
.hero-copy{order:2;text-align:right;min-width:0}
.hero-copy h1{
  font-size:clamp(2rem,4.4vw,3.4rem);
  font-weight:600;letter-spacing:.01em;
  overflow-wrap:break-word;
}
.hero-rule{
  width:130px;height:9px;border-radius:9px;margin:1.1rem 0 0 auto;
  background:linear-gradient(90deg,var(--blue),var(--pink));
  box-shadow:var(--press);
}
.collage{order:1;position:relative;height:min(64vh,520px);min-height:300px}
.shot{
  margin:0;position:absolute;padding:10px;border-radius:var(--r);
  background:linear-gradient(145deg,var(--card-a),var(--card-b));
  box-shadow:var(--raise);
  transition:transform .3s ease,box-shadow .3s ease;
}
.shot-a{left:0;top:6%;width:63%;height:62%;transform:rotate(-3deg)}
.shot-b{right:0;bottom:4%;width:57%;height:54%;transform:rotate(3deg)}
.shot-a:hover{transform:rotate(-1.4deg) translateY(-5px)}
.shot-b:hover{transform:rotate(1.4deg) translateY(-5px)}
.shot-img{
  display:block;width:100%;height:100%;object-fit:cover;border-radius:12px;
  box-shadow:inset 0 0 0 1px rgba(23,31,38,.06);
}
.blank{
  background-image:radial-gradient(rgba(23,31,38,.16) 1.5px,transparent 1.5px);
  background-size:16px 16px;background-color:#eef4fa;
}

/* 正文区：aside 在左，article 在右 */
.stage{
  display:grid;grid-template-columns:var(--rail) minmax(0,1fr);
  gap:clamp(1.25rem,3vw,2.5rem);
  max-width:1240px;margin:0 auto;padding:0 5vw 4rem;
}
.side{
  position:sticky;top:24px;align-self:start;
  padding:18px;border-radius:var(--r);
  background:linear-gradient(145deg,var(--card-a),var(--card-b));
  box-shadow:var(--raise);
}
.side h2{font-size:.86rem;letter-spacing:.16em;color:var(--ink-soft);font-weight:600}
.side-list{list-style:none;margin:0 0 1rem;padding:0;display:flex;flex-direction:column;gap:4px}
.side-list a{
  display:flex;align-items:center;min-height:40px;padding:6px 9px;
  border-radius:11px;text-decoration:none;font-size:16px;line-height:1.4;
  transition:box-shadow .15s ease;
}
.side-list a:hover{box-shadow:var(--press)}
.to-top{
  display:inline-flex;align-items:center;min-height:44px;padding:0 15px;
  border-radius:12px;font-weight:600;text-decoration:none;
  box-shadow:var(--raise-sm);transition:box-shadow .15s ease,transform .15s ease;
}
.to-top:hover{transform:translateY(-1px);box-shadow:var(--raise)}
.to-top:active{box-shadow:var(--press);transform:scale(.98)}

.doc{max-width:790px;min-width:0}
.doc > section{
  padding:clamp(1.1rem,2.4vw,1.7rem);
  border-radius:var(--r);
  background:linear-gradient(145deg,var(--card-a),var(--card-b));
  box-shadow:var(--raise);
  margin-bottom:clamp(1.1rem,2.6vw,2rem);
  scroll-margin-top:98px;
}
.doc h2{font-size:clamp(1.3rem,2.4vw,1.6rem)}
.doc h3{font-size:1.12rem}
.doc ul,.doc ol{padding-left:1.3rem;margin:0 0 1rem}
.doc li{margin-bottom:.4rem}
.doc a{text-decoration:underline;text-decoration-color:rgba(23,31,38,.32);text-underline-offset:3px}
.doc a:hover{text-decoration-color:var(--ink)}
.doc blockquote{
  margin:0 0 1rem;padding:12px 16px;border-radius:12px;
  box-shadow:var(--press);font-size:17px;
}

/* 页脚 */
.site-foot{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:1.5rem 2.5rem;
  padding:2.2rem 5vw 2.6rem;
  background:linear-gradient(160deg,#e4eff9,#f8eaf1);
  box-shadow:inset 0 10px 22px -14px rgba(23,31,38,.4);
}
.site-foot section{flex:1 1 260px;min-width:min(100%,250px)}
.site-foot h2{font-size:.8rem;letter-spacing:.18em;color:var(--ink-soft);font-weight:600}
.site-foot ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 6px}
.site-foot ol a{
  display:inline-flex;align-items:center;min-height:44px;padding:0 12px;
  border-radius:11px;font-size:16px;text-decoration:none;
  transition:box-shadow .15s ease;
}
.site-foot ol a:hover{box-shadow:var(--raise-sm)}
.site-foot ol a:active{box-shadow:var(--press)}
.site-foot p{margin:0;font-size:16px}

/* 滚动显现 */
.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.js .reveal.in{opacity:1;transform:none}

@media (max-width:900px){
  .rail{
    right:0;bottom:auto;width:auto;flex-direction:row;align-items:center;
    gap:10px;padding:8px 12px;overflow:visible;
    box-shadow:0 8px 20px rgba(23,31,38,.14);
  }
  .rail-list{flex-direction:row;overflow-x:auto;gap:8px;padding-bottom:2px;scrollbar-width:none}
  .rail-list::-webkit-scrollbar{display:none}
  .rail-list li{flex:0 0 auto}
  .rail-list a{white-space:nowrap;padding:9px 12px}
  .contact{display:none}
  .shell{margin-left:0;padding-top:76px}
  .hero{
    grid-template-columns:1fr;min-height:auto;
    padding:1.4rem 5vw 2.4rem;gap:1.6rem;
  }
  .hero-copy{order:0;text-align:left}
  .hero-copy h1{font-size:clamp(1.9rem,7.5vw,2.6rem)}
  .hero-rule{margin:.9rem 0 0;width:96px;height:8px}
  .collage{order:0;height:clamp(230px,52vw,320px);min-height:0}
  .stage{grid-template-columns:1fr;padding:0 5vw 2.5rem}
  .side{position:static}
  .side-list{flex-direction:row;flex-wrap:wrap;gap:6px}
  .side-list a{min-height:40px;padding:6px 12px;box-shadow:var(--raise-sm)}
  .doc > section{scroll-margin-top:88px}
}
@media (max-width:420px){
  .collage{height:230px}
  .shot-a{width:66%;height:58%}
  .shot-b{width:58%;height:50%}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{opacity:1;transform:none;transition:none}
  .shot,.rail-list a,.to-top,.mark{transition:none}
}

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