:root{
  --ink:#172623;
  --mint:#5cc6b0;
  --mint-soft:#e6f6f1;
  --sand:#d4c4a8;
  --clay:#c67b5c;
  --olive:#6b7b3c;
  --line:rgba(23,38,35,.15);
  --card:#fffdf8;
  --shadow:0 20px 44px -28px rgba(23,38,35,.55);
  --r:28px;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:'Plus Jakarta Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.72;
  color:var(--ink);
  background:
    radial-gradient(120% 70% at 88% -12%,#e9f6f1 0%,rgba(233,246,241,0) 58%),
    radial-gradient(90% 55% at -6% 0%,#f8ead8 0%,rgba(248,234,216,0) 62%),
    linear-gradient(180deg,#f8f0e5 0%,#f1e5d5 55%,#ebdfce 100%);
  background-attachment:fixed;
  overflow-wrap:break-word;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:80;
  pointer-events:none;
  opacity:.5;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

img{display:block;max-width:100%;height:auto}
a{color:inherit}
p{margin:0}

.sr{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* ---------- 顶栏 ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px clamp(14px,3vw,30px);
  background:rgba(248,241,232,.84);
  backdrop-filter:blur(14px) saturate(1.15);
  border-bottom:1px solid var(--line);
}

.corner{flex:0 0 auto}

.mark{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
  color:#0a2620;
  background:linear-gradient(150deg,#7fd8c5,var(--mint) 55%,#9fe0d1);
  box-shadow:0 10px 20px -14px rgba(23,38,35,.95);
  transition:transform .25s ease-out, box-shadow .25s ease-out;
}
.mark:hover{transform:translateY(-2px) rotate(-3deg)}
.mark img{width:100%;height:100%;object-fit:cover}
.mark-t{font-weight:700;font-size:17px;line-height:1}

.jump{flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:thin}
.jump ol{
  display:flex;
  gap:6px;
  margin:0;
  padding:2px 0;
  list-style:none;
}
.jump a{
  display:inline-block;
  padding:11px 15px;
  border-radius:999px;
  border:1px solid rgba(23,38,35,.1);
  background:rgba(255,253,248,.78);
  font-size:16px;
  font-weight:500;
  line-height:1.2;
  white-space:nowrap;
  text-decoration:none;
  transition:background .2s ease-out, border-color .2s ease-out;
}
.jump a:hover{border-color:rgba(92,198,176,.75);background:var(--mint-soft)}

.seek,.sub{
  display:flex;
  align-items:center;
  gap:4px;
  padding:3px 3px 3px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--card);
}
.seek{flex:0 0 auto;width:184px}
.seek input,.sub input{
  flex:1 1 auto;
  min-width:0;
  padding:8px 0;
  border:0;
  background:none;
  font:inherit;
  font-size:16px;
  color:inherit;
}
.seek input:focus,.sub input:focus{outline:none}
.seek button,.sub button{
  flex:0 0 auto;
  padding:9px 15px;
  border:0;
  border-radius:999px;
  background:var(--mint);
  color:#08241f;
  font:inherit;
  font-size:16px;
  font-weight:700;
  line-height:1.35;
  cursor:pointer;
  transition:background .2s ease-out;
}
.seek button:hover,.sub button:hover{background:#41b39c}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  min-height:45vh;
  display:flex;
  align-items:center;
  padding:clamp(28px,4vw,56px) clamp(16px,3vw,30px) clamp(24px,3.5vw,46px);
}

.ghost{
  position:absolute;
  left:-.05em;
  top:.02em;
  z-index:0;
  font-size:clamp(58px,15vw,168px);
  font-weight:700;
  line-height:1;
  letter-spacing:-.05em;
  color:rgba(198,123,92,.22);
  white-space:nowrap;
  user-select:none;
  pointer-events:none;
}

.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:clamp(16px,4vw,44px);
  width:100%;
  max-width:1180px;
  margin:0 auto;
}

.hero-copy h1{
  margin:0 0 14px;
  font-size:clamp(31px,5.4vw,56px);
  line-height:1.16;
  letter-spacing:-.025em;
}

.lede{
  max-width:44ch;
  font-size:18px;
  color:rgba(23,38,35,.72);
}

.hero-art-box{flex:0 0 auto}
.hero-art{
  width:clamp(112px,19vw,208px);
  border-radius:var(--r);
  border:6px solid rgba(255,253,248,.9);
  box-shadow:var(--shadow);
  transform:rotate(1.5deg);
}

/* ---------- 主体 ---------- */
main{padding:clamp(18px,3vw,32px) 0 clamp(44px,6vw,84px)}

.wrap{
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  align-items:start;
  gap:clamp(20px,3vw,44px);
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(16px,3vw,30px);
}

.rail{
  position:sticky;
  top:84px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.toc,.who{
  padding:16px 14px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(255,253,248,.76);
  box-shadow:var(--shadow);
}
.who{background:linear-gradient(160deg,#fffdf8,#eaf6f1)}

.toc h2,.who h2{
  margin:0;
  font-size:16px;
  font-weight:700;
  letter-spacing:.14em;
  line-height:1.4;
}
.toc h2 span,.who h2 span{display:inline-flex;align-items:center;gap:8px}
.toc h2 span::before,.who h2 span::before{
  content:"";
  width:16px;
  height:2px;
  border-radius:2px;
  background:var(--mint);
}

.toc ol{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:10px 0 0;
  padding:0;
  list-style:none;
}
.toc a{
  display:block;
  padding:9px 10px;
  border-radius:14px;
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
  transition:background .2s ease-out, color .2s ease-out;
}
.toc a:hover{background:var(--mint-soft);color:#22705f}
.toc li[hidden]{display:none}

.who .host{
  margin:10px 0 12px;
  font-size:16px;
  color:rgba(23,38,35,.6);
  word-break:break-all;
}

.body{min-width:0}

div > section{
  padding:clamp(26px,3.6vw,42px) 0;
  border-top:1px dashed rgba(23,38,35,.18);
  scroll-margin-top:112px;
}
div > section:first-child{border-top:0;padding-top:0}
div > section:last-child{padding-bottom:0}

div h2{
  margin:0 0 14px;
  font-size:clamp(21px,2.7vw,29px);
  line-height:1.32;
  letter-spacing:-.015em;
}
div h3{
  margin:26px 0 10px;
  font-size:clamp(18px,2vw,21px);
  line-height:1.4;
}
div h2 > span,
div h3 > span{
  background:linear-gradient(transparent 66%,rgba(92,198,176,.42) 0);
  padding-bottom:2px;
}

div p{margin:0 0 16px}
div ul,div ol{margin:0 0 16px;padding-left:1.25em}
div li{margin:6px 0}
div li::marker{color:var(--clay)}
div a{
  color:#22705f;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
div strong{font-weight:700}
div hr{border:0;border-top:1px dashed var(--line);margin:26px 0}
div figure{margin:22px 0}
div img{border-radius:22px;box-shadow:var(--shadow)}
div figcaption{font-size:16px;color:rgba(23,38,35,.6);margin-top:8px}
div blockquote{
  margin:20px 0;
  padding:14px 20px;
  border-left:3px solid var(--mint);
  border-radius:0 20px 20px 0;
  background:rgba(255,253,248,.72);
  color:rgba(23,38,35,.84);
}
div blockquote p:last-child{margin:0}
div time{
  font-size:16px;
  color:rgba(23,38,35,.6);
  font-variant-numeric:tabular-nums;
}
div table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 16px}
div th,div td{padding:9px 12px;border-bottom:1px solid var(--line);text-align:left}
div code{
  padding:2px 6px;
  border-radius:8px;
  background:rgba(23,38,35,.07);
  font-size:.94em;
}

/* ---------- 页脚 ---------- */
footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px 20px;
  padding:22px clamp(16px,3vw,30px);
  border-top:1px solid var(--line);
  background:rgba(23,38,35,.05);
}

.fnav ol{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}
.fnav a{
  display:inline-block;
  padding:10px 11px;
  border-radius:12px;
  font-size:16px;
  line-height:1.3;
  color:rgba(23,38,35,.72);
  text-decoration:none;
  transition:background .2s ease-out, color .2s ease-out;
}
.fnav a:hover{background:rgba(92,198,176,.22);color:var(--ink)}

.fnote{font-size:16px;color:rgba(23,38,35,.58)}

/* ---------- 回到顶部 ---------- */
.totop{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:70;
  padding:11px 18px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--card);
  color:var(--ink);
  font:inherit;
  font-size:16px;
  line-height:1.35;
  box-shadow:var(--shadow);
  cursor:pointer;
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .25s ease-out, transform .25s ease-out;
}
.totop.on{opacity:1;transform:none;pointer-events:auto}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion:no-preference){
  .reveal{
    opacity:0;
    transform:translateY(16px);
    transition:opacity .6s ease-out, transform .6s ease-out;
  }
  .reveal.in{opacity:1;transform:none}
  div > section:nth-of-type(2n) .reveal{transition-delay:.05s}
}

/* ---------- 断点 ---------- */
@media (max-width:980px){
  .wrap{grid-template-columns:200px minmax(0,1fr)}
  .seek{width:152px}
}

@media (max-width:860px){
  .wrap{grid-template-columns:minmax(0,1fr);gap:18px}
  .rail{position:static;gap:12px}
  .toc{padding:12px}
  .toc ol{
    flex-direction:row;
    gap:6px;
    margin-top:8px;
    padding-bottom:6px;
    overflow-x:auto;
    scrollbar-width:thin;
  }
  .toc li{flex:0 0 auto}
  .toc a{
    padding:10px 14px;
    border:1px solid var(--line);
    border-radius:999px;
    background:rgba(255,253,248,.8);
    white-space:nowrap;
  }
  div > section{scroll-margin-top:150px}
}

@media (max-width:760px){
  .topbar{flex-wrap:wrap;row-gap:8px}
  .jump{order:3;width:100%;flex:1 0 100%}
  .seek{margin-left:auto;width:150px}
  .hero{min-height:0;padding-top:24px}
}

@media (max-width:560px){
  .hero-grid{grid-template-columns:minmax(0,1fr) 88px;gap:14px}
  .hero-art{width:88px;border-width:4px;border-radius:20px}
  .ghost{font-size:76px;top:.1em}
  .lede{font-size:17px}
  .seek{width:132px}
  .totop{right:12px;bottom:12px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .mark:hover{transform:none}
}

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