:root{
  --mint:#b4fde1;
  --sky:#add8e6;
  --ink:#172620;
  --paper:#ffffff;
  --tint:#eefdf8;
  --line:3px solid var(--ink);
  --clay:inset -3px -3px 9px rgba(23,38,32,.16),inset 3px 3px 10px rgba(255,255,255,.9),7px 7px 0 rgba(23,38,32,.16);
  --ease:cubic-bezier(.34,1.56,.64,1);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden}
body{
  margin:0 auto;
  max-width:100%;
  font-family:"Source Serif 4",Georgia,"Songti SC","Noto Serif SC",serif;
  font-size:17px;line-height:1.78;color:var(--ink);
  background:
    radial-gradient(920px 620px at 88% -6%,#ddfbef 0%,rgba(221,251,239,0) 62%),
    radial-gradient(760px 520px at -8% 104%,#e0f2fb 0%,rgba(224,242,251,0) 58%),
    #f8fffc;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  overflow-x:clip;
}
h1,h2,h3,h4{font-family:"Playfair Display",Georgia,"Songti SC",serif;line-height:1.16;letter-spacing:-.012em;margin:0}
p{margin:0 0 1rem}
a{color:inherit}
img{display:block;max-width:100%;height:auto}
figure,pre,table,blockquote{max-width:100%}

/* ---- 左侧固定竖排栏 ---- */
.rail{
  position:fixed;top:0;bottom:0;left:0;width:272px;max-width:100vw;z-index:30;
  display:flex;flex-direction:column;gap:1.4rem;
  padding:1.5rem 1rem 1.5rem 1.25rem;
  background:linear-gradient(168deg,var(--mint) 0%,#d3f6f0 48%,var(--sky) 100%);
  border-right:4px solid var(--ink);
  box-shadow:inset -4px 0 14px rgba(255,255,255,.75),10px 0 0 rgba(23,38,32,.05);
  overflow-y:auto;overscroll-behavior:contain;
}
.brand{
  display:flex;align-items:center;gap:.7rem;min-height:48px;min-width:0;
  text-decoration:none;padding:.35rem .4rem;border-radius:16px;
  transition:background .2s ease-out;
}
.brand:hover,.brand:focus-visible{background:rgba(255,255,255,.75)}
.brand-i{
  width:46px;height:46px;flex:none;border-radius:15px;border:var(--line);
  object-fit:cover;background:#fff;box-shadow:inset -2px -2px 6px rgba(23,38,32,.16);
}
.brand-i--txt{
  display:flex;align-items:center;justify-content:center;
  font-family:"Playfair Display",serif;font-weight:900;font-size:1.35rem;
  background:#fff;
}
.brand-name{
  font-family:"Playfair Display",serif;font-weight:900;font-size:1.05rem;
  letter-spacing:.02em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.railnav{min-width:0}
.railnav ol{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.railnav a{
  display:flex;align-items:center;gap:.65rem;
  min-height:44px;padding:.62rem .7rem;
  border:3px solid transparent;border-radius:16px;
  text-decoration:none;font-size:.95rem;line-height:1.35;
  transition:background .18s ease-out,border-color .18s ease-out,box-shadow .18s ease-out,transform .18s var(--ease);
}
.railnav a:hover,.railnav a:focus-visible{
  background:#fff;border-color:var(--ink);
  box-shadow:inset -2px -2px 7px rgba(23,38,32,.12),4px 4px 0 rgba(23,38,32,.2);
  transform:translate(-1px,-1px);
}
.dot{
  width:11px;height:11px;flex:none;border-radius:4px;background:var(--ink);
  box-shadow:inset -1px -1px 2px rgba(255,255,255,.5);
}
.railnav li:nth-child(3n+2) .dot{background:#1f6b52;border-radius:50%}
.railnav li:nth-child(3n+3) .dot{background:#2a5f78;border-radius:2px;transform:rotate(45deg)}

/* ---- 主区 ---- */
main{margin-left:272px;min-width:0;max-width:100%}

.hero{
  position:relative;min-height:100vh;
  display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);
  align-items:center;gap:1.5rem;
  padding:5.5rem 2.6rem 4rem;
  background:linear-gradient(155deg,#e8fff6 0%,#f6fffb 46%,#e5f5fd 100%);
  overflow:hidden;
}
.hero-copy{max-width:19ch;min-width:0;animation:rise .85s var(--ease) both}
.hero-title{
  font-size:clamp(2.3rem,5.6vw,4.4rem);font-weight:900;font-style:italic;
  letter-spacing:-.03em;margin:0;overflow-wrap:break-word;
  text-shadow:3px 3px 0 rgba(173,216,230,.85);
}
@keyframes rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
.hero-art{position:relative;min-height:62vh;min-width:0}
.shot{
  position:absolute;width:63%;max-width:100%;border:4px solid var(--ink);border-radius:26px;
  object-fit:cover;background:#fff;overflow:hidden;
  box-shadow:10px 12px 0 rgba(23,38,32,.16),inset -4px -4px 12px rgba(23,38,32,.14),inset 4px 4px 12px #fff;
  animation:pop .9s var(--ease) both;
}
.shot.a{top:0;left:0;aspect-ratio:3/4;transform:rotate(-5deg);z-index:1}
.shot.b{bottom:0;right:0;aspect-ratio:4/5;transform:rotate(4deg);animation-delay:.14s}
.shot.is-empty{background:linear-gradient(150deg,var(--mint),var(--sky))}
.shot.is-empty::after{
  content:"";position:absolute;inset:auto 14% 12% 14%;height:12px;border-radius:8px;
  background:rgba(23,38,32,.18);
}
@keyframes pop{from{opacity:0;transform:translateY(30px) rotate(0)}}
.shot.a{animation-name:popA}
.shot.b{animation-name:popB}
@keyframes popA{from{opacity:0;transform:translateY(30px) rotate(-1deg)}to{opacity:1;transform:rotate(-5deg)}}
@keyframes popB{from{opacity:0;transform:translateY(30px) rotate(0)}to{opacity:1;transform:rotate(4deg)}}

.band{
  height:64px;margin:-2.6rem 0 0;
  border-top:4px solid var(--ink);border-bottom:4px solid var(--ink);
  background:repeating-linear-gradient(135deg,var(--sky) 0 20px,var(--mint) 20px 40px);
  clip-path:polygon(0 26%,100% 0,100% 74%,0 100%);
}

.stage{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,17.5rem);
  align-items:start;gap:2rem;
  padding:3rem 2.6rem 4.5rem;
  min-width:0;max-width:100%;
}
.prose{min-width:0;max-width:100%;overflow-wrap:break-word}

/* ---- 正文块 ---- */
.prose > article{
  background:var(--paper);border:var(--line);border-radius:10px;
  padding:1.55rem 1.5rem 1.2rem;margin:0 0 1.4rem;
  scroll-margin-top:104px;min-width:0;max-width:100%;
}
.prose article{scroll-margin-top:104px}
.prose h2{font-size:clamp(1.45rem,2.5vw,2rem);margin:.1rem 0 .85rem;overflow-wrap:break-word}
.prose h2 > span{display:inline-block;padding-bottom:.18rem;border-bottom:4px solid var(--sky)}
.prose h3{font-size:clamp(1.15rem,1.9vw,1.4rem);margin:1.3rem 0 .6rem;overflow-wrap:break-word}
.prose h3 > span{display:inline-block;padding-bottom:.14rem;border-bottom:3px solid var(--mint)}
.prose h4{font-size:1.02rem;margin:1.1rem 0 .5rem;font-family:"Source Serif 4",serif;font-weight:600;letter-spacing:0}
.prose p{max-width:66ch;overflow-wrap:break-word}
.prose ul,.prose ol{padding-left:1.25rem;margin:0 0 1rem}
.prose li{margin:.28rem 0;overflow-wrap:break-word}
.prose a{
  color:#0c3f30;text-decoration:underline;text-decoration-thickness:2px;
  text-underline-offset:3px;text-decoration-color:var(--sky);
  transition:text-decoration-color .2s ease-out;
}
.prose a:hover{text-decoration-color:var(--ink)}
.prose img{border:var(--line);border-radius:10px;margin:.8rem 0;height:auto;max-width:100%}
.prose figure{margin:1rem 0;max-width:100%}
.prose figcaption{font-size:.9rem;opacity:.76;margin-top:.4rem}
.prose blockquote{
  margin:1rem 0;padding:.9rem 1.1rem;background:var(--tint);
  border-left:7px solid var(--ink);border-radius:0 12px 12px 0;max-width:100%;
}
.prose blockquote p:last-child{margin:0}
.prose table{
  display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;
  border:var(--line);border-radius:10px;margin:1rem 0;
}
.prose th,.prose td{border-bottom:2px solid rgba(23,38,32,.18);padding:.55rem .7rem;text-align:left;font-size:.95rem}
.prose th{background:var(--tint);font-weight:600}
.prose tr:last-child td{border-bottom:0}
.prose pre{
  display:block;width:100%;max-width:100%;overflow-x:auto;background:#0f1d18;color:#dff8ee;
  padding:.9rem 1rem;border-radius:10px;font-size:.9rem;line-height:1.6;
}
.prose code{font-family:"Source Serif 4",monospace;font-size:.94em;overflow-wrap:break-word}
.prose hr{border:0;border-top:3px dashed rgba(23,38,32,.25);margin:1.4rem 0}

/* ---- 右侧侧栏 ---- */
.side{position:sticky;top:1.6rem;display:grid;gap:1rem;min-width:0;max-width:100%}
.side-card{
  border:var(--line);border-radius:20px;padding:1rem 1rem 1.1rem;
  background:linear-gradient(160deg,#effef8,#e2f4fd);
  box-shadow:var(--clay);min-width:0;
}
.side-title{
  font-size:1rem;font-weight:700;letter-spacing:.06em;margin:0 0 .7rem;
}
.side-title > span{display:inline-block;border-bottom:3px solid var(--ink);padding-bottom:.12rem}
.side-list{list-style:none;margin:0;padding:0;display:grid;gap:.15rem;counter-reset:s}
.side-list li{counter-increment:s;min-width:0}
.side-list a{
  display:flex;align-items:center;gap:.5rem;min-height:40px;
  padding:.42rem .55rem;border-radius:12px;text-decoration:none;font-size:.92rem;line-height:1.35;
  transition:background .18s ease-out,box-shadow .18s ease-out;
}
.side-list a::before{
  content:counter(s,decimal-leading-zero);
  font-size:.72rem;opacity:.55;letter-spacing:.06em;flex:none;
}
.side-list a:hover,.side-list a:focus-visible{background:#fff;box-shadow:inset -2px -2px 6px rgba(23,38,32,.12)}
.side-top{margin:0}
.side-top a{
  display:inline-flex;align-items:center;min-height:40px;padding:.3rem .85rem;
  border:3px solid var(--ink);border-radius:999px;background:#fff;
  text-decoration:none;font-size:.9rem;
  transition:transform .2s var(--ease),box-shadow .2s ease-out;
}
.side-top a:hover{transform:translateY(-2px);box-shadow:0 4px 0 rgba(23,38,32,.22)}

/* ---- 页脚 ---- */
.foot{
  margin-left:272px;max-width:100%;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.8rem 1.4rem;
  padding:1.5rem 2.6rem;border-top:4px solid var(--ink);
  background:linear-gradient(100deg,var(--mint),#d7f7f3 60%,var(--sky));
}
.foot-mark{
  font-family:"Playfair Display",serif;font-weight:900;font-size:1rem;
  text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:.2rem .1rem;
  letter-spacing:.02em;
}
.footnav{min-width:0;max-width:100%}
.footnav ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.15rem .95rem}
.footnav a{
  display:inline-flex;align-items:center;min-height:40px;padding:.25rem .1rem;
  text-decoration:none;font-size:.9rem;border-bottom:2px solid transparent;
  transition:border-color .18s ease-out;
}
.footnav a:hover,.footnav a:focus-visible{border-bottom-color:var(--ink)}
.foot-copy p{margin:0;font-size:.85rem;opacity:.8}

:focus-visible{outline:3px solid var(--ink);outline-offset:2px;border-radius:6px}

/* ---- 进场动效 ---- */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.reveal.is-in{opacity:1;transform:none}

/* ---- 平板 ---- */
@media (max-width:1180px){
  .rail{width:238px}
  main,.foot{margin-left:238px}
  .stage{grid-template-columns:minmax(0,1fr) minmax(0,15.5rem);padding-inline:1.8rem}
  .hero{padding-inline:1.8rem}
  .hero-title{font-size:clamp(2.1rem,4.6vw,3.4rem)}
}

/* ---- 移动端 ---- */
@media (max-width:860px){
  body{font-size:16.5px}
  .rail{
    position:sticky;top:0;left:auto;bottom:auto;width:auto;max-width:none;z-index:40;
    flex-direction:row;align-items:center;gap:.6rem;
    padding:.55rem .8rem;border-right:0;border-bottom:4px solid var(--ink);
    overflow:visible;
  }
  .brand{flex:none;min-height:44px;padding:.2rem}
  .brand-i{width:38px;height:38px;border-radius:12px}
  .brand-name{font-size:.95rem;max-width:9.5rem}
  .railnav{flex:1 1 0;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}
  .railnav::-webkit-scrollbar{display:none}
  .railnav ol{display:flex;gap:.3rem;padding-bottom:.1rem;width:max-content}
  .railnav a{white-space:nowrap;min-height:44px;padding:.5rem .65rem;font-size:.9rem;background:rgba(255,255,255,.55)}
  main,.foot{margin-left:0}
  .hero{
    grid-template-columns:minmax(0,1fr);min-height:88svh;gap:1.2rem;
    padding:2.4rem 1.15rem 2rem;
  }
  .hero-copy{max-width:none}
  .hero-title{font-size:clamp(2rem,8.4vw,2.9rem)}
  .hero-art{min-height:42vh}
  .shot{width:56%}
  .band{height:48px;margin-top:-1.6rem}
  .stage{grid-template-columns:minmax(0,1fr);gap:1.4rem;padding:2rem 1.15rem 3rem}
  .side{position:static;order:-1;grid-template-columns:minmax(0,1fr)}
  .prose > article{padding:1.15rem 1.05rem .9rem;scroll-margin-top:96px}
  .prose article{scroll-margin-top:96px}
  .prose p{max-width:100%}
  .foot{flex-direction:column;align-items:flex-start;padding:1.3rem 1.15rem;gap:.4rem}
  .footnav ol{gap:.1rem .8rem}
  .foot-copy{order:3}
}

@media (max-width:420px){
  .shot{width:62%}
  .hero-title{font-size:clamp(1.85rem,8vw,2.5rem)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .hero-copy,.shot{animation:none}
  .shot.a{transform:rotate(-5deg)}
  .shot.b{transform:rotate(4deg)}
}
</style>

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