@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Patrick+Hand&display=swap');

:root{
  --mint:#b4fde1;
  --sky:#add8e6;
  --ink:#172620;
  --paper:#f2fbf6;
  --edge:3px;
  --r-big:24px;
  --r-mid:18px;
  --clay:inset -2px -2px 8px rgba(23,38,32,.14), inset 2px 2px 7px rgba(255,255,255,.75), 6px 7px 0 rgba(23,38,32,.16);
  --clay-sm:inset -2px -2px 6px rgba(23,38,32,.12), 3px 4px 0 rgba(23,38,32,.2);
}

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

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

body{
  margin:0;
  font-family:'Patrick Hand','Kalam',system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.7;
  letter-spacing:.015em;
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 6% -8%, var(--mint), rgba(180,253,225,0) 62%),
    radial-gradient(780px 520px at 104% 4%, var(--sky), rgba(173,216,230,0) 58%),
    var(--paper);
  background-repeat:no-repeat;
}

img{max-width:100%;height:auto;}

/* ---------- 顶部：品牌行 + 菜单行 ---------- */
.site-top{
  border-bottom:4px solid var(--ink);
  background:linear-gradient(180deg, var(--mint) 0%, #e7fff5 78%, #f4fffb 100%);
  padding:8px 14px 10px;
}

.brand-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width:1120px;
  margin:0 auto;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:4px 4px 4px 2px;
  text-decoration:none;
  color:var(--ink);
}

.brand img{
  width:38px;
  height:38px;
  border:3px solid var(--ink);
  border-radius:12px;
  background:#fff;
  box-shadow:var(--clay-sm);
  object-fit:cover;
}

.brand-txt{
  font-size:24px;
  font-weight:700;
  letter-spacing:.09em;
  line-height:1.1;
}

.contact{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 16px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  background:#fff;
  border:var(--edge) solid var(--ink);
  border-bottom-width:5px;
  border-radius:0;
  box-shadow:3px 3px 0 rgba(23,38,32,.28);
  transition:transform .2s ease-out, box-shadow .2s ease-out;
}

.contact:hover{transform:translate(-1px,-2px);box-shadow:4px 5px 0 rgba(23,38,32,.3);}
.contact:active{transform:translate(2px,2px);box-shadow:1px 1px 0 rgba(23,38,32,.3);}

.menu{max-width:1120px;margin:2px auto 0;}
.menu-list{
  display:flex;
  gap:8px;
  margin:0;
  padding:4px 2px 6px;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.menu-list li{flex:0 0 auto;}

.menu-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:9px 14px;
  font-size:16px;
  line-height:1.25;
  white-space:nowrap;
  text-decoration:none;
  color:var(--ink);
  background:linear-gradient(165deg,#ffffff,#eefbf4);
  border:var(--edge) solid var(--ink);
  border-radius:14px;
  box-shadow:var(--clay-sm);
  transition:transform .2s ease-out, box-shadow .2s ease-out, background .2s ease-out;
}

.menu-list a:hover{transform:translate(-1px,-2px);background:linear-gradient(165deg,#fff,#d9fdf0);box-shadow:inset -2px -2px 6px rgba(23,38,32,.1), 4px 6px 0 rgba(23,38,32,.22);}
.menu-list a:active{transform:translate(1px,2px);box-shadow:inset -1px -1px 4px rgba(23,38,32,.2), 1px 1px 0 rgba(23,38,32,.25);}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  max-width:1120px;
  margin:0 auto;
  padding:26px 16px 34px;
  display:grid;
  gap:26px;
  align-content:center;
  scroll-margin-top:16px;
}

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

.hero h1{
  margin:0 0 16px;
  font-size:clamp(29px,7.4vw,52px);
  line-height:1.22;
  letter-spacing:.005em;
  text-shadow:2px 3px 0 rgba(255,255,255,.85);
}

.hero h1 em{
  font-style:normal;
  background:linear-gradient(180deg, rgba(180,253,225,0) 58%, var(--mint) 58%);
}

.lead{
  margin:0;
  font-size:17.5px;
  line-height:1.65;
  max-width:34em;
  padding:12px 14px;
  color:#254236;
  background:rgba(255,255,255,.8);
  border-left:7px solid var(--sky);
  border-radius:0 var(--r-mid) var(--r-mid) 0;
  box-shadow:3px 4px 0 rgba(23,38,32,.1);
}

.hero-art{
  position:relative;
  margin:0;
  display:grid;
  place-items:center;
  min-height:210px;
}

.hero-bignum{
  position:absolute;
  left:-2px;
  bottom:-14px;
  z-index:0;
  font-family:'Kalam','Patrick Hand',cursive;
  font-size:clamp(90px,26vw,180px);
  line-height:.78;
  letter-spacing:-.04em;
  color:rgba(23,38,32,.1);
  user-select:none;
}

.hero-img{
  position:relative;
  z-index:1;
  width:100%;
  max-width:430px;
  border:4px solid var(--ink);
  border-radius:var(--r-big);
  background:#fff;
  box-shadow:inset -3px -3px 10px rgba(23,38,32,.16), inset 3px 3px 8px rgba(255,255,255,.7), 9px 11px 0 rgba(23,38,32,.18);
}

.blob-stack{
  position:relative;
  z-index:1;
  width:212px;
  height:196px;
  animation:floaty 6s ease-in-out infinite;
}

.blob{
  position:absolute;
  border:4px solid var(--ink);
  border-radius:50%;
  box-shadow:inset -3px -3px 10px rgba(23,38,32,.18), inset 3px 3px 7px rgba(255,255,255,.7), 6px 8px 0 rgba(23,38,32,.18);
}

.blob-a{width:132px;height:132px;left:0;top:26px;background:linear-gradient(155deg,var(--mint),#84eecb);}
.blob-b{width:88px;height:88px;right:0;bottom:4px;background:linear-gradient(155deg,var(--sky),#8cc6dc);}
.blob-c{width:58px;height:58px;right:14px;top:0;background:#fff;}

@keyframes floaty{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-9px);}
}

/* ---------- 正文 + 右侧栏 ---------- */
.body-grid{
  max-width:1120px;
  margin:0 auto;
  padding:0 16px 52px;
  display:grid;
  gap:26px;
}

.content-col{min-width:0;}

.content-col > div{
  position:relative;
  margin:0 0 26px;
  padding:22px 18px 24px;
  background:linear-gradient(172deg,#ffffff 0%,#f2fdf8 100%);
  border:var(--edge) solid var(--ink);
  border-bottom:9px solid var(--ink);
  border-radius:var(--r-big);
  box-shadow:var(--clay);
  scroll-margin-top:18px;
}

.js .content-col > div{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease-out, transform .5s cubic-bezier(.34,1.56,.64,1);
}

.js .content-col > div.is-in{opacity:1;transform:none;}

.content-col h2{
  margin:0 0 12px;
  font-size:clamp(21px,4.8vw,27px);
  line-height:1.35;
  letter-spacing:.01em;
}

.content-col h2::after{
  content:"";
  display:block;
  width:66px;
  height:7px;
  margin-top:9px;
  border-radius:8px;
  background:linear-gradient(90deg,var(--mint),var(--sky));
}

.content-col > div > h2 + p{
  margin:0 0 16px;
  font-size:16.5px;
  line-height:1.6;
  color:#335446;
  padding-left:11px;
  border-left:5px solid var(--mint);
}

.content-col h3{
  margin:24px 0 8px;
  font-size:19px;
  line-height:1.45;
}

.content-col p{margin:0 0 14px;}
.content-col ul,.content-col ol{margin:0 0 16px;padding-left:1.35em;}
.content-col li{margin:0 0 7px;}
.content-col li::marker{color:#4c9c7e;}

.content-col a{
  color:#0d5e42;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.content-col a:hover{background:var(--mint);}

.content-col img{
  border:var(--edge) solid var(--ink);
  border-radius:var(--r-mid);
  box-shadow:4px 5px 0 rgba(23,38,32,.16);
  margin:6px 0 14px;
}

.content-col blockquote{
  margin:0 0 16px;
  padding:12px 16px;
  background:#f4fffb;
  border:var(--edge) dashed var(--ink);
  border-radius:var(--r-mid);
}

.content-col code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:15.5px;
  padding:2px 6px;
  background:#eafff6;
  border:2px solid rgba(23,38,32,.35);
  border-radius:8px;
}

.content-col hr{
  border:0;
  height:4px;
  margin:22px 0;
  border-radius:4px;
  background:repeating-linear-gradient(90deg,var(--ink) 0 12px,transparent 12px 22px);
}

.content-col table{
  display:block;
  width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  margin:0 0 16px;
  font-size:16px;
}
.content-col th,.content-col td{
  border:2px solid rgba(23,38,32,.45);
  padding:8px 10px;
  text-align:left;
}
.content-col th{background:var(--mint);}

/* ---------- 右侧栏 ---------- */
.side-rail{
  padding:16px 15px 18px;
  background:linear-gradient(184deg,#eefaff 0%,#f6fffb 100%);
  border:var(--edge) solid var(--ink);
  border-bottom:9px solid var(--ink);
  border-radius:var(--r-big);
  box-shadow:var(--clay);
}

.rail-h{
  margin:0;
  font-size:20px;
  line-height:1.3;
  letter-spacing:.06em;
}

.rail-h::before{
  content:"";
  display:inline-block;
  width:11px;
  height:11px;
  margin-right:8px;
  vertical-align:1px;
  border:3px solid var(--ink);
  border-radius:50%;
  background:var(--sky);
}

.side-rail .subtitle{
  margin:3px 0 12px;
  font-size:15.5px;
  letter-spacing:.05em;
  color:#3c6152;
}

.rail-list{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:rail;
}

.rail-list li{
  counter-increment:rail;
  border-bottom:3px solid rgba(23,38,32,.32);
  border-radius:0;
  animation:pop .55s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay:calc(var(--i) * 55ms);
}

.rail-list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:9px 4px;
  font-size:16px;
  text-decoration:none;
  color:var(--ink);
  border-radius:0;
  transition:background .2s ease-out, padding-left .2s ease-out;
}

.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-family:'Kalam','Patrick Hand',cursive;
  font-size:15px;
  color:#5d8a78;
  letter-spacing:.04em;
}

.rail-list a:hover{background:var(--mint);padding-left:9px;}
.rail-list li:last-child{border-bottom:0;}

.menu-list li{
  animation:pop .55s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay:calc(var(--i) * 45ms);
}

@keyframes pop{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}

/* ---------- 回到顶部 ---------- */
.to-top{
  position:fixed;
  right:13px;
  bottom:14px;
  z-index:30;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 14px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  background:#fff;
  border:var(--edge) solid var(--ink);
  border-bottom-width:5px;
  border-radius:0;
  box-shadow:3px 3px 0 rgba(23,38,32,.3);
  transition:opacity .25s ease-out, transform .25s ease-out;
}

.to-top.is-off{opacity:0;transform:translateY(10px);pointer-events:none;}
.to-top:hover{background:var(--mint);}

/* ---------- 页脚 ---------- */
footer{
  border-top:4px solid var(--ink);
  background:linear-gradient(0deg,var(--mint) 0%,#e9fff6 100%);
  padding:24px 16px 26px;
  text-align:center;
  overflow:hidden;
}

footer p{
  margin:0;
  font-size:clamp(42px,13.5vw,96px);
  line-height:.95;
  font-weight:700;
  letter-spacing:.04em;
  color:rgba(23,38,32,.88);
  text-shadow:2px 3px 0 rgba(255,255,255,.75);
}

footer small{
  display:block;
  margin-top:10px;
  font-size:14px;
  line-height:1.6;
  letter-spacing:.1em;
  color:#31564a;
}

/* ---------- 断点 ---------- */
@media (min-width:600px){
  .hero{padding:34px 22px 46px;}
  .body-grid{padding:0 22px 60px;}
  .content-col > div{padding:26px 26px 28px;}
}

@media (min-width:880px){
  .site-top{padding:10px 24px 12px;}
  .hero{
    min-height:100vh;
    grid-template-columns:1.04fr .96fr;
    align-items:center;
    gap:38px;
    padding:44px 28px 56px;
  }
  .hero h1{margin-bottom:20px;}
  .hero-art{min-height:300px;}
  .body-grid{
    grid-template-columns:minmax(0,1fr) 296px;
    align-items:start;
    gap:34px;
    padding:0 28px 74px;
  }
  .side-rail{position:sticky;top:18px;}
  .to-top{right:22px;bottom:22px;}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .js .content-col > div{opacity:1;transform:none;}
}

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