@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:#122019;
  --neon:#87ff71;
  --mustard:#ffce5c;
  --paper:#eef6e7;
  --muted:#a9c0a5;
  --line:#37503d;
  --max:1120px;
  --pad:clamp(1rem,4vw,2.5rem);
  --head:10.5rem;
  --display:"Cormorant Garamond","Libre Baskerville",Georgia,"Songti SC",serif;
  --body:"Libre Baskerville",Georgia,"Songti SC","Noto Serif SC",serif;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  overflow-x:hidden;
  background-color:var(--ink);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(135,255,113,.16) 1px, transparent 1.4px),
    repeating-linear-gradient(115deg, rgba(255,206,92,.05) 0 2px, transparent 2px 26px);
  background-size:24px 24px, auto;
  color:var(--paper);
  font-family:var(--body);
  font-size:17px;
  line-height:1.78;
  letter-spacing:.005em;
}

:focus-visible{
  outline:3px solid var(--mustard);
  outline-offset:3px;
}

/* ---------- 顶部两行：品牌行 / 菜单行 ---------- */

.top{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--ink);
  border-bottom:3px dotted var(--line);
  padding:.55rem var(--pad) .1rem;
}

.brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.7rem;
  max-width:var(--max);
  margin:0 auto;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  min-height:44px;
  color:var(--neon);
  text-decoration:none;
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(1.45rem,5.2vw,2.1rem);
  line-height:1;
  letter-spacing:.05em;
  transform:rotate(-1.4deg);
  transition:transform .25s ease, color .25s ease;
}
.brand img{
  display:block;
  width:36px;
  height:36px;
  object-fit:contain;
  border:2px solid var(--mustard);
  background:var(--ink2);
}
.brand:hover{transform:rotate(-1.4deg) scale(1.04);color:var(--mustard)}

.find{
  display:flex;
  flex:0 1 13rem;
  min-width:8.5rem;
  gap:.3rem;
}
.find input{
  flex:1 1 auto;
  min-width:0;
  min-height:42px;
  padding:.3rem .55rem;
  border:2px solid var(--line);
  border-radius:0;
  background:var(--ink2);
  color:var(--paper);
  font-family:var(--body);
  font-size:.95rem;
}
.find input::placeholder{color:var(--muted)}
.find button{
  min-height:42px;
  min-width:42px;
  padding:.3rem .6rem;
  border:2px solid var(--mustard);
  border-radius:0;
  background:var(--mustard);
  color:var(--ink);
  font-family:var(--body);
  font-size:.95rem;
  font-weight:700;
  cursor:pointer;
  transition:transform .15s ease, background .2s ease;
}
.find button:hover{background:var(--neon);border-color:var(--neon);transform:translateY(-2px)}

nav{
  max-width:var(--max);
  margin:.3rem auto 0;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
}
nav p{
  display:flex;
  align-items:center;
  gap:.15rem;
  margin:0 0 .35rem;
  padding:0 0 .15rem;
  min-width:max-content;
}
nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:.45rem .62rem;
  color:var(--paper);
  text-decoration:none;
  font-size:.9rem;
  line-height:1.3;
  white-space:nowrap;
  border-bottom:3px solid transparent;
  transition:color .2s ease, border-color .2s ease, transform .2s ease;
  animation:rise .5s both;
}
nav a:nth-child(1){animation-delay:.03s}
nav a:nth-child(2){animation-delay:.08s}
nav a:nth-child(3){animation-delay:.13s}
nav a:nth-child(4){animation-delay:.18s}
nav a:nth-child(5){animation-delay:.23s}
nav a:nth-child(6){animation-delay:.28s}
nav a:nth-child(7){animation-delay:.33s}
nav a:hover,
nav a[aria-current="true"]{
  color:var(--neon);
  border-bottom-color:var(--mustard);
  transform:translateY(-2px);
}

/* ---------- 首屏 ---------- */

.hero{
  position:relative;
  max-width:var(--max);
  margin:0 auto;
  padding:clamp(1.6rem,6vw,3.4rem) var(--pad) 1.5rem;
  min-height:calc(100svh - var(--head));
  display:flex;
  flex-direction:column;
  gap:1rem;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  right:-70px;
  top:38%;
  width:190px;
  height:190px;
  border:12px solid rgba(255,206,92,.35);
  border-radius:50%;
  mix-blend-mode:screen;
  pointer-events:none;
}

.hero h1{
  position:relative;
  margin:0;
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(2.35rem,8.6vw,5.1rem);
  line-height:1.02;
  letter-spacing:-.01em;
  color:var(--neon);
  max-width:16ch;
  text-wrap:balance;
}

.lead{
  position:relative;
  margin:0;
  max-width:48ch;
  padding-left:.9rem;
  border-left:5px solid var(--mustard);
  color:var(--paper);
  font-size:1rem;
  line-height:1.8;
}

.badge{
  margin:0;
  align-self:flex-start;
  order:-1;
  padding:.32rem .7rem;
  background:var(--mustard);
  color:var(--ink);
  border:2px solid var(--ink);
  border-radius:0;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.06em;
  transform:rotate(-3deg);
  box-shadow:4px 4px 0 rgba(135,255,113,.8);
}

.hero-art{
  position:relative;
  margin-top:auto;
  min-height:34vh;
  display:flex;
  align-items:flex-end;
}

.hero-img{
  display:block;
  width:100%;
  height:clamp(170px,34vh,360px);
  object-fit:cover;
  border:3px solid var(--neon);
  clip-path:polygon(0 0,100% 2%,99.2% 100%,.8% 98%);
}

.shape{
  position:absolute;
  display:block;
  pointer-events:none;
}
.tri{
  width:130px;
  height:118px;
  left:1%;
  bottom:0;
  background:var(--mustard);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-9deg);
}
.dot{
  width:88px;
  height:88px;
  right:9%;
  bottom:26%;
  border-radius:50%;
  background:var(--neon);
  mix-blend-mode:screen;
}
.sq{
  width:72px;
  height:72px;
  right:2%;
  bottom:0;
  border:7px dotted var(--mustard);
  transform:rotate(13deg);
}

/* ---------- 正文 + 右侧 aside ---------- */

.board{
  max-width:var(--max);
  margin:0 auto;
  padding:2.2rem var(--pad) 3rem;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:2.2rem;
  border-top:4px solid var(--mustard);
}

.prose{min-width:0}
.prose>*:first-child{margin-top:0}

.prose article{
  margin:0 0 2rem;
  padding:0 0 1.8rem;
  border-bottom:3px solid var(--mustard);
  scroll-margin-top:calc(var(--head) + .75rem);
}
.prose article:last-child{border-bottom:0;padding-bottom:.6rem}

.prose h2{
  margin:0 0 .55rem;
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(1.6rem,4.6vw,2.15rem);
  line-height:1.18;
  color:var(--neon);
  transform:rotate(-.55deg);
  transform-origin:left center;
}

.prose h3{
  margin:1.4rem 0 .5rem;
  font-family:var(--display);
  font-size:1.3rem;
  line-height:1.3;
  color:var(--mustard);
}

.prose p{margin:0 0 1rem}

.prose .subtitle,
.prose .subhead,
.prose .desc,
.prose .lead{
  color:var(--muted);
  font-size:.95rem;
  line-height:1.7;
}

.prose a{
  color:var(--neon);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.prose ul,.prose ol{padding-left:1.25rem;margin:0 0 1rem}
.prose li{margin:.3rem 0}

.prose blockquote{
  margin:1.2rem 0;
  padding:.7rem 1rem;
  border-left:7px solid var(--mustard);
  background:var(--ink2);
  color:var(--paper);
}
.prose blockquote p:last-child{margin-bottom:0}

.prose strong{color:var(--mustard)}

.prose img{
  max-width:100%;
  height:auto;
  display:block;
  margin:1.1rem 0;
}

.prose article.hit{animation:pulse 1.1s ease}

.rail{
  align-self:start;
  padding:1.1rem 1rem 1.2rem;
  border:2px dashed var(--mustard);
  background:var(--ink2);
  transform:rotate(1deg);
}
.rail h2{
  margin:0;
  font-family:var(--display);
  font-size:1.55rem;
  line-height:1.2;
  color:var(--neon);
}
.rail .subtitle{
  margin:.15rem 0 .9rem;
  padding-bottom:.6rem;
  border-bottom:2px dotted var(--line);
  color:var(--mustard);
  font-size:.85rem;
  line-height:1.6;
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:rail;
  display:grid;
  gap:.1rem;
}
.rail-list li{counter-increment:rail;animation:rise .5s both}
.rail-list li:nth-child(1){animation-delay:.05s}
.rail-list li:nth-child(2){animation-delay:.1s}
.rail-list li:nth-child(3){animation-delay:.15s}
.rail-list li:nth-child(4){animation-delay:.2s}
.rail-list li:nth-child(5){animation-delay:.25s}
.rail-list li:nth-child(6){animation-delay:.3s}
.rail-list li:nth-child(7){animation-delay:.35s}
.rail-list a{
  display:flex;
  align-items:baseline;
  gap:.5rem;
  min-height:40px;
  padding:.5rem .15rem;
  border-bottom:1px solid var(--line);
  color:var(--paper);
  font-size:.92rem;
  line-height:1.4;
  text-decoration:none;
  transition:color .2s ease, padding-left .2s ease;
}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-family:var(--display);
  font-size:.9rem;
  color:var(--mustard);
}
.rail-list a:hover{color:var(--neon);padding-left:.45rem}

/* ---------- 页脚 ---------- */

footer{
  max-width:var(--max);
  margin:0 auto;
  padding:1.5rem var(--pad) 2.6rem;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.6rem 1.2rem;
  border-top:3px dotted var(--line);
  font-size:.9rem;
}
footer p{
  margin:0;
  color:var(--muted);
  letter-spacing:.04em;
}
footer small{
  display:flex;
  flex-wrap:wrap;
  gap:.3rem 1rem;
  font-size:.9rem;
}
footer a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--neon);
  text-decoration:none;
  border-bottom:2px dotted rgba(135,255,113,.6);
  transition:color .2s ease, border-color .2s ease;
}
footer a:hover{color:var(--mustard);border-color:var(--mustard)}

/* ---------- 动效 ---------- */

@keyframes rise{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes pulse{
  0%{background:rgba(135,255,113,.18)}
  100%{background:transparent}
}

/* ---------- 断点 ---------- */

@media (max-width:640px){
  :root{--head:11.5rem}
  body{font-size:16.5px}
  .find{flex:0 1 9.5rem;min-width:7.5rem}
  .hero{min-height:auto;padding-bottom:1.2rem}
  .hero::before{display:none}
  .hero-art{min-height:30vh}
  .badge{transform:rotate(-2deg)}
  footer{justify-content:flex-start}
}

@media (min-width:900px){
  nav p{gap:.2rem}
  nav a{font-size:.95rem;padding:.5rem .78rem}
  .board{
    grid-template-columns:minmax(0,1fr) 17rem;
    gap:2.6rem;
    align-items:start;
  }
  .rail{position:sticky;top:calc(var(--head) + .5rem)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
  }
}

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