@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root{
  --ink:#192617;
  --green:#87ff71;
  --yellow:#ffce5c;
  --paper:#f3f7ea;
  --cream:#e6efd8;
  --rail:236px;
  --tile:18px;
}

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

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

body{
  margin:0;
  font-family:'Plus Jakarta Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.68;
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(rgba(25,38,23,.17) 1.3px,transparent 1.3px);
  background-size:24px 24px;
  -webkit-font-smoothing:antialiased;
}

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

a{color:inherit}

.skip{
  position:absolute;left:12px;top:-70px;z-index:60;
  background:var(--yellow);color:var(--ink);
  padding:12px 18px;border-radius:12px;text-decoration:none;font-weight:700;
  transition:top .18s ease;
}
.skip:focus{top:12px}

/* ---------- 左侧竖排导航 ---------- */
.rail{
  position:fixed;
  top:0;left:0;bottom:0;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:24px 16px 26px;
  background:var(--ink);
  color:var(--paper);
  border-right:6px solid var(--green);
  overflow-y:auto;
  z-index:30;
}
.brand{
  align-self:flex-start;
  display:inline-block;
  font-size:24px;
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.02em;
  text-decoration:none;
  color:var(--ink);
  background:var(--green);
  padding:12px 14px;
  border-radius:var(--tile);
  transform:rotate(-2.5deg);
  clip-path:polygon(0 6%,100% 0,97% 100%,3% 94%);
}
.brand:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}

.nav{min-height:0}

.menu,.sub{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:m;
}
.menu{display:flex;flex-direction:column;gap:6px}

.grp{position:relative;counter-increment:m}

.grp > a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:11px 10px;
  font-weight:500;
  text-decoration:none;
  color:var(--paper);
  border:2px dashed transparent;
  border-radius:14px;
}
.grp > a::before{
  content:counter(m,decimal-leading-zero);
  flex:0 0 auto;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  line-height:1;
  padding:3px 5px;
  color:var(--yellow);
  border:2px solid var(--yellow);
  border-radius:6px;
}
.grp > a:hover,.grp > a:focus-visible{
  background:var(--green);
  color:var(--ink);
  border-color:var(--ink);
}
.grp > a:hover::before,.grp > a:focus-visible::before{
  color:var(--ink);
  border-color:var(--ink);
}

.sub{
  display:none;
  flex-direction:column;
  gap:2px;
  margin:6px 0 10px;
  padding-left:14px;
  border-left:2px dotted var(--green);
}
.grp:hover .sub,.grp:focus-within .sub{display:flex}

.sub a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:10px 8px;
  font-size:15px;
  text-decoration:none;
  color:var(--paper);
  border-radius:10px;
}
.sub a:hover,.sub a:focus-visible{background:var(--yellow);color:var(--ink)}

/* ---------- 主体 ---------- */
.main{
  margin-left:var(--rail);
  max-width:1120px;
  padding:0 34px 0 38px;
}

div{scroll-margin-top:26px}

/* ---------- 首屏拼贴 ---------- */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:12px 22px;
  align-items:center;
  min-height:45vh;
  padding:30px 0 32px;
}

.hero-copy{
  grid-column:2;
  grid-row:1 / span 2;
  text-align:right;
  z-index:2;
}

h1{
  margin:0;
  font-size:clamp(30px,4.4vw,56px);
  line-height:1.04;
  letter-spacing:-.035em;
  font-weight:700;
}
h1::after{
  content:"";
  display:block;
  width:112px;
  height:14px;
  margin:18px 0 0 auto;
  background:var(--yellow);
  clip-path:polygon(0 45%,100% 0,100% 100%,0 58%);
}

.tile{
  margin:0;
  aspect-ratio:4/3;
  border-radius:var(--tile);
  overflow:hidden;
  background:var(--green);
  box-shadow:8px 8px 0 rgba(25,38,23,.14);
}
.tile img{width:100%;height:100%;object-fit:cover}

.tile-1{
  grid-column:1;
  grid-row:1;
  background:var(--green);
  transform:rotate(-3deg);
  clip-path:polygon(0 0,100% 0,100% 86%,0 100%);
  animation:bob 8s ease-in-out infinite alternate;
}
.tile-2{
  grid-column:1;
  grid-row:2;
  margin-left:14%;
  background:var(--yellow);
  transform:rotate(2.5deg);
  clip-path:polygon(0 14%,100% 0,97% 100%,3% 92%);
}
.tile:empty::after{
  content:"";
  display:block;
  height:100%;
  background-image:repeating-linear-gradient(45deg,rgba(25,38,23,.14) 0 8px,transparent 8px 16px);
}

@keyframes bob{
  from{transform:rotate(-3deg) translateY(0)}
  to{transform:rotate(-3deg) translateY(-9px)}
}

/* ---------- 正文与侧栏 ---------- */
.body-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 258px;
  gap:36px;
  align-items:start;
  padding-bottom:58px;
}

.prose{max-width:66ch;min-width:0}

.prose div{
  padding:26px 0 14px;
  border-top:3px dashed rgba(25,38,23,.22);
}
.prose div:first-child{border-top:0;padding-top:4px}

.prose h2,.prose h3{margin:0 0 12px;line-height:1.18;letter-spacing:-.02em}
.prose h2{font-size:clamp(21px,2.5vw,29px)}
.prose h3{font-size:clamp(18px,2vw,22px)}

.prose p{margin:0 0 1.05em}
.prose ul,.prose ol{margin:0 0 1.1em;padding-left:1.35em}
.prose li{margin:0 0 .45em}
.prose a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-color:var(--green);
  text-decoration-thickness:3px;
  text-underline-offset:3px;
}
.prose a:hover{background:var(--yellow)}

.prose blockquote{
  margin:1.3em 0;
  padding:16px 20px;
  background:var(--cream);
  border-radius:var(--tile);
  transform:rotate(-.7deg);
  font-style:italic;
}
.prose blockquote p:last-child{margin-bottom:0}

.prose img,.prose figure{border-radius:var(--tile);overflow:hidden}
.prose figure{margin:1.3em 0}
.prose figcaption{font-size:14px;padding:8px 2px;opacity:.75}

.prose hr{border:0;border-top:3px dotted rgba(25,38,23,.3);margin:1.6em 0}

h2,h3{font-weight:700}
h2 > span{
  display:inline-block;
  padding:2px 11px;
  background:var(--green);
  border-radius:11px;
  transform:rotate(-1.2deg);
}
h3 > span{
  display:inline-block;
  padding:1px 9px;
  background:var(--yellow);
  border-radius:9px;
}

.side{
  position:sticky;
  top:26px;
  background:var(--cream);
  border-radius:var(--tile);
  padding:18px 16px;
  transform:rotate(-1deg);
  box-shadow:-7px 7px 0 rgba(25,38,23,.12);
}
.side h2{font-size:20px;margin:0 0 10px}

.side-list,.foot-list{list-style:none;margin:0;padding:0}

.side-list{display:flex;flex-direction:column;gap:2px}
.side-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 6px;
  font-size:15px;
  text-decoration:none;
  border-bottom:2px dotted rgba(25,38,23,.28);
}
.side-list li:last-child a{border-bottom:0}
.side-list a:hover,.side-list a:focus-visible{background:var(--yellow);border-radius:8px}

/* ---------- 页脚 ---------- */
.foot{
  margin-left:var(--rail);
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:30px 40px;
  padding:46px 34px 22px;
  background:var(--ink);
  color:var(--paper);
  border-top:8px solid var(--green);
}
.foot h2{font-size:19px;margin:0 0 14px}
.foot h2 > span{background:var(--yellow);color:var(--ink)}

.giant{
  margin:0;
  font-size:clamp(38px,6.4vw,82px);
  font-weight:700;
  line-height:.92;
  letter-spacing:-.055em;
  color:var(--green);
  word-break:break-word;
}

.foot-list{display:grid;grid-template-columns:1fr 1fr;gap:2px 16px}
.foot-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:9px 4px;
  font-size:15px;
  text-decoration:none;
  color:var(--paper);
  border-bottom:2px dotted rgba(244,248,238,.25);
}
.foot-list a:hover,.foot-list a:focus-visible{color:var(--yellow)}

.foot-bar{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-top:10px;
  padding-top:14px;
  border-top:2px dotted rgba(244,248,238,.35);
  font-size:14px;
}
.copy{margin:0;opacity:.8}
.foot-top{display:flex;gap:16px;margin:0}
.foot-top a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:6px 4px;
  color:var(--yellow);
  text-decoration:none;
}

/* ---------- 移动端 ---------- */
@media (max-width:880px){
  .rail{
    position:static;
    width:auto;
    flex-direction:row;
    align-items:flex-start;
    gap:14px;
    padding:14px 16px 18px;
    border-right:0;
    border-bottom:6px solid var(--green);
  }
  .brand{flex:0 0 auto;font-size:19px;padding:9px 12px;transform:rotate(-2deg)}
  .nav{flex:1 1 auto;overflow-x:auto;padding-bottom:4px}
  .menu{flex-direction:row;gap:8px;align-items:flex-start}
  .grp{display:flex;flex-direction:column}
  .grp > a{white-space:nowrap;padding:10px;min-height:44px}
  .sub{display:flex;margin:6px 0 0;padding-left:8px}
  .sub a{white-space:nowrap;min-height:40px}

  .main{margin-left:0;padding:0 18px}
  div{scroll-margin-top:16px}

  .hero{
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto auto;
    min-height:0;
    padding:22px 0 26px;
    gap:12px;
  }
  .hero-copy{
    grid-column:1 / -1;
    grid-row:1;
    text-align:left;
  }
  h1::after{margin:14px 0 0 0;width:88px}
  .tile-1{grid-column:1;grid-row:2}
  .tile-2{grid-column:2;grid-row:2;margin-left:0}
  .tile-1{animation:none}

  .body-row{grid-template-columns:1fr;gap:26px;padding-bottom:38px}
  .side{position:static;transform:none;order:2;box-shadow:none}

  .foot{margin-left:0;grid-template-columns:1fr;padding:36px 18px 20px;gap:24px}
  .foot-list{grid-template-columns:1fr 1fr}
}

@media (max-width:460px){
  body{font-size:16px}
  .foot-list{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .tile-1,.brand,.side,.prose blockquote{animation:none;transform:none}
}

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