@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,700&display=swap');

:root{
  --mint:#b4fde1;
  --sky:#add8e6;
  --ink:#172620;
  --paper:#f7fffb;
  --deep:#0d3a2c;
  --mute:#3c5a4f;
  --line:rgba(23,38,32,.2);
  --serif:'Playfair Display','Songti SC','Noto Serif SC',Georgia,serif;
  --sans:'Inter',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

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

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

body{
  margin:0;
  padding-bottom:104px;
  font-family:var(--sans);
  font-size:16px;
  line-height:1.65;
  color:var(--ink);
  background:
    radial-gradient(1100px 520px at 105% -8%, var(--sky), rgba(173,216,230,0) 62%),
    radial-gradient(860px 460px at -12% 18%, var(--mint), rgba(180,253,225,0) 58%),
    var(--paper);
  background-attachment:fixed;
  overflow-x:hidden;
}

a{color:var(--deep)}

:focus-visible{
  outline:3px solid var(--deep);
  outline-offset:3px;
}

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

.skip{
  position:absolute;
  left:14px;
  top:-64px;
  z-index:99;
  padding:10px 16px;
  background:var(--ink);
  color:#fff;
  font-weight:700;
  text-decoration:none;
  border-radius:0 0 14px 14px;
  transition:top .2s ease-out;
}
.skip:focus{top:0}

/* ---------- 底部固定工具条 ---------- */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border-top:4px solid var(--ink);
  background:linear-gradient(180deg,rgba(247,255,251,.9),#e6fff6 70%);
  backdrop-filter:blur(8px);
}

.mark{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:44px;height:44px;
  border:3px solid var(--ink);
  border-radius:14px;
  background:var(--mint);
  color:var(--ink);
  font-weight:800;
  font-size:19px;
  line-height:1;
  text-decoration:none;
  box-shadow:inset -2px -2px 6px rgba(23,38,32,.2), 3px 4px 0 rgba(23,38,32,.85);
  transition:transform .2s cubic-bezier(.34,1.56,.64,1);
}
.mark:hover{transform:translateY(-3px)}
.mark:active{transform:translateY(1px)}
.mark img{width:26px;height:26px;object-fit:contain;display:block}

.jump{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
}
.jump::-webkit-scrollbar{display:none}

.jump p{
  display:flex;
  gap:6px;
  margin:0;
  padding:0;
}

.jump a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 12px;
  font-size:16px;
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
  border:3px solid transparent;
  border-radius:12px;
  transition:background .2s ease-out, border-color .2s ease-out;
}
.jump a:hover{background:var(--mint);border-color:var(--ink)}
.jump a.is-on{background:var(--sky);border-color:var(--ink)}

.find{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:6px;
}

.find input{
  width:104px;
  min-height:44px;
  padding:6px 10px;
  font:inherit;
  font-size:16px;
  color:var(--ink);
  background:#fff;
  border:3px solid var(--ink);
  border-radius:12px;
}
.find input::placeholder{color:var(--mute)}

.find button{
  min-height:44px;
  padding:6px 14px;
  font:inherit;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  background:var(--sky);
  border:3px solid var(--ink);
  border-radius:12px;
  cursor:pointer;
  box-shadow:inset -2px -2px 6px rgba(23,38,32,.18), 2px 3px 0 rgba(23,38,32,.85);
  transition:transform .2s ease-out, box-shadow .2s ease-out;
}
.find button:active{transform:translateY(2px);box-shadow:inset 2px 2px 6px rgba(23,38,32,.2)}

/* ---------- 版面 ---------- */
.page{
  max-width:1120px;
  margin:0 auto;
  padding:26px 20px 44px;
}

.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:clamp(20px,4vw,48px);
  align-items:center;
  min-height:70vh;
  padding:clamp(12px,3vh,34px) 0 clamp(26px,5vh,54px);
}

.hero::before{
  content:"";
  position:absolute;
  z-index:0;
  left:-12vw;right:-42vw;bottom:6%;
  height:clamp(66px,13vh,140px);
  background:var(--mint);
  border-top:4px solid var(--ink);
  border-bottom:4px solid var(--ink);
  transform:rotate(-4deg);
  opacity:.85;
}

.hero-copy,.hero-art{position:relative;z-index:1}

.kicker{
  display:inline-block;
  margin:0 0 16px;
  padding:5px 15px;
  font-size:16px;
  font-weight:800;
  letter-spacing:.08em;
  background:var(--sky);
  border:3px solid var(--ink);
  border-radius:999px;
  box-shadow:inset -2px -2px 6px rgba(23,38,32,.16), 0 4px 0 rgba(23,38,32,.85);
}

h1{
  margin:0 0 18px;
  font-family:var(--serif);
  font-style:italic;
  font-weight:700;
  font-size:clamp(34px,6.2vw,68px);
  line-height:1.05;
  letter-spacing:-.015em;
}

.lede{
  margin:0;
  max-width:36ch;
  font-size:17px;
  font-weight:500;
  color:var(--mute);
}

.hero-art{
  position:relative;
  margin:0;
  display:block;
  min-height:clamp(220px,42vh,380px);
  border:4px solid var(--ink);
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(150deg,var(--sky),var(--mint) 70%);
  box-shadow:inset -6px -8px 18px rgba(23,38,32,.18), inset 6px 8px 16px rgba(255,255,255,.7), 10px 12px 0 rgba(23,38,32,.9);
}
.hero-art img,.hero-art .shot{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 264px;
  gap:clamp(24px,4vw,48px);
  align-items:start;
  padding-top:clamp(14px,3vh,30px);
  border-top:3px solid var(--ink);
}

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

.prose > article{
  padding:34px 0;
  border-bottom:2px dashed var(--line);
  scroll-margin-top:20px;
}
.prose > article:last-child{border-bottom:0;padding-bottom:8px}

.prose h2{
  margin:0 0 10px;
  font-family:var(--serif);
  font-style:italic;
  font-weight:700;
  font-size:clamp(23px,3.1vw,32px);
  line-height:1.22;
}
.prose h3{
  margin:26px 0 8px;
  font-size:19px;
  line-height:1.4;
}
.prose h4{margin:20px 0 6px;font-size:17px}

hr{
  border:0;
  width:64px;
  height:6px;
  margin:0 0 18px;
  background:var(--ink);
  border-radius:99px;
}

.prose p{margin:0 0 14px}
.prose ul,.prose ol{margin:0 0 16px;padding-left:1.3em}
.prose li{margin:0 0 8px}
.prose li::marker{color:var(--deep);font-weight:700}
.prose strong{font-weight:800}

.prose a{
  color:var(--deep);
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:var(--mint);
  text-decoration-thickness:4px;
  text-underline-offset:3px;
}
.prose a:hover{text-decoration-color:var(--ink)}

.prose img{
  max-width:100%;
  height:auto;
  display:block;
  border:4px solid var(--ink);
  border-radius:20px;
  box-shadow:6px 7px 0 rgba(23,38,32,.85);
}

.prose figure{margin:20px 0}
.prose figcaption{
  margin-top:8px;
  font-size:16px;
  color:var(--mute);
}

.prose blockquote{
  margin:20px 0;
  padding:14px 18px;
  background:#fff;
  border:3px solid var(--ink);
  border-left-width:10px;
  border-left-color:var(--mint);
}
.prose blockquote p:last-child{margin:0}

.prose table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 18px;
  font-size:16px;
}
.prose th,.prose td{
  border:2px solid var(--line);
  padding:9px 10px;
  text-align:left;
  vertical-align:top;
}
.prose th{background:rgba(180,253,225,.45);font-weight:800}

.prose code,.prose pre{
  font-family:'JetBrains Mono',ui-monospace,Menlo,Consolas,monospace;
  font-size:15px;
}
.prose code{background:rgba(173,216,230,.45);padding:1px 5px}
.prose pre{
  overflow-x:auto;
  padding:14px;
  background:#fff;
  border:3px solid var(--ink);
}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:20px;
  padding:16px;
  background:#fff;
  border:3px solid var(--ink);
  border-radius:0;
}
.rail h2{
  margin:0 0 10px;
  font-family:var(--serif);
  font-style:italic;
  font-size:20px;
  line-height:1.3;
}
.rail hr{width:44px;height:5px;margin-bottom:14px}
.rail ul{list-style:none;margin:0 0 12px;padding:0}
.rail li + li{border-top:2px dashed var(--line)}
.rail a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 0;
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
  transition:transform .2s ease-out, color .2s ease-out;
}
.rail a:hover{color:var(--deep);transform:translateX(4px)}
.rail .back{margin:0}
.rail .back a{
  justify-content:center;
  min-height:44px;
  font-weight:700;
  background:var(--mint);
  border:3px solid var(--ink);
  border-radius:12px;
  box-shadow:inset -2px -2px 6px rgba(23,38,32,.16), 2px 3px 0 rgba(23,38,32,.85);
}
.rail .back a:hover{transform:translateY(-2px)}

/* ---------- 页脚 ---------- */
.foot{
  max-width:1120px;
  margin:0 auto;
  padding:24px 20px 30px;
  border-top:3px solid var(--ink);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px 24px;
  text-align:center;
  font-size:16px;
}
.foot address{font-style:normal;font-weight:800}
.foot ul{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:4px 18px;
  margin:0;padding:0;
}
.foot a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-weight:600;
  color:var(--deep);
  text-decoration:none;
  border-bottom:3px solid var(--mint);
  transition:border-color .2s ease-out;
}
.foot a:hover{border-bottom-color:var(--ink)}
.foot .copy{margin:0;color:var(--mute)}

/* ---------- 滚动显现 ---------- */
html.rv .hero-copy,
html.rv .hero-art,
html.rv .prose > article,
html.rv .rail{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease-out, transform .5s cubic-bezier(.34,1.3,.64,1);
}
html.rv .is-in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.rv .hero-copy,
  html.rv .hero-art,
  html.rv .prose > article,
  html.rv .rail{opacity:1;transform:none;transition:none}
  .mark,.jump a,.find button,.rail a,.foot a{transition:none}
}

/* ---------- 窄屏 ---------- */
@media (max-width:860px){
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding-top:8px;
  }
  .hero-art{
    min-height:clamp(180px,32vh,260px);
    order:2;
  }
  .stage{grid-template-columns:1fr;gap:28px}
  .rail{position:static;order:2}
  .prose > article{padding:28px 0}
}

@media (max-width:520px){
  .dock{gap:8px;padding:8px 10px}
  .find input{width:74px;padding:6px 8px}
  .jump a{padding:6px 10px}
  .page{padding:18px 16px 36px}
  .foot{padding:20px 16px 26px;gap:6px 16px}
  .hero::before{left:-20vw;right:-40vw;bottom:2%}
}

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