:root{
  --ink:#192617;
  --lime:#87ff71;
  --gold:#ffce5c;
  --paper:#f4f2e4;
  --card:#fffdf3;
  --dim:#5c6b54;
  --deep:#0d160f;
}

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

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

body{
  margin:0;
  font-family:'Source Serif 4',Georgia,'Songti SC','Noto Serif SC',serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(rgba(25,38,23,.13) 1px,transparent 1px);
  background-size:20px 20px;
}

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

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

small{
  display:block;
  margin:0 0 6px;
  font-family:'JetBrains Mono',ui-monospace,monospace;
  font-size:13px;
  letter-spacing:.24em;
  color:var(--dim);
}

h2{
  font-family:'Playfair Display',Georgia,serif;
  font-weight:900;
  font-size:clamp(22px,3.6vw,32px);
  line-height:1.22;
  letter-spacing:.01em;
  margin:0 0 14px;
}

h3{
  font-family:'Playfair Display',Georgia,serif;
  font-weight:700;
  font-size:clamp(18px,2.4vw,23px);
  line-height:1.3;
  margin:1.5em 0 .6em;
  color:#12341a;
}

/* 顶栏 */
.top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 18px;
  background:var(--ink);
  border-bottom:4px solid var(--gold);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  text-decoration:none;
  color:var(--lime);
  font-family:'Playfair Display',Georgia,serif;
  font-weight:900;
  font-size:19px;
  letter-spacing:.01em;
}
.brand:hover .brand-name{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px}

.mark{
  width:32px;
  height:32px;
  flex:none;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:var(--gold);
  color:var(--ink);
  clip-path:polygon(50% 0,100% 42%,79% 100%,21% 100%,0 42%);
  transform:rotate(-6deg);
}
.mark img{width:100%;height:100%;object-fit:cover}
.mark-shape{width:12px;height:12px;border-radius:50%;background:var(--ink);display:block}

.search{display:flex;gap:6px;flex:1 1 200px;max-width:340px}
.search input{
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  padding:0 12px;
  font:inherit;
  font-size:16px;
  color:var(--paper);
  background:var(--deep);
  border:2px solid var(--lime);
  border-radius:4px;
}
.search input::placeholder{color:#9db396}
.search button{
  min-height:44px;
  padding:0 16px;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  background:var(--gold);
  border:2px solid var(--ink);
  border-radius:4px;
  box-shadow:3px 3px 0 var(--lime);
  cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease;
}
.search button:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--lime)}

/* 吸顶锚点条 */
.anchors{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  gap:4px;
  overflow-x:auto;
  padding:6px 12px;
  background:var(--lime);
  border-bottom:3px solid var(--ink);
  scrollbar-width:thin;
}
.anchors a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:0 12px;
  white-space:nowrap;
  text-decoration:none;
  color:var(--ink);
  font-family:'JetBrains Mono',ui-monospace,monospace;
  font-size:16px;
  border:2px solid transparent;
  border-radius:4px;
}
.anchors .n{font-size:12px;opacity:.6}
.anchors a:hover,.anchors a:focus-visible,.anchors a.on{
  background:var(--ink);
  color:var(--lime);
  border-color:var(--ink);
}

/* 首屏 */
.hero{
  position:relative;
  overflow:hidden;
  min-height:70vh;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding:70px 22px 96px;
  background:var(--ink);
  color:var(--paper);
}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-veil{
  position:absolute;
  inset:0;
  background:linear-gradient(205deg,rgba(25,38,23,.18) 0%,rgba(25,38,23,.55) 46%,rgba(25,38,23,.93) 100%);
}
.hero-geo{position:absolute;inset:0;pointer-events:none}
.hero-geo::before{
  content:"";
  position:absolute;
  top:10%;
  left:6%;
  width:132px;
  height:132px;
  border-radius:50%;
  background:var(--gold);
  opacity:.9;
  mix-blend-mode:screen;
  box-shadow:0 0 0 12px rgba(135,255,113,.32);
}
.hero-geo::after{
  content:"";
  position:absolute;
  top:36%;
  left:24%;
  width:168px;
  height:148px;
  background:var(--lime);
  opacity:.34;
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(12deg);
  mix-blend-mode:screen;
}
.hero-copy{position:relative;max-width:660px;text-align:right}
.hero-eyebrow{
  margin:0 0 10px;
  font-family:'JetBrains Mono',ui-monospace,monospace;
  font-size:13px;
  letter-spacing:.3em;
  color:var(--gold);
}
.hero h1{
  margin:0;
  font-family:'Playfair Display',Georgia,serif;
  font-weight:900;
  font-size:clamp(32px,6.2vw,66px);
  line-height:1.06;
  color:var(--lime);
  text-shadow:5px 5px 0 rgba(25,38,23,.55);
  transform:rotate(-1deg);
}
.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:52px;
  background:var(--gold);
  clip-path:polygon(0 100%,0 30%,100% 0,100% 100%);
  pointer-events:none;
}

/* 主体 */
.page{
  display:grid;
  grid-template-columns:minmax(0,1fr) 270px;
  gap:30px;
  align-items:start;
  max-width:1140px;
  margin:0 auto;
  padding:38px 20px 62px;
}

.body{
  position:relative;
  min-width:0;
  padding:26px 22px;
  background:var(--card);
  border:3px solid var(--ink);
  border-radius:4px;
  box-shadow:9px 9px 0 var(--ink);
}
.body > section{
  position:relative;
  margin-top:30px;
  padding-top:26px;
  border-top:3px dashed rgba(25,38,23,.32);
  scroll-margin-top:96px;
}
.body > section:first-child{margin-top:0;padding-top:0;border-top:0}
.body > section::before{
  content:"";
  position:absolute;
  top:-10px;
  left:0;
  width:18px;
  height:18px;
  background:var(--lime);
  border:2px solid var(--ink);
  clip-path:polygon(50% 0,100% 100%,0 100%);
}
.body > section:first-child::before{display:none}

.body p{margin:0 0 1.05em}
.body ul,.body ol{margin:0 0 1.1em;padding-left:1.35em}
.body li{margin:.35em 0}
.body a{text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:3px;text-underline-offset:3px}
.body img{margin:1.15em 0;border:3px solid var(--ink);border-radius:4px;box-shadow:5px 5px 0 var(--lime)}
.body blockquote{
  margin:1.25em 0;
  padding:14px 18px;
  background:rgba(255,206,92,.28);
  border-left:6px solid var(--gold);
  font-style:italic;
}
.body hr{border:0;border-top:3px dotted rgba(25,38,23,.3);margin:1.6em 0}

/* 侧栏 */
.rail{
  position:sticky;
  top:76px;
  padding:18px 16px;
  background:var(--card);
  border:3px solid var(--ink);
  border-radius:4px;
  box-shadow:6px 6px 0 var(--lime);
}
.rail h2{font-size:21px;margin-bottom:10px}
.rail-list{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:2px}
.rail-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:4px 8px;
  font-size:16px;
  text-decoration:none;
  border-radius:4px;
  border:2px solid transparent;
}
.rail-list .n{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12px;color:var(--dim)}
.rail-list a:hover,.rail-list a:focus-visible{background:var(--ink);color:var(--lime);border-color:var(--ink)}
.totop{
  width:100%;
  min-height:44px;
  padding:0 12px;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  background:var(--gold);
  border:2px solid var(--ink);
  border-radius:4px;
  box-shadow:3px 3px 0 var(--ink);
  cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease;
}
.totop:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--ink)}

/* 页脚 */
.bottom{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:26px;
  align-items:start;
  padding:40px 20px 16px;
  background:var(--ink);
  color:#dde7d6;
  border-top:7px solid var(--lime);
}
.bottom h2{font-size:22px;color:var(--lime);margin-bottom:10px}
.bottom small{color:var(--gold)}
.bottom p{margin:0 0 1em;font-size:16px;line-height:1.7}
.bottom nav dl{display:grid;grid-template-columns:1fr 1fr;gap:2px 14px;margin:0}
.bottom dt{margin:0}
.bottom dt a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:2px 0;
  font-size:16px;
  text-decoration:none;
  color:#e8f1e2;
  border-bottom:1px dotted rgba(135,255,113,.35);
}
.bottom dt a:hover,.bottom dt a:focus-visible{color:var(--gold)}
.sub{display:flex;flex-wrap:wrap;gap:8px}
.sub input{
  flex:1 1 140px;
  min-width:0;
  min-height:44px;
  padding:0 12px;
  font:inherit;
  font-size:16px;
  color:var(--paper);
  background:var(--deep);
  border:2px solid var(--gold);
  border-radius:4px;
}
.sub input::placeholder{color:#9db396}
.sub button{
  min-height:44px;
  padding:0 16px;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  background:var(--lime);
  border:2px solid var(--ink);
  border-radius:4px;
  box-shadow:3px 3px 0 var(--gold);
  cursor:pointer;
}
.copy{
  grid-column:1/-1;
  margin:18px 0 0;
  padding-top:12px;
  font-size:15px;
  color:#a9bda3;
  border-top:1px dashed rgba(223,231,215,.3);
}

/* 滚动显现 */
.rv{opacity:0;transform:translateY(18px) rotate(-.4deg);transition:opacity .6s ease,transform .6s ease}
.rv.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1;transform:none;transition:none}
  .search button,.totop{transition:none}
}

@media (max-width:820px){
  .page{grid-template-columns:1fr;gap:22px;padding:26px 16px 46px}
  .rail{position:static;box-shadow:6px 6px 0 var(--gold)}
  .body{padding:20px 16px;box-shadow:6px 6px 0 var(--ink)}
  .bottom{grid-template-columns:1fr 1fr}
  .bottom .f-brand{grid-column:1/-1}
}

@media (max-width:520px){
  .top{padding:10px 14px}
  .search{flex-basis:100%;max-width:none}
  .hero{min-height:64vh;padding:58px 16px 86px}
  .hero-geo::before{width:96px;height:96px;top:8%}
  .hero-geo::after{width:118px;height:104px;left:18%}
  .anchors a{font-size:15px;padding:0 10px}
  .bottom{grid-template-columns:1fr;padding:32px 16px 14px}
  .body h2{font-size:23px}
}

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