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

:root{
  --ink:#192617;
  --neon:#87ff71;
  --honey:#ffce5c;
  --paper:#f4f8ea;
  --card:#ffffff;
  --soft:#eaf3dc;
  --serif:"Libre Bodoni",Georgia,"Songti SC",serif;
  --sans:"Public Sans",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  --r:28px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.6;
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(rgba(25,38,23,.14) 1px,transparent 1px);
  background-size:22px 22px;
  overflow-x:clip;
  -webkit-text-size-adjust:100%;
}

img{max-width:100%}

.wrap{display:block}

/* ---------- 页头 ---------- */
.masthead{
  position:relative;
  padding:16px 18px 0;
  background:linear-gradient(180deg,var(--paper) 0%,rgba(244,248,234,.86) 100%);
}

.brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  max-width:1200px;
  margin:0 auto;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  color:var(--ink);
  text-decoration:none;
}

.brand-mark{
  width:36px;
  height:36px;
  flex:0 0 auto;
  display:block;
  background:var(--honey);
  border:2px solid var(--ink);
  border-radius:10px;
  transform:rotate(-9deg);
  object-fit:cover;
}

.brand-txt{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(21px,4.6vw,30px);
  line-height:1.1;
  letter-spacing:-.01em;
}

.brand-chip{
  width:64px;
  height:14px;
  flex:0 0 auto;
  border-top:3px dotted var(--ink);
  border-bottom:3px solid var(--neon);
  transform:rotate(-3deg);
}

/* ---------- 粘性锚点条 ---------- */
.dock{
  position:sticky;
  top:0;
  z-index:60;
  max-width:1200px;
  margin:14px auto 0;
  background:var(--honey);
  border:2px solid var(--ink);
  border-radius:18px;
  overflow:hidden;
}

.dock > summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:10px 16px;
  cursor:pointer;
  font-weight:600;
  letter-spacing:.14em;
  user-select:none;
}

.dock > summary::-webkit-details-marker{display:none}

.dock > summary::before{
  content:"";
  width:18px;
  height:12px;
  background:
    linear-gradient(var(--ink),var(--ink)) 0 0/18px 2px no-repeat,
    linear-gradient(var(--ink),var(--ink)) 0 5px/18px 2px no-repeat,
    linear-gradient(var(--ink),var(--ink)) 0 10px/12px 2px no-repeat;
}

.dock-menu{
  list-style:none;
  margin:0;
  padding:0 10px 10px;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.dock-menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 8px;
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
  border-bottom:1px dashed rgba(25,38,23,.45);
}

.dock-menu a:active{background:var(--neon)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:70vh;
  display:flex;
  align-items:flex-end;
  margin-top:16px;
  background:var(--neon);
  border-top:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background-image:radial-gradient(rgba(25,38,23,.3) 2px,transparent 2px);
  background-size:26px 26px;
  opacity:.5;
}

.hero-media{
  position:absolute;
  inset:0;
  z-index:-2;
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:grayscale(.12) contrast(1.06);
  mix-blend-mode:multiply;
}

.hero-shape{
  position:absolute;
  top:22px;
  right:-34px;
  z-index:-1;
  width:150px;
  height:150px;
  background:var(--honey);
  border:3px solid var(--ink);
  border-radius:50%;
  transform:rotate(14deg);
  opacity:.95;
}

.hero-inner{
  position:relative;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:36px 18px 92px;
}

.hero-title{
  margin:0;
  max-width:15ch;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(32px,7.2vw,72px);
  line-height:1.04;
  letter-spacing:-.015em;
  text-wrap:balance;
  text-shadow:0 1px 0 rgba(244,248,234,.4);
}

.hero-band{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:62px;
  background:var(--honey);
  border-top:2px solid var(--ink);
  clip-path:polygon(0 46%,100% 0,100% 100%,0 100%);
}

/* ---------- 主体 ---------- */
.stage{
  max-width:1200px;
  margin:0 auto;
  padding:34px 18px 56px;
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
}

/* ---------- 侧栏 ---------- */
.rail{
  order:2;
  display:grid;
  gap:18px;
}

.rail-card{
  border:2px solid var(--ink);
  border-radius:var(--r);
  background:var(--card);
  padding:18px 20px 20px;
}

.rail-card--brand{
  background:var(--neon);
  transform:rotate(-1.4deg);
  padding-bottom:22px;
}

.rail-title{
  margin:0;
  font-family:var(--serif);
  font-weight:700;
  font-size:20px;
  line-height:1.25;
  letter-spacing:-.01em;
}

.rail-title > span{display:inline-flex;align-items:center;gap:10px}

.rail-dot{
  width:12px;
  height:12px;
  flex:0 0 auto;
  background:var(--honey);
  border:2px solid var(--ink);
  transform:rotate(45deg);
}

.rail-card--brand .rail-dot{background:var(--ink)}

.rail-squiggle{
  display:block;
  margin-top:14px;
  height:8px;
  background:
    repeating-linear-gradient(90deg,var(--ink) 0 8px,transparent 8px 16px) 0 50%/100% 2px no-repeat;
}

.rail-list{
  list-style:none;
  margin:12px 0 0;
  padding:0;
}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:9px 0;
  color:var(--ink);
  text-decoration:none;
  font-weight:500;
  border-bottom:1px dotted rgba(25,38,23,.35);
}

.rail-list li:last-child a{border-bottom:0}

.rail-list a:hover span,
.rail-list a:focus-visible span{
  background:linear-gradient(transparent 58%,var(--honey) 58%);
}

/* ---------- 正文 ---------- */
.sheet{
  order:1;
  min-width:0;
  background:var(--card);
  border:2px solid var(--ink);
  border-radius:var(--r);
  padding:6px 20px 26px;
}

.sheet-body section[id]{
  padding:26px 0;
  scroll-margin-top:96px;
}

.sheet-body section[id] + section[id]{
  border-top:2px dashed rgba(25,38,23,.3);
}

.sheet h2{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(23px,3.4vw,33px);
  line-height:1.18;
  letter-spacing:-.015em;
  margin:.3em 0 .55em;
}

.sheet h2 > span{display:inline}

.sheet h2 span::before{
  content:"";
  display:inline-block;
  width:12px;
  height:12px;
  margin-right:10px;
  vertical-align:middle;
  background:var(--neon);
  border:2px solid var(--ink);
  border-radius:50%;
}

.sheet h3{
  font-family:var(--serif);
  font-weight:700;
  font-size:20px;
  line-height:1.3;
  margin:1.3em 0 .4em;
}

.sheet h3 > span{display:inline}

.sheet h4{
  font-family:var(--sans);
  font-weight:700;
  font-size:17px;
  margin:1.1em 0 .3em;
}

.sheet p{
  margin:0 0 1em;
  line-height:1.85;
  max-width:64ch;
}

.sheet a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-decoration-color:var(--honey);
  text-underline-offset:3px;
}

.sheet strong{background:linear-gradient(transparent 60%,var(--honey) 60%)}

.sheet ul,
.sheet ol{
  margin:0 0 1.1em;
  padding-left:1.25em;
  line-height:1.8;
}

.sheet li{margin:.25em 0}

.sheet ul li::marker{color:#3f6b32}

.sheet blockquote{
  margin:1.3em 0;
  padding:14px 18px;
  background:var(--soft);
  border-left:6px solid var(--neon);
  border-radius:0 18px 18px 0;
}

.sheet blockquote p:last-child{margin-bottom:0}

.sheet img{
  display:block;
  height:auto;
  border:2px solid var(--ink);
  border-radius:18px;
  margin:1em 0;
}

.sheet table{
  width:100%;
  border-collapse:collapse;
  margin:1em 0;
  font-size:16px;
}

.sheet th,
.sheet td{
  border:2px dashed rgba(25,38,23,.35);
  padding:10px 12px;
  text-align:left;
  vertical-align:top;
}

.sheet th{background:var(--soft)}

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

/* ---------- 页脚 ---------- */
.foot{
  background:var(--ink);
  color:#eef6e4;
  border-top:6px solid var(--honey);
  padding:32px max(18px,calc((100% - 1164px)/2)) 26px;
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.foot p{margin:0}

.foot-brand{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(21px,4vw,26px);
  line-height:1.2;
  color:var(--neon);
}

.foot-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0 4px;
  font-size:16px;
}

.foot-links a{
  display:inline-block;
  padding:8px 4px;
  min-height:42px;
  color:#eef6e4;
  text-decoration:none;
  border-bottom:2px dotted rgba(135,255,113,.55);
}

.foot-links a:hover,
.foot-links a:focus-visible{
  color:var(--ink);
  background:var(--neon);
  border-radius:8px;
}

.foot-links .dot{opacity:.5}

.foot-note{
  display:block;
  font-size:15px;
  opacity:.75;
  padding-top:6px;
}

/* ---------- 动效 ---------- */
.js [data-reveal]{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .6s ease,transform .65s cubic-bezier(.2,.72,.28,1);
  transition-delay:calc(var(--i,0) * 60ms);
}

.js [data-reveal].is-in{
  opacity:1;
  transform:none;
}

/* ---------- 响应式 ---------- */
@media (min-width:640px){
  .hero-title{text-shadow:none}
  .foot{grid-template-columns:1fr 1fr;gap:12px 30px}
  .foot-brand{align-self:start}
  .foot-note{grid-column:1 / -1}
  .hero-shape{width:200px;height:200px;right:6%;top:36px}
}

@media (min-width:861px){
  .masthead{padding:22px 24px 0}
  .dock{border-radius:999px}
  .dock > summary{display:none}
  .dock-menu{
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:center;
    gap:4px;
    padding:8px 12px;
  }
  .dock-menu a{
    min-height:40px;
    padding:8px 14px;
    border-bottom:0;
    border-radius:999px;
    font-size:16px;
  }
  .dock-menu a:hover,
  .dock-menu a:focus-visible{background:var(--ink);color:var(--neon)}

  .stage{
    grid-template-columns:286px minmax(0,1fr);
    gap:34px;
    align-items:start;
    padding-top:44px;
  }
  .rail{
    order:0;
    position:sticky;
    top:92px;
  }
  .sheet{order:0;padding:10px 30px 34px}
  .hero-inner{padding:44px 24px 104px}
  .hero-band{height:78px}
}

@media (min-width:1040px){
  .sheet{padding:14px 40px 40px}
  .sheet p{font-size:17.5px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js [data-reveal]{opacity:1;transform:none;transition:none}
  .rail-card--brand{transform:none}
}

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