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

:root{
  --green:#87ff71;
  --yellow:#ffce5c;
  --ink:#192617;
  --cream:#f6f8ea;
  --paper:#fefff8;
  --moss:#2f6b33;
  --r:18px;
}

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

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

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Noto Sans Thai',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.7;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{line-height:1.25;margin:0 0 .55em;font-weight:700}
p{margin:0 0 1em}

article[id]{scroll-margin-top:96px}

/* ---------- 头部 ---------- */
.top{
  background-color:var(--ink);
  background-image:radial-gradient(rgba(135,255,113,.3) 1.3px,transparent 1.4px);
  background-size:20px 20px;
  color:var(--cream);
  padding:12px clamp(14px,3vw,34px) 12px;
  border-bottom:5px dashed var(--yellow);
}

.brandrow{display:flex;align-items:center}

.brand{
  display:inline-flex;
  align-items:center;
  gap:11px;
  min-height:46px;
  text-decoration:none;
  color:var(--green);
  font-size:22px;
  font-weight:700;
  letter-spacing:.05em;
}

.brand-mark{
  width:32px;height:32px;
  display:grid;place-items:center;
  background:var(--yellow);
  color:var(--ink);
  border-radius:7px;
  font-size:15px;
  font-weight:700;
  transform:rotate(11deg);
}

.brand-img{width:40px;height:40px;border-radius:9px;object-fit:cover;background:var(--yellow)}

.menurrow{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 16px;
  margin-top:8px;
}

.menu p{
  display:flex;
  flex-wrap:wrap;
  gap:6px 8px;
  margin:0;
}

.menu a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:7px 13px;
  font-size:16px;
  font-weight:500;
  text-decoration:none;
  color:var(--cream);
  border:2px dashed rgba(135,255,113,.45);
  border-radius:11px;
  transition:transform .18s ease,background .18s ease,color .18s ease;
}

.menu a i{
  width:9px;height:9px;flex:none;
  background:var(--green);
  display:block;
}

.menu a:nth-child(2n) i{background:var(--yellow);clip-path:polygon(50% 0,100% 100%,0 100%)}
.menu a:nth-child(3n) i{border-radius:50%;background:var(--green)}
.menu a:nth-child(4n) i{background:transparent;border:2px solid var(--yellow);border-radius:50%}

.menu a:hover,.menu a:focus-visible{
  background:var(--green);
  color:var(--ink);
  transform:rotate(-1.6deg);
}

.find{
  display:flex;
  gap:6px;
  padding:5px;
  background:var(--cream);
  border-radius:999px;
  border:2px solid var(--green);
}

.find-in{
  width:132px;
  min-height:40px;
  padding:0 12px;
  border:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:16px;
  border-radius:999px;
}

.find-in:focus-visible{outline:2px solid var(--yellow);outline-offset:1px}

.find-btn{
  min-height:40px;
  padding:0 15px;
  border:0;
  border-radius:999px;
  background:var(--ink);
  color:var(--green);
  font:inherit;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

.find-btn:hover{background:var(--moss);color:var(--yellow)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  align-items:center;
  gap:clamp(14px,3vw,34px);
  min-height:45vh;
  padding:clamp(22px,4vw,44px) clamp(14px,4vw,40px) clamp(30px,5vw,52px);
  background:var(--ink);
  color:var(--cream);
}

.hero-shapes{position:absolute;inset:-40px 0 -40px 0;pointer-events:none}
.sh{position:absolute;display:block;will-change:transform}

.sh1{
  width:190px;height:190px;top:-40px;left:-52px;
  background:var(--green);opacity:.22;
  clip-path:polygon(50% 0,100% 100%,0 100%);
}
.sh2{
  width:96px;height:96px;right:5%;bottom:6%;
  background:var(--yellow);border-radius:50%;
  mix-blend-mode:screen;opacity:.55;
}
.sh3{
  width:126px;height:126px;top:6%;right:32%;
  border:7px dotted var(--green);border-radius:50%;opacity:.42;
}
.sh4{
  width:64px;height:64px;left:46%;bottom:2%;
  background:var(--yellow);opacity:.35;
  clip-path:polygon(50% 0,100% 100%,0 100%);
}
.sh5{
  width:44px;height:44px;right:22%;top:4%;
  background:var(--green);opacity:.5;
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
}

.hero-txt{position:relative;z-index:2}

.hero h1{
  display:inline-block;
  margin:0 0 20px;
  padding:.13em .3em;
  font-size:clamp(26px,5.4vw,52px);
  line-height:1.2;
  color:var(--ink);
  background:var(--green);
  border-radius:7px;
  transform:rotate(-1.3deg);
  box-shadow:9px 9px 0 rgba(255,206,92,.85);
}

.hero-lede{
  max-width:46ch;
  margin:0;
  font-size:17px;
  color:#e4f2da;
}

.hero-pics{
  position:relative;
  z-index:2;
  min-height:220px;
  height:100%;
}

.pic{
  position:absolute;
  overflow:hidden;
  border-radius:var(--r);
}

.pic img{width:100%;height:100%;object-fit:cover}

.pic-a{
  left:0;top:0;
  width:72%;height:100%;
  background:var(--yellow);
  transform:rotate(-4deg);
  clip-path:polygon(0 0,100% 5%,95% 100%,3% 96%);
}

.pic-b{
  right:0;bottom:-8%;
  width:56%;height:80%;
  background:var(--green);
  transform:rotate(6deg);
  clip-path:polygon(5% 2%,100% 0,96% 97%,0 92%);
}

.pic.is-empty{
  background-image:repeating-linear-gradient(45deg,rgba(25,38,23,.22) 0 9px,transparent 9px 20px);
}

/* ---------- 主区 ---------- */
.wrap{
  max-width:1160px;
  margin:0 auto;
  padding:clamp(22px,4vw,44px) clamp(14px,4vw,28px) 56px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 266px;
  gap:clamp(18px,3vw,32px);
  align-items:start;
}

.prose{
  display:block;
  background:var(--paper);
  border-radius:var(--r);
  padding:clamp(18px,3vw,38px);
  box-shadow:10px 10px 0 rgba(25,38,23,.09);
  overflow-wrap:break-word;
}

.prose article{
  padding-bottom:28px;
  margin-bottom:28px;
  border-bottom:3px dotted rgba(25,38,23,.22);
}

.prose article:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}

.prose h2{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:clamp(22px,3.2vw,30px);
  margin:0 0 14px;
}

.prose h2::before{
  content:'';
  flex:none;
  width:14px;height:14px;
  margin-top:.55em;
  background:var(--yellow);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-9deg);
}

.prose h2 span{
  background:linear-gradient(transparent 62%,var(--green) 62%);
  padding:0 .1em;
}

.prose h3{font-size:clamp(19px,2.4vw,23px);margin:1.1em 0 .5em}
.prose h3 span{background:var(--yellow);padding:0 .2em;border-radius:5px}

.prose ul,.prose ol{padding-left:1.25em;margin:0 0 1em}
.prose li{margin:.35em 0}
.prose li::marker{color:var(--moss)}

.prose strong{background:rgba(255,206,92,.62);padding:0 .12em;border-radius:3px}

.prose a{color:var(--moss);text-decoration:underline dotted;text-underline-offset:3px}
.prose a:hover{background:var(--green)}

.prose blockquote{
  margin:1em 0;
  padding:12px 16px;
  background:rgba(135,255,113,.26);
  border-left:6px solid var(--ink);
  border-radius:0 12px 12px 0;
}

.prose blockquote p:last-child{margin:0}

.prose img{border-radius:12px;margin:1em 0}

.prose table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 1em}
.prose th,.prose td{border:1px dotted rgba(25,38,23,.3);padding:8px 10px;text-align:left}
.prose th{background:rgba(135,255,113,.28)}

/* ---------- 通用内页（兜底版式） ---------- */
.page-head{
  margin:0 0 24px;
  padding-bottom:16px;
  border-bottom:3px dotted rgba(25,38,23,.22);
}

.page-head h1{
  display:inline-block;
  margin:0;
  padding:.14em .32em;
  font-size:clamp(24px,4.4vw,40px);
  line-height:1.22;
  color:var(--ink);
  background:var(--green);
  border-radius:8px;
  transform:rotate(-1deg);
  box-shadow:7px 7px 0 rgba(255,206,92,.85);
}

.page-head .shot{margin:18px 0 0}
.page-head .shot img{border-radius:14px;clip-path:polygon(0 0,100% 2%,97% 100%,2% 97%)}

.stamp{margin:14px 0 0;font-size:16px;color:var(--moss)}

.stamp time{
  display:inline-block;
  padding:1px 9px;
  background:var(--yellow);
  border-radius:7px;
  font-weight:500;
  font-variant-numeric:tabular-nums;
}

/* ---------- 侧栏 ---------- */
.side{
  position:sticky;
  top:16px;
  background:var(--yellow);
  border-radius:var(--r);
  padding:16px;
  transform:rotate(.7deg);
  box-shadow:8px 8px 0 var(--ink);
}

.side-h{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:17px;
  margin:0 0 12px;
}

.side-h span{background:var(--ink);color:var(--yellow);padding:3px 9px;border-radius:7px}

.jump{list-style:none;margin:0;padding:0;display:grid;gap:6px}

.jump a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:5px 9px;
  border-radius:11px;
  background:rgba(254,255,248,.6);
  text-decoration:none;
  font-size:16px;
  font-weight:500;
  transition:transform .16s ease,background .16s ease,color .16s ease;
}

.jump a b{
  font-size:13px;
  font-weight:700;
  opacity:.55;
  font-variant-numeric:tabular-nums;
}

.jump a:hover,.jump a:focus-visible{
  background:var(--ink);
  color:var(--yellow);
  transform:translateX(4px);
}

.side-shape{
  display:block;
  height:52px;
  margin-top:14px;
  background-image:radial-gradient(var(--ink) 1.6px,transparent 1.7px);
  background-size:11px 11px;
  opacity:.35;
}

/* ---------- 页脚 ---------- */
.foot{
  background-color:var(--ink);
  background-image:repeating-linear-gradient(135deg,rgba(135,255,113,.08) 0 12px,transparent 12px 26px);
  color:var(--cream);
  border-top:7px solid var(--green);
  padding:clamp(26px,4vw,46px) clamp(14px,4vw,34px) 18px;
}

.foot article{max-width:1160px;margin:0 auto}

.f-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,350px);
  gap:20px;
  align-items:center;
  padding-bottom:26px;
  border-bottom:2px dashed rgba(135,255,113,.35);
}

.f-h{font-size:24px;margin:0 0 8px;color:var(--yellow)}
.f-h span{border-bottom:3px dotted var(--green);padding-bottom:2px}
.f-desc{margin:0;font-size:16px;color:#cfe0c6;max-width:52ch}

.f-form{
  display:flex;
  gap:6px;
  padding:6px;
  border:2px dashed rgba(255,206,92,.65);
  border-radius:999px;
  background:rgba(255,255,255,.07);
}

.f-form input{
  flex:1;
  min-width:0;
  min-height:44px;
  padding:0 13px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--cream);
  font:inherit;
  font-size:16px;
}

.f-form input:focus-visible{outline:2px solid var(--green);outline-offset:1px}

.f-form button{
  min-height:44px;
  padding:0 18px;
  border:0;
  border-radius:999px;
  background:var(--green);
  color:var(--ink);
  font:inherit;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

.f-form button:hover{background:var(--yellow)}

.f-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  padding:26px 0;
}

.f-cols h3{font-size:16px;letter-spacing:.08em;margin:0 0 10px;color:var(--green)}
.f-cols h3 span{border-bottom:2px dotted var(--yellow);padding-bottom:3px}
.f-cols p{margin:0}

.f-nav{display:grid;gap:2px}
.f-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:#dcebd3;
  text-decoration:none;
}
.f-nav a:hover{color:var(--yellow);text-decoration:underline dotted}

.f-host{font-size:16px;color:#dcebd3;word-break:break-word}

.f-bottom{
  padding-top:14px;
  border-top:2px dotted rgba(135,255,113,.3);
}

.copy{margin:0;font-size:16px;color:#a9bda2}

/* ---------- 回到顶部 ---------- */
.to-top{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:40;
  min-height:46px;
  padding:0 14px;
  border:3px solid var(--ink);
  border-radius:13px;
  background:var(--green);
  color:var(--ink);
  font:inherit;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transform:rotate(-3deg);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}

.to-top.on{opacity:1;pointer-events:auto}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .side{position:static;order:2;transform:none;box-shadow:6px 6px 0 var(--ink)}
  .hero{grid-template-columns:minmax(0,1fr)}
  .hero-pics{min-height:180px;margin-top:16px}
  .f-top{grid-template-columns:minmax(0,1fr)}
  .f-cols{grid-template-columns:minmax(0,1fr);gap:14px;padding:20px 0}
  .find-in{width:100%}
  .find{flex:1;min-width:190px}
  .menu a{font-size:16px}
}

@media (max-width:430px){
  .brand{font-size:20px}
  .menu a{padding:7px 10px;gap:6px}
  .hero h1{box-shadow:6px 6px 0 rgba(255,206,92,.85)}
  .prose{box-shadow:6px 6px 0 rgba(25,38,23,.09)}
  .wrap{padding-bottom:44px}
  .page-head h1{box-shadow:5px 5px 0 rgba(255,206,92,.85)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important;animation:none !important}
  .sh{transform:none !important}
}

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