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

:root{
  --lime:#87ff71;
  --sun:#ffce5c;
  --ink:#192617;
  --ink-2:#101a0e;
  --paper:#f3f7ea;
  --serif:"Cormorant",Georgia,"Songti SC","Noto Serif SC",serif;
  --sans:"Montserrat",-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --head-h:200px;
}

*,*::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.78;
  color:var(--paper);
  background-color:var(--ink);
  background-image:radial-gradient(rgba(135,255,113,.14) 1.2px,transparent 1.2px);
  background-size:24px 24px;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit}
button{font-family:inherit}

.skip{
  position:absolute;
  left:1rem;
  top:-5rem;
  z-index:99;
  padding:.7rem 1.1rem;
  border-radius:4px;
  background:var(--sun);
  color:var(--ink);
  font-weight:600;
  text-decoration:none;
}
.skip:focus{top:1rem}

/* ---------- 顶部 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--ink-2);
  border-bottom:2px dashed rgba(135,255,113,.45);
}

.ticker{
  margin:0;
  padding:.34rem 0;
  overflow:hidden;
  background:var(--lime);
  color:var(--ink);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.24em;
  text-transform:uppercase;
}
.ticker-run{
  display:inline-block;
  white-space:nowrap;
  padding-left:1rem;
  animation:run 34s linear infinite;
}
@keyframes run{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

.brandbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.65rem clamp(1rem,4vw,2.4rem);
  border-bottom:1px solid rgba(135,255,113,.16);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  text-decoration:none;
  color:var(--lime);
  font-family:var(--serif);
  font-size:clamp(1.5rem,5vw,2.25rem);
  font-weight:600;
  line-height:1.12;
  letter-spacing:.03em;
}
.brand-mark{
  width:38px;
  height:38px;
  flex:0 0 auto;
  border-radius:50%;
  object-fit:cover;
}
.brand-mark--drawn{
  background:var(--sun);
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
  border-radius:0;
}
.brand-txt{display:block}

.brand-deco{
  width:72px;
  height:10px;
  background:repeating-linear-gradient(90deg,var(--sun) 0 9px,transparent 9px 18px);
  transform:rotate(-3deg);
}

.mainnav{padding:.45rem clamp(1rem,4vw,2.4rem) .7rem}

.nav-ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin:0;
  padding:0;
}
.nav-ol li{flex:0 0 auto}

.nav-ol a{
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  min-height:42px;
  padding:.5rem .95rem;
  border:2px solid var(--lime);
  border-radius:999px;
  color:var(--lime);
  font-size:1rem;
  text-decoration:none;
  background:transparent;
  transition:transform .18s ease,background-color .18s ease,color .18s ease;
}
.nav-ol li:nth-child(even) a{border-color:var(--sun);color:var(--sun)}
.nav-ol a:hover,
.nav-ol a:focus-visible{
  background:var(--lime);
  border-color:var(--lime);
  color:var(--ink);
  transform:translateY(-2px) rotate(-1.5deg);
}
.nav-ol li:nth-child(even) a:hover,
.nav-ol li:nth-child(even) a:focus-visible{
  background:var(--sun);
  border-color:var(--sun);
  color:var(--ink);
}
.idx{
  font-size:.68rem;
  letter-spacing:.14em;
  opacity:.7;
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  min-height:100vh;
  min-height:100svh;
  display:grid;
  place-items:center;
  overflow:hidden;
  padding:clamp(1.6rem,6vw,3rem) 1rem clamp(2.4rem,7vw,4rem);
  border-bottom:3px solid var(--lime);
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='46' viewBox='0 0 150 46'%3E%3Cpath d='M0 23q18-22 37 0t37 0q18 22 37 0t37 0' fill='none' stroke='%23ffce5c' stroke-width='2.5' opacity='.5'/%3E%3C/svg%3E");
  background-repeat:repeat-x;
  background-position:left bottom 10px;
  background-size:150px 46px;
}

.hero-art{position:absolute;inset:0;pointer-events:none;z-index:1}

.shape{position:absolute;display:block}
.shape-tri{
  width:130px;
  height:118px;
  top:12%;
  left:6%;
  background:var(--lime);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-8deg);
  opacity:.9;
}
.shape-dot{
  width:96px;
  height:96px;
  right:8%;
  top:14%;
  border-radius:50%;
  border:8px dotted var(--sun);
  transform:rotate(6deg);
}
.shape-arc{
  width:180px;
  height:180px;
  left:14%;
  bottom:6%;
  border-radius:50%;
  border:14px solid var(--lime);
  border-right-color:transparent;
  border-bottom-color:transparent;
  transform:rotate(24deg);
  opacity:.65;
}

.hero-pics{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  transform:translateY(var(--par,0px));
  transition:transform .2s linear;
}

.frame{
  position:absolute;
  margin:0;
  overflow:hidden;
  border-radius:4px;
  border:3px dashed var(--sun);
  background:rgba(135,255,113,.12);
  box-shadow:12px 12px 0 rgba(135,255,113,.25);
  transition:opacity .5s ease,transform .6s ease;
}
.frame .shot{width:100%;height:100%;object-fit:cover}

.frame-a{
  width:min(30vw,220px);
  aspect-ratio:3/4;
  left:3%;
  top:22%;
  transform:rotate(-7deg);
  z-index:2;
  border-color:var(--lime);
}
.frame-b{
  width:min(26vw,188px);
  aspect-ratio:4/5;
  right:4%;
  bottom:14%;
  transform:rotate(6deg);
  z-index:1;
}
.frame.is-back{opacity:.4;z-index:1;transform:rotate(0deg) scale(.94)}

.hero-copy{
  position:relative;
  z-index:3;
  max-width:34ch;
  text-align:center;
}

.badge{
  display:inline-block;
  margin-bottom:1rem;
  padding:.42rem 1rem;
  border-radius:999px;
  background:var(--sun);
  color:var(--ink);
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.16em;
  text-decoration:none;
  transform:rotate(-3deg);
  box-shadow:4px 4px 0 rgba(135,255,113,.5);
}
.badge:hover,.badge:focus-visible{background:var(--lime)}

h1{
  margin:0;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(2.4rem,8.5vw,5rem);
  line-height:1.05;
  letter-spacing:.02em;
  color:var(--lime);
  text-shadow:5px 5px 0 rgba(255,206,92,.32);
}

.lede{
  margin:1.1rem auto 0;
  max-width:30ch;
  font-size:1.02rem;
  line-height:1.7;
  color:rgba(243,247,234,.86);
}

/* ---------- 主体骨架 ---------- */
.wrap{
  display:grid;
  grid-template-columns:minmax(0,282px) minmax(0,1fr);
  gap:clamp(1.1rem,3vw,2.2rem);
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:clamp(1.8rem,5vw,3.4rem) clamp(1rem,4vw,2.4rem);
}

.rail{
  position:sticky;
  top:calc(var(--head-h) + 12px);
  padding:1.1rem 1rem 1.3rem;
  border:2px dashed var(--lime);
  border-radius:4px;
  background:rgba(135,255,113,.07);
  box-shadow:8px 8px 0 rgba(16,26,14,.9);
}

.rail-h{
  margin:0;
  font-family:var(--serif);
  font-size:1.6rem;
  font-weight:600;
  line-height:1.2;
  color:var(--lime);
}

.rail-rule{
  border:0;
  height:0;
  margin:.6rem 0 1rem;
  border-top:2px dotted var(--sun);
}

.rail-ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:.15rem;
}
.rail-ol a{
  display:flex;
  align-items:center;
  gap:.5rem;
  min-height:44px;
  padding:.4rem .55rem;
  border-left:4px solid rgba(135,255,113,.55);
  border-radius:0 4px 4px 0;
  color:rgba(243,247,234,.9);
  font-size:.98rem;
  text-decoration:none;
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
}
.rail-ol li:nth-child(even) a{border-left-color:rgba(255,206,92,.6)}
.rail-ol a:hover,
.rail-ol a:focus-visible{
  background:rgba(135,255,113,.16);
  border-left-color:var(--lime);
  transform:translateX(3px);
}

.main-col{min-width:0}

.prose{
  padding:clamp(1.15rem,4vw,2.6rem);
  border-radius:4px;
  border-bottom:6px solid var(--sun);
  background:var(--paper);
  color:var(--ink);
  box-shadow:12px 12px 0 rgba(135,255,113,.22);
  overflow-wrap:break-word;
}

.prose article[id]{scroll-margin-top:calc(var(--head-h) + 16px)}

.prose article + article{
  margin-top:2.2rem;
  padding-top:1.6rem;
  border-top:2px dashed rgba(25,38,23,.28);
}

.prose h2{
  margin:2rem 0 .45rem;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.75rem,4.4vw,2.5rem);
  line-height:1.2;
  letter-spacing:.01em;
  color:var(--ink);
}
.prose h2:first-child{margin-top:0}

.prose h3{
  margin:1.7rem 0 .4rem;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.3rem,3vw,1.65rem);
  line-height:1.3;
  color:var(--ink);
}

.prose h2 + hr,
.prose h3 + hr{
  border:0;
  height:7px;
  margin:.15rem 0 1.3rem;
  background:repeating-linear-gradient(90deg,var(--ink) 0 14px,transparent 14px 25px);
}

.prose p{margin:0 0 1.1em}

.prose a{
  color:#0f3d16;
  text-decoration:none;
  background-image:linear-gradient(transparent 62%,var(--sun) 62%);
  background-repeat:no-repeat;
  padding-bottom:1px;
}
.prose a:hover,.prose a:focus-visible{background-color:var(--sun)}

.prose ul,.prose ol{
  margin:0 0 1.2em;
  padding-left:1.35em;
}
.prose li{margin:.35em 0}
.prose ul li::marker{color:#2c8f3a}
.prose ol li::marker{color:#a3771b;font-weight:700}

.prose blockquote{
  margin:1.4em 0;
  padding:.8em 1.1em;
  border-left:6px solid var(--lime);
  border-radius:0 4px 4px 0;
  background:rgba(135,255,113,.22);
  font-style:normal;
}
.prose blockquote p:last-child{margin-bottom:0}

.prose figure{margin:1.4em 0}
.prose figure img{border-radius:4px;border:2px dashed rgba(25,38,23,.4)}
.prose figcaption{font-size:.86rem;opacity:.72;margin-top:.4em}

.prose img{border-radius:4px}
.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.92em;
  background:rgba(25,38,23,.09);
  padding:.1em .35em;
  border-radius:3px;
}
.prose table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:.96rem}
.prose th,.prose td{border:1px dashed rgba(25,38,23,.35);padding:.5em .6em;text-align:left}

/* ---------- 大块 ---------- */
.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1rem 1.6rem;
  max-width:1180px;
  margin:0 auto;
  padding:1.7rem clamp(1rem,4vw,2.4rem) clamp(2rem,6vw,3.4rem);
  border-top:3px dotted var(--sun);
}
.cta-brand{
  margin:0;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.7rem,6.4vw,3.1rem);
  line-height:1.1;
  color:var(--sun);
  transform:rotate(-1deg);
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:.6rem 1.5rem;
  border:3px solid var(--lime);
  border-radius:999px;
  background:var(--lime);
  color:var(--ink);
  font-weight:600;
  letter-spacing:.08em;
  text-decoration:none;
  transition:transform .18s ease;
}
.cta-btn:hover,.cta-btn:focus-visible{transform:translateY(-3px) rotate(-2deg)}

/* ---------- 页脚 ---------- */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.7rem 1.4rem;
  padding:1.2rem clamp(1rem,4vw,2.4rem);
  border-top:2px solid var(--lime);
  background:var(--ink-2);
}
.foot-logo{
  font-family:var(--serif);
  font-size:1.18rem;
  color:var(--lime);
  text-decoration:none;
  letter-spacing:.04em;
}
.foot-ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:.1rem .95rem;
  margin:0;
  padding:0;
  font-size:.9rem;
}
.foot-ol a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:.3rem .05rem;
  color:rgba(243,247,234,.78);
  text-decoration:none;
}
.foot-ol a:hover,.foot-ol a:focus-visible{color:var(--sun)}
.foot-ol .idx{opacity:.5;margin-right:.35rem}
.foot-copy{font-size:.82rem;color:rgba(243,247,234,.62)}

/* ---------- 回到顶部 ---------- */
.to-top{
  position:fixed;
  right:1rem;
  bottom:1rem;
  z-index:80;
  min-height:44px;
  padding:.6rem 1.1rem;
  border:2px solid var(--ink);
  border-radius:999px;
  background:var(--sun);
  color:var(--ink);
  font-size:.9rem;
  font-weight:600;
  cursor:pointer;
  box-shadow:4px 4px 0 rgba(135,255,113,.6);
}
.to-top[hidden]{display:none}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  :root{--head-h:170px}
  .wrap{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;box-shadow:6px 6px 0 rgba(16,26,14,.85)}
  .rail-ol{flex-direction:row;flex-wrap:wrap}
  .rail-ol a{border-left:0;border-bottom:3px solid rgba(135,255,113,.55);border-radius:4px 4px 0 0}
  .rail-ol li:nth-child(even) a{border-left:0;border-bottom-color:rgba(255,206,92,.6)}
  .rail-ol a:hover,.rail-ol a:focus-visible{transform:translateY(-2px)}
}

@media (max-width:680px){
  body{font-size:16px;background-size:20px 20px}
  .nav-ol{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.35rem;-webkit-overflow-scrolling:touch}
  .nav-ol a{font-size:.95rem;padding:.45rem .8rem}
  .brand-deco{width:48px}
  .hero{place-items:start center;padding-top:1.1rem}
  .hero-copy{padding-top:.4rem}
  .hero-pics{opacity:.62}
  .frame-a{width:42%;left:-9%;top:11%}
  .frame-b{width:38%;right:-8%;bottom:9%}
  .shape-tri{width:84px;height:76px;top:auto;bottom:20%;left:52%}
  .shape-dot{width:64px;height:64px;right:auto;left:8%;top:auto;bottom:10%}
  .shape-arc{width:120px;height:120px;left:auto;right:10%;top:6%;bottom:auto}
  .prose{box-shadow:8px 8px 0 rgba(135,255,113,.2)}
  .foot{flex-direction:column;align-items:flex-start;gap:.4rem}
  .foot-ol{gap:0 1rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

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