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

:root{
  --ink:#192617;
  --ink2:#20301c;
  --ink3:#2a3d25;
  --lime:#87ff71;
  --sun:#ffce5c;
  --cream:#f3f7ec;
  --muted:#b7c8ac;
  --r:28px;
  --edge:clamp(1rem,4vw,3rem);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  overflow-x:hidden;
  background:var(--ink);
  color:var(--cream);
  font-family:'Libre Baskerville',Georgia,'Songti SC','Noto Serif SC',serif;
  font-size:17px;
  line-height:1.75;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(var(--lime) 1px,transparent 1.6px);
  background-size:22px 22px;
  opacity:.10;
}
h1,h2,h3{font-family:'Cormorant Garamond','Libre Baskerville',Georgia,'Songti SC',serif;font-weight:700;letter-spacing:.01em}
p{margin:0 0 1rem}
a{color:var(--lime)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* 顶栏：品牌独占一行，菜单是第二行药丸胶囊 */
.mast{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(25,38,23,.95);
  border-bottom:2px dashed rgba(135,255,113,.5);
  backdrop-filter:blur(8px);
}
.mast-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.55rem var(--edge);
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  min-height:44px;
  text-decoration:none;
  color:var(--cream);
  font-family:'Cormorant Garamond','Songti SC',serif;
  font-size:1.15rem;
  font-weight:700;
  letter-spacing:.05em;
}
.mark{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid var(--lime)}
.mark-dot{
  display:inline-block;
  background:conic-gradient(from 45deg,var(--lime),var(--sun),var(--lime));
  clip-path:polygon(50% 0,100% 38%,82% 100%,18% 100%,0 38%);
  border:0;
  border-radius:0;
}
.contact-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:.35rem 1.05rem;
  border-radius:999px;
  background:var(--sun);
  color:var(--ink);
  border:2px solid var(--ink);
  box-shadow:3px 3px 0 var(--lime);
  font-weight:700;
  font-size:.95rem;
  text-decoration:none;
  transition:transform .18s ease,box-shadow .18s ease;
}
.contact-link:hover,.contact-link:focus-visible{transform:translate(-2px,-2px) rotate(-2deg);box-shadow:6px 6px 0 var(--lime)}

.pillbar{
  padding:0 var(--edge) .6rem;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
.pillbar::-webkit-scrollbar{display:none}
.pillbar ol{
  display:flex;
  gap:.45rem;
  margin:0;
  padding:0;
  list-style:none;
  min-width:max-content;
}
.pillbar li{animation:pop .45s backwards both}
.pillbar li:nth-child(1){animation-delay:.02s}
.pillbar li:nth-child(2){animation-delay:.07s}
.pillbar li:nth-child(3){animation-delay:.12s}
.pillbar li:nth-child(4){animation-delay:.17s}
.pillbar li:nth-child(5){animation-delay:.22s}
.pillbar li:nth-child(6){animation-delay:.27s}
.pillbar li:nth-child(7){animation-delay:.32s}
.pillbar a{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  min-height:44px;
  padding:.3rem .95rem;
  border-radius:999px;
  border:2px solid var(--lime);
  color:var(--cream);
  text-decoration:none;
  font-size:.95rem;
  line-height:1.5;
  white-space:nowrap;
  transition:transform .16s ease,background .16s ease,color .16s ease;
}
.pillbar a:hover,.pillbar a:focus-visible{background:var(--lime);color:var(--ink);transform:rotate(-2deg) scale(1.03)}
.pin{font-style:normal;font-family:'Cormorant Garamond',serif;font-weight:700;color:var(--sun)}
.pillbar a:hover .pin,.pillbar a:focus-visible .pin{color:var(--ink)}
@keyframes pop{from{opacity:0;transform:translateY(-9px) rotate(-4deg)}to{opacity:1;transform:none}}

main{position:relative;z-index:1}

/* 首屏 */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:1.4rem;
  padding:clamp(1.8rem,6vh,4.5rem) var(--edge) clamp(2rem,6vh,3.5rem);
  text-align:right;
  overflow:hidden;
  border-bottom:2px dashed rgba(255,206,92,.45);
}
.hero-bg{
  position:absolute;
  right:-.06em;
  top:46%;
  transform:translateY(-50%) rotate(-3deg);
  font-family:'Cormorant Garamond','Songti SC',serif;
  font-size:clamp(7rem,30vw,19rem);
  line-height:.8;
  color:transparent;
  -webkit-text-stroke:2px rgba(135,255,113,.45);
  pointer-events:none;
  user-select:none;
  z-index:0;
}
.hero-inner{position:relative;z-index:2;margin-left:auto;max-width:46rem}
.kicker{
  display:inline-block;
  margin:0 0 .8rem;
  padding:.2rem .9rem;
  border-radius:999px;
  background:var(--lime);
  color:var(--ink);
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.06em;
}
.hero h1{
  font-size:clamp(2.05rem,8.4vw,4.5rem);
  line-height:1.12;
  margin:0 0 .8rem;
  word-break:break-word;
  text-shadow:4px 4px 0 rgba(135,255,113,.22);
}
.lede{
  margin-left:auto;
  max-width:34rem;
  font-size:clamp(1rem,2.2vw,1.12rem);
  color:var(--muted);
}
.hero-cta{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:flex-end;margin-top:1rem}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:.45rem 1.3rem;
  border-radius:999px;
  background:var(--lime);
  color:var(--ink);
  border:2px solid var(--ink);
  box-shadow:4px 4px 0 var(--sun);
  font-family:inherit;
  font-size:1rem;
  font-weight:700;
  text-decoration:none;
  transition:transform .18s ease,box-shadow .18s ease;
}
.btn-ghost{background:transparent;color:var(--cream);border-color:var(--lime);box-shadow:4px 4px 0 rgba(135,255,113,.35)}
.btn:hover,.btn:focus-visible{transform:translate(-3px,-3px) rotate(-1.5deg);box-shadow:8px 8px 0 var(--sun)}
.hero-fig{position:relative;z-index:2;margin:0;display:flex;flex-direction:column;align-items:flex-end;gap:.45rem}
.hero-img,.hero-fig img{
  width:100%;
  max-width:38rem;
  height:auto;
  border-radius:var(--r);
  border:3px solid var(--lime);
  box-shadow:10px 10px 0 rgba(255,206,92,.5);
  transform:rotate(1deg);
}
.hero-shape{
  width:100%;
  max-width:38rem;
  height:min(28vh,210px);
  border-radius:var(--r);
  background:repeating-linear-gradient(45deg,var(--sun) 0 14px,var(--ink3) 14px 28px);
  clip-path:polygon(0 12%,22% 0,100% 20%,92% 100%,8% 88%);
}
.hero-fig figcaption{font-size:.85rem;color:var(--muted)}

/* 侧栏 + 正文 */
.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1.5rem;
  padding:clamp(1.6rem,5vw,3rem) var(--edge);
}
.rail{
  position:relative;
  padding:1.1rem 1.1rem 1.3rem;
  border:2px dashed var(--lime);
  border-radius:var(--r);
  background:var(--ink2);
}
.rail::after{
  content:"";
  position:absolute;
  top:-11px;
  right:18px;
  width:26px;
  height:26px;
  background:var(--sun);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(12deg);
}
.rail h2{font-size:1.25rem;margin:0 0 .5rem;letter-spacing:.04em}
.rail hr{border:0;border-top:2px dotted var(--sun);margin:0 0 .8rem}
.rail-list{list-style:none;margin:0 0 .9rem;padding:0;display:flex;flex-direction:column}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.15rem .3rem;
  border-bottom:1px solid rgba(135,255,113,.18);
  color:var(--cream);
  font-size:.98rem;
  text-decoration:none;
  transition:padding .16s ease,color .16s ease;
}
.rail-list a:hover,.rail-list a:focus-visible{color:var(--lime);padding-left:.7rem}
.rail-note{margin:0;font-size:.85rem;line-height:1.6;color:var(--muted)}

.flow{min-width:0}
.flow > div{
  position:relative;
  margin:0 0 1.5rem;
  padding:clamp(1.2rem,3.4vw,2.2rem);
  border:2px solid #33482c;
  border-bottom:8px solid var(--lime);
  border-radius:var(--r);
  background:var(--ink2);
  scroll-margin-top:7.5rem;
}
.flow > div:nth-child(even){border-bottom-color:var(--sun);transform:rotate(-.35deg)}
.flow > div:nth-child(odd){transform:rotate(.25deg)}
.flow h2{
  display:flex;
  align-items:baseline;
  gap:.6rem;
  margin:0 0 .5rem;
  font-size:clamp(1.5rem,4vw,2.1rem);
  line-height:1.25;
}
.flow h2::before{
  content:"";
  flex:0 0 auto;
  width:.7em;
  height:.7em;
  background:var(--sun);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-8deg);
}
.flow h3{margin:1.4rem 0 .4rem;font-size:1.2rem;color:var(--lime)}
.flow hr{border:0;border-top:2px dashed rgba(255,206,92,.6);margin:.2rem 0 1rem}
.flow a{color:var(--lime);text-decoration:underline dotted;text-underline-offset:4px}
.flow a:hover{background:var(--lime);color:var(--ink);text-decoration:none}
.flow ul,.flow ol{padding-left:1.35rem}
.flow li{margin:.3rem 0}
.flow blockquote{
  margin:1rem 0;
  padding:.85rem 1.1rem;
  border-left:6px solid var(--sun);
  border-radius:0 var(--r) var(--r) 0;
  background:var(--ink3);
}
.flow figure{margin:1rem 0}
.flow img{max-width:100%;height:auto;border-radius:calc(var(--r) - 10px);border:2px solid var(--ink3)}
.flow table{width:100%;border-collapse:collapse;font-size:.95rem}
.flow th,.flow td{border-bottom:1px dotted rgba(135,255,113,.4);padding:.5rem .4rem;text-align:left}
main [id]{scroll-margin-top:7.5rem}

/* 页脚：三栏 + 底栏 */
.foot{
  position:relative;
  z-index:1;
  margin-top:1.5rem;
  padding:clamp(1.8rem,5vw,3rem) var(--edge) 1.2rem;
  background:var(--ink3);
  border-top:6px solid var(--lime);
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1.6rem;
}
.foot-block h2{font-size:1.2rem;margin:0 0 .6rem}
.foot-block p{font-size:.95rem;color:var(--muted)}
.foot-form form{display:flex;flex-wrap:wrap;gap:.5rem}
.foot-form input{
  flex:1 1 11rem;
  min-height:46px;
  padding:.45rem .95rem;
  border-radius:999px;
  border:2px solid var(--lime);
  background:var(--ink);
  color:var(--cream);
  font-family:inherit;
  font-size:1rem;
}
.foot-form button{
  min-height:46px;
  padding:.45rem 1.3rem;
  border-radius:999px;
  border:2px solid var(--ink);
  background:var(--sun);
  color:var(--ink);
  font-family:inherit;
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease;
}
.foot-form button:hover{transform:rotate(-2deg) scale(1.04)}
.foot-form .tiny{margin:.7rem 0 0;font-size:.8rem}
.foot-list{list-style:none;margin:0;padding:0;columns:2;column-gap:1rem}
.foot-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--cream);
  font-size:.95rem;
  text-decoration:none;
}
.foot-list a:hover{color:var(--lime)}
.foot-base{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem 1.4rem;
  justify-content:space-between;
  padding-top:.9rem;
  border-top:2px dotted rgba(135,255,113,.5);
}
.foot-base p{margin:0;font-size:.82rem;color:var(--muted)}

@media (min-width:820px){
  .hero{justify-content:center;padding-top:clamp(2.5rem,8vh,5rem)}
  .stage{grid-template-columns:255px minmax(0,1fr);gap:2rem;padding-top:3rem}
  .rail{position:sticky;top:8rem;align-self:start}
  .foot{grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}
  .flow > div{padding:2.2rem 2.4rem}
}
@media (min-width:1120px){
  .stage{grid-template-columns:290px minmax(0,1fr)}
  .hero-inner{max-width:52rem}
  .hero-bg{font-size:min(19rem,30vw)}
}
@media (max-width:560px){
  .hero-fig figcaption{text-align:right}
  .foot-list{columns:1}
  .hero-shape{height:150px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-delay:0ms!important;
    transition-duration:.001ms!important;
  }
  .flow > div,.hero-img,.hero-bg{transform:none}
}

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