@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

:root{
  --mint:#b4fde1;
  --sky:#add8e6;
  --ink:#172620;
  --paper:#f1fdf8;
  --card:#ffffff;
  --soft:#ddfcf0;
  --muted:#3d564c;
  --r-lg:26px;
  --r-md:18px;
  --r-sm:4px;
  --edge:3px solid var(--ink);
  --pop:inset -4px -4px 10px rgba(23,38,32,.07), 6px 8px 18px rgba(23,38,32,.16);
  --pop-sm:inset -2px -2px 6px rgba(23,38,32,.06), 3px 4px 10px rgba(23,38,32,.14);
}

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

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

body{
  margin:0;
  font-family:'Fredoka','Nunito',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.72;
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 90% -10%, var(--sky) 0%, rgba(173,216,230,0) 62%),
    radial-gradient(820px 640px at 2% 108%, var(--mint) 0%, rgba(180,253,225,0) 60%),
    var(--paper);
}

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

a{color:inherit}

::selection{background:var(--ink);color:var(--mint)}

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

h1,h2,h3,summary,.btn{
  font-family:'Fredoka','Nunito',"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-weight:600;
  letter-spacing:.2px;
}

/* 顶部细条 */
.topline{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:44px;
  padding:0 12px;
  background:linear-gradient(100deg,var(--mint),var(--sky));
  border-bottom:var(--edge);
  font-size:16px;
  letter-spacing:2px;
  overflow:hidden;
}
.topline-txt{white-space:nowrap;font-weight:600}
.lad{width:8px;height:8px;border-radius:50%;background:var(--ink);opacity:.55;flex:none}

/* 左栏 / 顶部条 */
.rail{
  position:sticky;
  top:44px;
  z-index:55;
  display:flex;
  align-items:center;
  gap:12px;
  height:58px;
  padding:0 14px;
  background:var(--card);
  border-bottom:var(--edge);
}

.brandmark{
  flex:none;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:var(--edge);
  border-radius:14px;
  background:linear-gradient(150deg,var(--mint),var(--sky));
  box-shadow:var(--pop-sm);
  overflow:hidden;
  text-decoration:none;
}
.brandmark img{width:100%;height:100%;object-fit:cover}
.mark-ini{font-weight:700;font-size:18px;line-height:1}

.menuwrap{position:relative;margin-left:auto}

summary{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 16px;
  list-style:none;
  cursor:pointer;
  font-size:16px;
  border:var(--edge);
  border-radius:999px;
  background:var(--card);
  box-shadow:var(--pop-sm);
  transition:transform .2s ease-out,background .2s ease-out;
  user-select:none;
}
summary::-webkit-details-marker{display:none}
summary:active{transform:translateY(2px) scale(.985);background:var(--soft)}

.burger{position:relative;width:16px;height:2px;background:var(--ink);flex:none}
.burger::before,.burger::after{content:'';position:absolute;left:0;width:16px;height:2px;background:var(--ink)}
.burger::before{top:-5px}
.burger::after{top:5px}

.menulist{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  margin:0;
  padding:9px;
  list-style:none;
  background:var(--card);
  border:var(--edge);
  border-radius:var(--r-lg);
  box-shadow:var(--pop);
  display:grid;
  gap:3px;
  z-index:70;
  min-width:190px;
}
.menulist li{list-style:none;animation:rise .45s cubic-bezier(.34,1.56,.64,1) both}
.menulist li:nth-child(1){animation-delay:.02s}
.menulist li:nth-child(2){animation-delay:.05s}
.menulist li:nth-child(3){animation-delay:.08s}
.menulist li:nth-child(4){animation-delay:.11s}
.menulist li:nth-child(5){animation-delay:.14s}
.menulist li:nth-child(6){animation-delay:.17s}
.menulist li:nth-child(7){animation-delay:.2s}
.menulist a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 14px;
  border-radius:var(--r-sm);
  text-decoration:none;
  font-size:16px;
  transition:background .18s ease-out,transform .18s ease-out;
}
.menulist a:hover{background:var(--mint)}
.menulist a:active{transform:translateY(1px)}

/* 主体 */
.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
  max-width:1320px;
  margin:0 auto;
  padding:22px 16px 8px;
}

main{min-width:0}

section{display:flex;flex-direction:column;gap:26px}

div{scroll-margin-top:120px}

/* Hero */
.hero{
  position:relative;
  display:grid;
  place-items:center;
  min-height:calc(100svh - 128px);
  padding:56px 20px 64px;
  border:4px solid var(--ink);
  border-radius:30px;
  overflow:hidden;
  background:linear-gradient(155deg,var(--mint) 0%,#d9fbee 42%,var(--sky) 100%);
  box-shadow:inset -6px -6px 18px rgba(23,38,32,.1), 8px 10px 24px rgba(23,38,32,.18);
  text-align:center;
}
.hero::after{
  content:'';
  position:absolute;
  left:-8%;
  right:-8%;
  bottom:-58px;
  height:104px;
  background:repeating-linear-gradient(115deg,var(--ink) 0 12px,rgba(23,38,32,0) 12px 26px);
  opacity:.32;
  transform:rotate(-4deg);
}
.hero-in{position:relative;z-index:3;max-width:34ch}
.hero h1{
  margin:0;
  font-size:clamp(30px,7.2vw,62px);
  line-height:1.14;
  text-shadow:2px 3px 0 rgba(255,255,255,.75);
}
.lede{
  margin:18px auto 26px;
  max-width:38ch;
  font-size:16px;
  line-height:1.7;
  color:var(--muted);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 28px;
  border:var(--edge);
  border-radius:999px;
  background:var(--ink);
  color:var(--mint);
  font-size:17px;
  text-decoration:none;
  box-shadow:inset -3px -4px 8px rgba(0,0,0,.35), 4px 6px 0 rgba(23,38,32,.28);
  transition:transform .2s ease-out,box-shadow .2s ease-out;
}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(2px) scale(.985);box-shadow:inset -2px -2px 6px rgba(0,0,0,.4), 2px 2px 0 rgba(23,38,32,.3)}
.btn.big{min-height:60px;padding:0 40px;font-size:19px;letter-spacing:1px}

/* 拼贴 */
.collage{position:absolute;inset:0;z-index:2;pointer-events:none;will-change:transform}
.collage figure{margin:0;position:absolute;border:4px solid var(--ink);border-radius:24px;overflow:hidden;box-shadow:0 12px 22px rgba(23,38,32,.22);background:#fff}
.phw1{width:34%;max-width:220px;aspect-ratio:3/4;right:3%;top:7%;transform:rotate(7deg)}
.phw2{width:27%;max-width:170px;aspect-ratio:1/1;left:2%;bottom:16%;transform:rotate(-9deg)}
.collage img{width:100%;height:100%;object-fit:cover}
.blob{position:absolute;border-radius:50%;filter:blur(1px)}
.b1{width:44%;padding-bottom:44%;right:-8%;top:-10%;background:rgba(255,255,255,.5);border:4px solid rgba(23,38,32,.25)}
.b2{width:30%;padding-bottom:30%;left:-8%;bottom:8%;background:rgba(23,38,32,.1)}

/* 正文卡 */
section > div:not(.hero){
  background:var(--card);
  border:var(--edge);
  border-radius:var(--r-lg);
  padding:26px 20px;
  box-shadow:var(--both,var(--pop));
}
section > div:not(.hero) h2{
  margin:0 0 4px;
  font-size:clamp(21px,3.4vw,29px);
  line-height:1.3;
}
section > div:not(.hero) h3{margin:22px 0 6px;font-size:19px}
section > div p{margin:0 0 14px}
section > div p:last-child{margin-bottom:0}
section > div ul,section > div ol{margin:0 0 14px;padding-left:22px}
section > div li{margin:4px 0}
section > div img{
  width:100%;
  margin:16px 0;
  border:var(--edge);
  border-radius:var(--r-md);
  box-shadow:var(--pop-sm);
}
section > div a{
  color:#0f6b53;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
section > div a:hover{background:var(--mint)}

/* 侧栏 */
.side{
  background:var(--card);
  border:var(--edge);
  border-radius:var(--r-lg);
  padding:18px 16px;
  box-shadow:var(--pop);
  align-self:start;
}
.side h2{margin:0 0 4px;font-size:18px}
.subtitle{
  margin:0 0 14px;
  font-size:16px;
  line-height:1.55;
  color:var(--muted);
  word-break:break-word;
}
.side-list{margin:0;padding:0;list-style:none;display:grid;gap:2px}
.side-list li{list-style:none;animation:rise .5s cubic-bezier(.34,1.56,.64,1) both}
.side-list li:nth-child(1){animation-delay:.04s}
.side-list li:nth-child(2){animation-delay:.08s}
.side-list li:nth-child(3){animation-delay:.12s}
.side-list li:nth-child(4){animation-delay:.16s}
.side-list li:nth-child(5){animation-delay:.2s}
.side-list li:nth-child(6){animation-delay:.24s}
.side-list li:nth-child(7){animation-delay:.28s}
.side-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 12px;
  border-radius:var(--r-sm);
  text-decoration:none;
  font-size:16px;
  transition:background .18s ease-out;
}
.side-list a:hover{background:var(--soft)}
.totop{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-top:12px;
  padding:0 14px;
  border:var(--edge);
  border-radius:999px;
  background:var(--mint);
  font-size:16px;
  text-decoration:none;
  box-shadow:var(--pop-sm);
}
.totop:active{transform:translateY(2px)}

/* 底部 CTA */
.cta{
  max-width:1320px;
  margin:34px auto 0;
  padding:0 16px;
}
.cta .btn{width:100%}
.cta{
  display:block;
}

/* 页脚 */
footer{
  margin-top:40px;
  padding:30px 16px 44px;
  text-align:center;
  border-top:var(--edge);
  background:linear-gradient(180deg,rgba(180,253,225,.35),rgba(173,216,230,.35));
}
footer p{margin:0 0 4px;font-size:16px;font-weight:600;letter-spacing:.5px}
footer small{display:block;font-size:16px;color:var(--muted)}

@keyframes rise{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:none}
}

/* 桌面 */
@media (min-width:901px){
  body{padding:44px 0 0 96px}

  .topline{position:fixed;top:0;left:0;right:0}

  .rail{
    position:fixed;
    left:0;
    top:44px;
    bottom:0;
    width:96px;
    height:auto;
    flex-direction:column;
    align-items:center;
    gap:14px;
    padding:16px 12px;
    border-bottom:0;
    border-right:var(--edge);
    background:linear-gradient(180deg,var(--soft),#fff);
  }
  .brandmark{width:44px;height:44px;border-radius:16px}
  .menuwrap{margin:0;width:100%}
  summary{justify-content:center;padding:0 10px}
  .menulist{
    top:0;
    left:calc(100% + 12px);
    right:auto;
    width:230px;
    border-radius:var(--r-lg);
  }

  .wrap{
    grid-template-columns:minmax(0,1fr) 296px;
    gap:30px;
    padding:28px 28px 8px;
  }
  .hero{min-height:calc(100svh - 92px);border-radius:36px}
  section > div:not(.hero){padding:32px 34px}
  .side{position:sticky;top:76px;padding:20px}
  div{scroll-margin-top:76px}
  .cta{padding:0 28px}
  .cta .btn{width:auto;display:inline-flex}
  .cta{text-align:center}
}

@media (min-width:1200px){
  .hero{padding:72px 32px}
  .lede{font-size:18px}
}

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

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