@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;500;600;700&family=Jost:wght@300;400;500;600;700&display=swap');

:root{
  --ink:#192617;
  --ink-2:#21311d;
  --lime:#87ff71;
  --sun:#ffce5c;
  --paper:#eff7e9;
  --dim:#a9bda3;
  --line:rgba(135,255,113,.34);
  --glass:rgba(255,255,255,.07);
  --r:18px;
  --serif:'Bodoni Moda',Georgia,'Songti SC',serif;
  --sans:'Jost','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.7;
  font-weight:400;
  color:var(--paper);
  background:
    radial-gradient(900px 520px at 88% -10%,rgba(255,206,92,.18),transparent 66%),
    radial-gradient(760px 520px at 2% 24%,rgba(135,255,113,.15),transparent 62%),
    var(--ink);
  overflow-x:clip;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(239,247,233,.5) 1px,transparent 1.4px);
  background-size:22px 22px;
  opacity:.22;
  mix-blend-mode:soft-light;
}

img{max-width:100%}
a{color:var(--lime)}

.frame{
  position:relative;
  z-index:1;
  overflow-x:clip;
}

/* ---------- 角落品牌 ---------- */
.corner{
  position:fixed;
  top:14px;
  left:14px;
  z-index:60;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  text-decoration:none;
  background:var(--lime);
  color:var(--ink);
  border:2px solid var(--ink);
  border-radius:14px;
  transform:rotate(-6deg);
  box-shadow:4px 4px 0 var(--sun);
  transition:transform .25s ease,box-shadow .25s ease;
}
.corner:hover,.corner:focus-visible{
  transform:rotate(4deg) scale(1.06);
  box-shadow:2px 2px 0 var(--sun);
}
.corner-mark{
  font-family:var(--serif);
  font-size:26px;
  font-weight:700;
  line-height:1;
}

/* ---------- 装饰色块 ---------- */
.blob{
  position:absolute;
  z-index:0;
  pointer-events:none;
  opacity:.85;
}
.blob-a{
  top:16vh;
  right:-46px;
  width:190px;
  height:190px;
  background:var(--sun);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(12deg);
  mix-blend-mode:screen;
  opacity:.5;
}
.blob-b{
  top:58vh;
  left:-56px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:var(--lime);
  mix-blend-mode:screen;
  opacity:.32;
}
.blob-c{
  top:118vh;
  right:6vw;
  width:84px;
  height:84px;
  background:repeating-linear-gradient(45deg,var(--lime) 0 7px,transparent 7px 15px);
  border-radius:6px;
  transform:rotate(-14deg);
  opacity:.6;
}
.zig{
  position:absolute;
  top:44vh;
  right:0;
  width:210px;
  height:14px;
  background:repeating-linear-gradient(90deg,var(--sun) 0 6px,transparent 6px 14px);
  transform:rotate(-18deg);
  opacity:.55;
  z-index:0;
  pointer-events:none;
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  align-items:center;
  gap:clamp(1.4rem,4vw,4rem);
  min-height:100vh;
  padding:clamp(84px,12vh,140px) 6vw 96px;
}
.hero::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:12%;
  height:72px;
  background:var(--sun);
  opacity:.75;
  clip-path:polygon(0 44%,100% 0,100% 56%,0 100%);
  z-index:0;
  pointer-events:none;
}
.hero-copy{
  position:relative;
  z-index:1;
  min-width:0;
}
.hero-h1{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(2.3rem,6.4vw,4.9rem);
  line-height:1.03;
  letter-spacing:-.015em;
  margin:0 0 1.1rem;
  text-wrap:balance;
}
.hero-lede{
  margin:0;
  max-width:36ch;
  font-size:clamp(1rem,1.7vw,1.14rem);
  line-height:1.75;
  color:var(--dim);
}
.hero-art{
  position:relative;
  z-index:1;
  margin:0;
  aspect-ratio:4/5;
  max-height:76vh;
  border-radius:8px;
  overflow:hidden;
  transform:rotate(-1.6deg);
  clip-path:polygon(0 7%,100% 0,100% 93%,0 100%);
  background:linear-gradient(150deg,rgba(135,255,113,.3),rgba(255,206,92,.22));
  box-shadow:0 30px 70px rgba(0,0,0,.45);
}
.hero-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.06);
}
.art-tri{
  position:absolute;
  left:10%;
  bottom:8%;
  width:76px;
  height:76px;
  background:var(--lime);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-9deg);
  mix-blend-mode:screen;
}
.art-dot{
  position:absolute;
  right:8%;
  top:7%;
  width:58px;
  height:58px;
  border-radius:50%;
  background:var(--sun);
  mix-blend-mode:screen;
  opacity:.9;
}

/* ---------- 主体栅格 ---------- */
.body{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,238px) minmax(0,1fr);
  gap:clamp(1.1rem,3.4vw,3rem);
  align-items:start;
  max-width:1240px;
  margin:0 auto;
  padding:clamp(2rem,6vw,4.5rem) 6vw clamp(3rem,8vw,6rem);
}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:clamp(18px,6vh,64px);
  z-index:2;
  background:var(--glass);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px dashed var(--line);
  border-radius:var(--r);
  padding:1rem .8rem 1.1rem;
}
.rail-h{
  margin:0 0 .7rem;
  font-family:var(--sans);
  font-size:16px;
  font-weight:600;
  letter-spacing:.16em;
}
.rail-h span{
  display:inline-block;
  background:var(--lime);
  color:var(--ink);
  padding:.08em .5em;
  border-radius:5px;
  transform:rotate(-2.5deg);
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:2px;
}
.rail-list a{
  display:flex;
  align-items:center;
  gap:.6rem;
  min-height:44px;
  padding:.25rem .45rem;
  border-radius:10px;
  color:var(--paper);
  text-decoration:none;
  font-size:16px;
  line-height:1.4;
}
.rail-list a:hover,
.rail-list a:focus-visible{
  background:rgba(135,255,113,.16);
  color:var(--lime);
}
.dot{
  flex:0 0 auto;
  width:10px;
  height:10px;
  background:var(--sun);
  border-radius:50%;
}
.rail-list li:nth-child(2n) .dot{
  background:var(--lime);
  border-radius:0;
  clip-path:polygon(50% 0,100% 100%,0 100%);
}
.rail-list li:nth-child(3n) .dot{
  background:var(--paper);
  border-radius:2px;
  transform:rotate(45deg);
}

/* ---------- 正文 ---------- */
.prose{
  min-width:0;
  max-width:840px;
  font-size:17px;
}
.prose > section{
  position:relative;
  background:var(--glass);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(135,255,113,.22);
  border-left-width:4px;
  border-left-style:solid;
  border-left-color:var(--lime);
  border-radius:var(--r);
  padding:clamp(1.15rem,3.2vw,2.3rem);
  margin:0 0 clamp(1rem,3vw,1.9rem);
  scroll-margin-top:26px;
  overflow:hidden;
}
.prose > section:nth-child(2n){
  border-left-color:var(--sun);
}
.prose > section:nth-child(3n){
  border-color:rgba(255,206,92,.26);
  border-left-color:var(--sun);
}
.prose h2{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.45rem,3.3vw,2.1rem);
  line-height:1.26;
  letter-spacing:-.01em;
  margin:0 0 .9rem;
}
.prose h2 span{
  display:inline-block;
  background:var(--sun);
  color:var(--ink);
  padding:.04em .34em;
  border-radius:5px;
  transform:rotate(-1.2deg);
  box-shadow:3px 3px 0 rgba(135,255,113,.8);
}
.prose h3{
  font-family:var(--sans);
  font-size:1.12rem;
  font-weight:600;
  line-height:1.45;
  margin:1.3rem 0 .5rem;
  color:var(--lime);
}
.prose h3 span{
  display:inline-block;
  border-bottom:3px dashed rgba(255,206,92,.7);
  padding-bottom:.06em;
}
.prose p{margin:.75rem 0}
.prose ul,.prose ol{margin:.75rem 0;padding-left:1.35rem}
.prose li{margin:.35rem 0}
.prose li::marker{color:var(--sun)}
.prose a{
  color:var(--lime);
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
.prose a:hover{color:var(--sun)}
.prose strong{color:var(--sun);font-weight:600}
.prose blockquote{
  margin:1rem 0;
  padding:.4rem 0 .4rem 1rem;
  border-left:4px dotted var(--lime);
  color:var(--dim);
}
.prose figure{margin:1rem 0}
.prose figcaption{font-size:16px;color:var(--dim)}
.prose img{border-radius:12px;height:auto}
.prose hr{
  border:0;
  border-top:2px dashed rgba(135,255,113,.4);
  margin:1.4rem 0;
}
.prose table{
  width:100%;
  border-collapse:collapse;
  font-size:16px;
}
.prose th,.prose td{
  border:1px dashed rgba(135,255,113,.3);
  padding:.5rem .6rem;
  text-align:left;
}
.prose th{background:rgba(135,255,113,.12);color:var(--lime)}

/* ---------- 底部固定菜单 ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:70;
  display:flex;
  justify-content:center;
  align-items:flex-end;
  padding:.7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  pointer-events:none;
}
.dock-box{
  pointer-events:auto;
  width:min(560px,100%);
  background:rgba(25,38,23,.94);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:0 -12px 40px rgba(0,0,0,.5);
  overflow:hidden;
}
.dock-sum{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  min-height:50px;
  padding:.55rem 1rem;
  list-style:none;
  cursor:pointer;
  font-weight:600;
  letter-spacing:.16em;
  font-size:16px;
  color:var(--paper);
}
.dock-sum::-webkit-details-marker{display:none}
.dock-sum:hover,.dock-sum:focus-visible{color:var(--lime)}
.dock-glyph{
  width:16px;
  height:16px;
  background:var(--lime);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transition:transform .25s ease;
}
.dock-box[open] .dock-glyph{
  transform:rotate(180deg);
  background:var(--sun);
}
.dock-box[open] .dock-sum{
  border-bottom:1px dashed var(--line);
}
.dock-title{
  margin:.6rem 1rem .2rem;
  font-family:var(--sans);
  font-size:16px;
  font-weight:600;
  letter-spacing:.16em;
}
.dock-title span{
  display:inline-block;
  background:var(--sun);
  color:var(--ink);
  padding:.05em .5em;
  border-radius:5px;
  transform:rotate(-2deg);
}
.dock-menu{
  list-style:none;
  margin:.5rem 0 0;
  padding:.4rem .6rem .7rem;
  display:grid;
  gap:.15rem;
  max-height:56vh;
  overflow:auto;
  overscroll-behavior:contain;
}
.dock-menu a{
  display:flex;
  align-items:center;
  gap:.7rem;
  min-height:46px;
  padding:.45rem .7rem;
  border-radius:12px;
  color:var(--paper);
  text-decoration:none;
  font-size:17px;
  line-height:1.4;
}
.dock-menu a:hover,
.dock-menu a:focus-visible{
  background:var(--lime);
  color:var(--ink);
}
.mk{
  flex:0 0 auto;
  width:13px;
  height:13px;
  background:var(--sun);
  border-radius:50%;
}
.dock-menu li:nth-child(2n) .mk{
  background:var(--lime);
  border-radius:0;
  clip-path:polygon(50% 0,100% 100%,0 100%);
}
.dock-menu li:nth-child(3n) .mk{
  background:var(--paper);
  border-radius:2px;
  transform:rotate(45deg);
}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:1rem 2rem;
  align-items:start;
  max-width:1240px;
  margin:0 auto;
  padding:clamp(2.2rem,7vw,4.5rem) 6vw calc(7.5rem + env(safe-area-inset-bottom));
  border-top:1px dashed var(--line);
}
.foot-cta{
  grid-column:1/-1;
  margin:0 0 1.3rem;
  font-family:var(--serif);
  font-size:clamp(1.9rem,5.6vw,3.4rem);
  line-height:1.05;
  font-weight:600;
}
.foot-cta a{
  display:inline-block;
  color:var(--ink);
  background:var(--lime);
  text-decoration:none;
  padding:.16em .48em;
  border-radius:14px;
  transform:rotate(-1.8deg);
  box-shadow:6px 6px 0 rgba(255,206,92,.9);
  transition:transform .25s ease,box-shadow .25s ease;
}
.foot-cta a:hover,
.foot-cta a:focus-visible{
  transform:rotate(1deg);
  box-shadow:3px 3px 0 rgba(255,206,92,.9);
}
.foot-brand{margin:0}
.foot-brand strong{
  display:block;
  font-family:var(--serif);
  font-size:1.35rem;
  font-weight:600;
  color:var(--lime);
  letter-spacing:.01em;
}
.foot-links{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:.2rem 1.1rem;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--dim);
  text-decoration:none;
  font-size:16px;
  border-bottom:1px dotted transparent;
}
.foot-links a:hover,
.foot-links a:focus-visible{
  color:var(--lime);
  border-bottom-color:var(--lime);
}
.foot small{
  grid-column:1/-1;
  margin-top:.4rem;
  padding-top:.9rem;
  border-top:1px dotted rgba(169,189,163,.35);
  font-size:16px;
  color:var(--dim);
  letter-spacing:.04em;
}

/* ---------- 揭示动效 ---------- */
.js .rv{
  opacity:0;
  transform:translateY(20px);
}
.js .rv.in{
  opacity:1;
  transform:none;
  transition:opacity .55s ease,transform .6s cubic-bezier(.2,.7,.3,1);
}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .blob-c,.zig{display:none}
  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:auto;
    padding:clamp(88px,16vh,120px) 6vw 3.2rem;
    gap:2rem;
  }
  .hero-art{
    aspect-ratio:16/11;
    max-height:none;
    transform:rotate(-1deg);
  }
  .hero-lede{max-width:44ch}
  .body{
    grid-template-columns:minmax(0,1fr);
    padding-top:1rem;
  }
  .rail{
    position:static;
    order:-1;
  }
  .rail-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.2rem .6rem;
  }
  .prose{max-width:none}
}

@media (max-width:560px){
  body{font-size:17px}
  .foot{grid-template-columns:minmax(0,1fr);gap:.6rem}
  .foot-links{order:2}
  .prose > section{
    padding:1.1rem 1rem;
    border-radius:16px;
  }
  .hero-h1{font-size:clamp(2.1rem,10vw,2.9rem)}
  .blob-a{
    width:120px;
    height:120px;
    top:12vh;
    right:-38px;
  }
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .rv{
    opacity:1;
    transform:none;
    transition:none;
  }
  .corner,.foot-cta a,.dock-glyph{transition:none}
}

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