:root{
  --mint:#b4fde1;
  --blue:#add8e6;
  --ink:#172620;
  --shell:#ffffff;
  --edge:3px solid #172620;
  --soft: inset -3px -4px 0 rgba(23,38,32,.10), 0 6px 0 #172620, 0 14px 22px -12px rgba(23,38,32,.55);
  --press: inset -2px -3px 0 rgba(23,38,32,.14), 0 2px 0 #172620;
}

*,*::before,*::after{box-sizing:border-box;}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  overflow-x:hidden;
  overflow-x:clip;
}

body{
  margin:0;
  max-width:100%;
  overflow-x:hidden;
  overflow-x:clip;
  font-family:'Outfit','Rubik',-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  background:
    radial-gradient(1200px 520px at 88% -6%, rgba(173,216,230,.55), transparent 70%),
    radial-gradient(900px 460px at 6% 12%, rgba(180,253,225,.65), transparent 72%),
    linear-gradient(172deg,#eefff8 0%,#f8fffc 42%,#e6f4fb 100%);
  background-attachment:fixed;
}

img{max-width:100%;height:auto;}

/* 顶部细条 */
.slip{
  background:var(--ink);
  color:var(--mint);
  text-align:center;
  font-size:16px;
  font-weight:600;
  letter-spacing:.3em;
  text-indent:.3em;
  padding:7px 12px 8px;
  line-height:1.4;
  overflow-wrap:break-word;
}

/* 顶部导航 */
.rail{
  position:sticky;
  top:0;
  z-index:30;
  padding:10px 12px;
  border-bottom:var(--edge);
  background:linear-gradient(180deg,rgba(250,255,253,.97),rgba(240,255,249,.86));
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}

.pill-nav{max-width:1120px;margin:0 auto;min-width:0;}

.nav-list{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px;
  list-style:none;
  margin:0;
  padding:0 4px;
  min-width:0;
}

.nav-list > li:nth-child(3){margin-right:clamp(70px,15vw,190px);}
.nav-list > li:nth-child(5){margin-left:clamp(70px,15vw,190px);}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 14px;
  font-size:16px;
  font-weight:600;
  line-height:1.2;
  color:var(--ink);
  text-decoration:none;
  border:var(--edge);
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff,#e9fff6);
  box-shadow:inset -2px -3px 0 rgba(23,38,32,.10), 0 3px 0 #172620;
  transition:transform .2s cubic-bezier(.34,1.56,.64,1),box-shadow .2s ease-out,background .2s ease-out;
  white-space:nowrap;
}

.pill:hover{
  transform:translateY(-2px);
  background:linear-gradient(180deg,#ffffff,var(--mint));
  box-shadow:inset -2px -3px 0 rgba(23,38,32,.10), 0 5px 0 #172620;
}

.pill:active{
  transform:translateY(2px);
  box-shadow:var(--press);
}

.brand-cell{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:6px 15px;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--ink);
  text-decoration:none;
  border:var(--edge);
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff,var(--mint));
  box-shadow:inset -2px -3px 0 rgba(23,38,32,.10), 0 4px 0 #172620;
  white-space:nowrap;
}

.mark{width:26px;height:26px;object-fit:contain;display:block;}

/* 布局 */
main{padding:26px 0 10px;}

.wrap{
  display:grid;
  grid-template-columns:262px minmax(0,1fr);
  gap:26px;
  align-items:start;
  max-width:1120px;
  margin:0 auto;
  padding:0 20px 50px;
  min-width:0;
}

/* 左侧栏（目录） */
.side{
  position:sticky;
  top:96px;
  min-width:0;
  padding:16px;
  border:var(--edge);
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#eafff6);
  box-shadow:inset -3px -4px 0 rgba(23,38,32,.08), 0 8px 0 rgba(23,38,32,.78);
}

.side-h{
  margin:0 0 2px;
  font-size:18px;
  font-weight:800;
  letter-spacing:.12em;
}

.side .subtitle{
  margin:0 0 12px;
  font-size:16px;
  font-weight:600;
  color:#2c5a48;
  line-height:1.4;
}

.toc{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px;
  min-width:0;
}

.toc a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  font-size:16px;
  line-height:1.35;
  color:var(--ink);
  text-decoration:none;
  border:2px solid transparent;
  border-radius:12px;
  transition:background .18s ease-out,border-color .18s ease-out,transform .18s ease-out;
}

.toc a:hover{
  background:var(--blue);
  border-color:var(--ink);
  transform:translateX(3px);
}

/* 主体 */
.board{max-width:78ch;min-width:0;}

.hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:45vh;
  margin:0 0 24px;
  padding:24px 22px;
  border:var(--edge);
  border-radius:24px;
  background:linear-gradient(150deg,var(--mint),var(--blue));
  box-shadow:inset -5px -6px 0 rgba(23,38,32,.10), 0 8px 0 rgba(23,38,32,.75), 0 20px 28px -18px rgba(23,38,32,.6);
}

.ghost{
  position:absolute;
  left:-6px;
  bottom:-10px;
  font-size:clamp(54px,13vw,150px);
  font-weight:800;
  line-height:.8;
  letter-spacing:-.05em;
  color:rgba(23,38,32,.13);
  white-space:nowrap;
  pointer-events:none;
  will-change:transform;
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:60%;
  min-width:0;
}

.hero h1{
  margin:0 0 12px;
  font-size:clamp(28px,4.6vw,48px);
  font-weight:800;
  line-height:1.14;
  letter-spacing:-.025em;
  overflow-wrap:break-word;
}

.lead{
  margin:0;
  font-size:17px;
  line-height:1.6;
  max-width:44ch;
  color:#12362a;
  overflow-wrap:break-word;
}

.collage{
  position:absolute;
  right:18px;
  bottom:14px;
  width:min(42%,300px);
  height:74%;
  z-index:1;
  pointer-events:none;
}

.shot{
  position:absolute;
  width:72%;
  height:auto;
  border:var(--edge);
  border-radius:16px;
  background:#fff;
  object-fit:cover;
  box-shadow:0 8px 0 rgba(23,38,32,.4);
}

.shot-a{left:0;top:4%;transform:rotate(-7deg);}
.shot-b{right:0;bottom:0;transform:rotate(6deg);}

/* 正文 */
.prose{min-width:0;overflow-wrap:break-word;}

.prose > article{
  position:relative;
  margin:0 0 22px;
  padding:22px 22px 26px;
  border:var(--edge);
  border-bottom-width:9px;
  border-radius:10px;
  background:linear-gradient(180deg,#ffffff,#fafffd);
  box-shadow:0 12px 22px -18px rgba(23,38,32,.9);
  scroll-margin-top:140px;
  min-width:0;
}

.prose > article:nth-child(even){
  background:linear-gradient(180deg,#ffffff,#eefaff);
}

.prose h2{
  margin:0 0 10px;
  font-size:clamp(22px,3.2vw,30px);
  font-weight:800;
  line-height:1.25;
  letter-spacing:-.02em;
  overflow-wrap:break-word;
}

.prose h2::before{
  content:"";
  display:inline-block;
  width:12px;
  height:12px;
  margin-right:10px;
  vertical-align:middle;
  border:var(--edge);
  border-radius:4px;
  background:var(--mint);
}

.prose h2 + p{
  font-size:18px;
  font-weight:600;
  color:#26523f;
  line-height:1.6;
}

.prose h3{
  margin:20px 0 8px;
  font-size:20px;
  font-weight:700;
}

.prose p{margin:0 0 14px;}
.prose p:last-child{margin-bottom:0;}

.prose ul,.prose ol{padding-left:24px;margin:0 0 16px;}
.prose li{margin-bottom:8px;}

.prose a{
  color:#0b6b51;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.prose a:hover{background:var(--mint);}

.prose blockquote{
  margin:0 0 16px;
  padding:12px 16px;
  border-left:7px solid var(--blue);
  border-radius:0 14px 14px 0;
  background:#f1fbff;
}

.prose blockquote p:last-child{margin-bottom:0;}

.prose strong{font-weight:700;}

.prose img{
  height:auto;
  border:var(--edge);
  border-radius:16px;
  box-shadow:0 6px 0 rgba(23,38,32,.35);
}

.prose hr{
  height:4px;
  margin:20px 0;
  border:0;
  border-radius:999px;
  background:var(--blue);
}

/* 滚动出现 */
.prose > article.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .5s ease-out, transform .5s cubic-bezier(.34,1.56,.64,1);
}

.prose > article.reveal.in{
  opacity:1;
  transform:none;
}

/* 页脚 */
.foot{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:14px;
  margin-top:26px;
  padding:34px 22px 46px;
  border-top:var(--edge);
  border-radius:26px 26px 0 0;
  background:linear-gradient(180deg,#172620,#0e1a15);
  color:#e6fff5;
}

.foot-brand{
  margin:0;
  font-size:clamp(30px,7vw,62px);
  font-weight:800;
  line-height:1;
  letter-spacing:-.045em;
  color:var(--mint);
  overflow-wrap:break-word;
}

.foot small{
  font-size:16px;
  line-height:1.5;
  text-align:center;
  color:#c8ecdd;
}

.foot-key{
  margin:0;
  font-size:16px;
  line-height:1.5;
  text-align:right;
  color:#a4d6c5;
  overflow-wrap:break-word;
}

/* 回到顶部 */
.to-top{
  position:fixed;
  right:14px;
  bottom:16px;
  z-index:40;
  min-width:48px;
  min-height:48px;
  padding:0 13px;
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  border:var(--edge);
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff,var(--mint));
  box-shadow:0 4px 0 #172620;
  cursor:pointer;
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .22s ease-out,transform .22s ease-out;
}

.to-top.on{opacity:1;transform:none;pointer-events:auto;}
.to-top:active{transform:translateY(3px);box-shadow:var(--press);}

/* 响应式 */
@media (max-width:900px){
  .wrap{grid-template-columns:minmax(0,1fr);gap:20px;padding:0 16px 44px;}
  .side{position:static;}
  .toc{display:flex;overflow-x:auto;gap:8px;padding-bottom:4px;-webkit-overflow-scrolling:touch;}
  .toc li{flex:0 0 auto;}
  .toc a{flex:0 0 auto;border-color:rgba(23,38,32,.28);background:#fff;min-height:42px;max-width:62vw;}
  .board{max-width:none;}
  .hero{min-height:0;padding:20px 18px 22px;}
  .hero-copy{max-width:100%;}
  .collage{display:none;}
}

@media (max-width:760px){
  .nav-list{justify-content:center;gap:8px;}
  .nav-list > li:nth-child(3){margin-right:0;}
  .nav-list > li:nth-child(5){margin-left:0;}
  .brand-cell{position:static;transform:none;order:-1;flex:0 0 100%;display:flex;justify-content:center;}
  .pill{min-height:42px;padding:8px 12px;font-size:16px;}
  .foot{grid-template-columns:minmax(0,1fr);justify-items:center;gap:10px;text-align:center;padding:30px 18px 40px;}
  .foot-key{text-align:center;}
  .prose > article{padding:18px 16px 22px;scroll-margin-top:170px;}
  .prose h2 + p{font-size:17px;}
}

@media (max-width:420px){
  body{font-size:16px;}
  .slip{font-size:16px;letter-spacing:.16em;text-indent:.16em;}
  .rail{padding:8px 8px;}
  .pill{padding:8px 11px;}
  .brand{font-size:17px;padding:6px 12px;}
  .wrap{padding:0 12px 40px;}
  .prose > article{padding:16px 14px 20px;}
  .prose ul,.prose ol{padding-left:20px;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *{animation:none !important;transition:none !important;}
  .prose > article.reveal{opacity:1;transform:none;}
}

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