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

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

body{
  margin:0;
  background:#fdf7ee;
  color:#000;
  font-family:"Noto Sans Thai","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  font-size:17px;
  line-height:1.65;
  font-weight:400;
}

img{max-width:100%;display:block}
a{color:inherit}

/* ---------- 顶部两行 ---------- */
.masthead{
  background:#fff;
  border-bottom:3px solid #000;
}

.ticker{
  margin:0;
  padding:8px 16px;
  background:#ff5252;
  color:#000;
  border-bottom:3px solid #000;
  text-align:center;
  font-size:16px;
  font-weight:700;
  letter-spacing:.14em;
}

.brandline{
  padding:14px 20px;
  border-bottom:3px solid #000;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  padding:4px 0;
  font-size:27px;
  font-weight:700;
  line-height:1.1;
  text-decoration:none;
  letter-spacing:-.01em;
}

.brand .mark{
  width:44px;
  height:44px;
  border:3px solid #000;
  border-radius:10px;
  box-shadow:4px 4px 0 #000;
  background:#3bb1ff;
  object-fit:cover;
}

.pillnav{
  padding:10px 20px 16px;
  overflow-x:auto;
  scrollbar-width:thin;
}

.pillnav p{
  margin:0;
  display:flex;
  gap:10px;
  width:max-content;
}

.pillnav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 18px;
  background:#fff;
  color:#000;
  border:3px solid #000;
  border-radius:999px;
  box-shadow:4px 4px 0 #000;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}

.pillnav a:hover{
  transform:translate(-2px,-2px);
  box-shadow:7px 7px 0 #000;
  background:#3bb1ff;
}

.pillnav a:active{
  transform:translate(2px,2px);
  box-shadow:1px 1px 0 #000;
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  min-height:70vh;
  padding:56px 20px 68px;
  background:#3bb1ff;
  border-bottom:3px solid #000;
  text-align:center;
}

.ghost{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:clamp(3.4rem,16vw,12.5rem);
  font-weight:700;
  line-height:1;
  white-space:nowrap;
  color:transparent;
  -webkit-text-stroke:3px rgba(0,0,0,.26);
  pointer-events:none;
  user-select:none;
}

.hero-title{
  position:relative;
  margin:0;
  max-width:20ch;
  font-size:clamp(2.3rem,8vw,5.2rem);
  line-height:1.06;
  font-weight:700;
  color:#fff;
  letter-spacing:-.01em;
  -webkit-text-stroke:2px #000;
  text-shadow:6px 6px 0 #000;
}

.hero-desc{
  position:relative;
  margin:0;
  max-width:48ch;
  padding:14px 20px;
  background:#fff;
  border:3px solid #000;
  border-radius:10px;
  box-shadow:6px 6px 0 #000;
  font-size:16px;
}

/* ---------- 主体两栏 ---------- */
.stage{
  max-width:1160px;
  margin:0 auto;
  padding:44px 20px 72px;
  display:grid;
  grid-template-columns:254px minmax(0,1fr);
  gap:30px;
  align-items:start;
}

.side{
  position:sticky;
  top:16px;
  padding:18px;
  background:#3bb1ff;
  border-radius:10px;
  box-shadow:6px 6px 0 #000;
}

.kick{
  display:inline-block;
  padding:3px 11px;
  background:#000;
  color:#fff;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.1em;
}

.side-title{
  margin:8px 0 14px;
  font-size:23px;
  line-height:1.2;
  font-weight:700;
}

.side-list{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:9px;
}

.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 13px;
  background:#fff;
  color:#000;
  border-radius:8px;
  box-shadow:3px 3px 0 #000;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}

.side-list a:hover{
  transform:translate(-2px,-2px);
  box-shadow:5px 5px 0 #000;
  background:#ff5252;
}

/* ---------- 正文 ---------- */
.prose{min-width:0}

.prose > div{
  margin:0 0 28px;
  padding:26px;
  background:#fff;
  border:3px solid #000;
  border-radius:10px;
  box-shadow:6px 6px 0 #000;
  scroll-margin-top:24px;
}

.prose h2{
  margin:18px 0 14px;
  font-size:clamp(1.55rem,4vw,2.1rem);
  line-height:1.2;
  font-weight:700;
  padding-bottom:10px;
  border-bottom:4px solid #000;
}

.prose h3{
  margin:22px 0 10px;
  font-size:1.3rem;
  line-height:1.3;
  font-weight:700;
}

.prose small{
  display:inline-block;
  margin:4px 0 0;
  padding:2px 10px;
  background:#ff5252;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.08em;
}

.prose p{margin:0 0 1em}
.prose p:last-child{margin-bottom:0}

.prose a{
  color:#000;
  font-weight:700;
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-decoration-color:#ff5252;
  text-underline-offset:3px;
}

.prose a:hover{background:#ff5252}

.prose ul,.prose ol{margin:0 0 1em;padding-left:1.35em}
.prose li{margin:.35em 0}

.prose blockquote{
  margin:0 0 1em;
  padding:14px 18px;
  background:#fdf7ee;
  border-left:9px solid #ff5252;
  border-radius:8px;
}

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

.prose img{
  height:auto;
  margin:0 0 1em;
  border:3px solid #000;
  border-radius:10px;
}

.prose figure{
  margin:0 0 1em;
  padding:12px;
  background:#fff;
  border:3px solid #000;
  border-radius:10px;
  box-shadow:4px 4px 0 #000;
}

.prose figure img{margin-bottom:8px;border:none}

.prose figcaption{
  font-size:15px;
  line-height:1.5;
}

.prose aside{
  margin:0 0 1em;
  padding:16px 18px;
  background:#3bb1ff;
  border-radius:10px;
}

.prose aside p:last-child{margin-bottom:0}

.prose code{
  padding:2px 6px;
  background:#000;
  color:#fff;
  border-radius:6px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.92em;
}

.prose pre{
  margin:0 0 1em;
  padding:16px;
  overflow-x:auto;
  background:#000;
  color:#fff;
  border-radius:10px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:15px;
  line-height:1.6;
}

.prose pre code{padding:0;background:none;font-size:inherit}

.prose table{
  width:100%;
  margin:0 0 1em;
  border-collapse:collapse;
  border:3px solid #000;
  border-radius:10px;
  overflow:hidden;
  font-size:16px;
}

.prose th,.prose td{
  padding:9px 12px;
  border:2px solid #000;
  text-align:left;
}

.prose th{background:#3bb1ff;font-weight:700}

.prose hr{
  border:none;
  border-top:4px solid #000;
  margin:24px 0;
}

/* ---------- 页脚 ---------- */
.foot{
  background:#000;
  color:#fff;
  padding:44px 20px 30px;
  text-align:center;
}

.cta{margin:0 0 26px}

.cta a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:0 36px;
  background:#ff5252;
  color:#000;
  border:3px solid #000;
  border-radius:999px;
  box-shadow:6px 6px 0 #fff;
  font-size:20px;
  font-weight:700;
  text-decoration:none;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}

.cta a:hover{
  transform:translate(-2px,-2px);
  box-shadow:8px 8px 0 #fff;
  background:#3bb1ff;
}

.cta a:active{
  transform:translate(2px,2px);
  box-shadow:1px 1px 0 #fff;
}

.copy{
  display:block;
  font-size:16px;
  line-height:1.6;
  letter-spacing:.04em;
}

/* ---------- 滚入动效 ---------- */
.reveal{
  opacity:0;
  transform:translateY(18px);
}

.reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.3,1);
}

/* ---------- 断点 ---------- */
@media (max-width:860px){
  .stage{
    grid-template-columns:minmax(0,1fr);
    padding:28px 16px 56px;
    gap:24px;
  }
  .side{position:static}
  .side-list{
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px;
  }
  .side-list a{flex:0 0 auto}
  .hero{min-height:62vh;padding:44px 16px 52px}
  .prose > div{padding:20px}
}

@media (max-width:420px){
  .brand{font-size:23px}
  .hero-title{text-shadow:4px 4px 0 #000;-webkit-text-stroke:1.6px #000}
  .hero-desc{padding:12px 15px}
  .cta a{padding:0 26px;font-size:18px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none}
  .pillnav a,.side-list a,.cta a{transition:none}
}

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