@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&family=Russo+One&display=swap');

:root{
  --bg:#e4eef8;
  --ink:#171f26;
  --muted:#4d5f6d;
  --pink:#f5e0e8;
  --blue:#c8e0f4;
  --card:rgba(255,255,255,.52);
  --line:rgba(23,31,38,.09);
  --raise:-5px -5px 15px rgba(255,255,255,.92), 5px 5px 15px rgba(23,31,38,.15);
  --sunk:inset -5px -5px 12px rgba(255,255,255,.9), inset 5px 5px 12px rgba(23,31,38,.16);
  --head:"Russo One","Chakra Petch","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:"Chakra Petch","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background:linear-gradient(165deg,#f0f6fc 0%,#e0ecf7 42%,#f7e9ef 100%);
  background-attachment:fixed;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{
  font-family:var(--head);
  line-height:1.25;
  letter-spacing:.01em;
  margin:0;
  font-weight:400;
}

.top{padding:0 0 14px}
.strip{
  margin:0;
  padding:7px 14px;
  font-family:"Chakra Petch",var(--head);
  font-size:13px;
  font-weight:500;
  letter-spacing:.12em;
  text-align:center;
  color:var(--muted);
  background:var(--card);
  box-shadow:var(--sunk);
  border-radius:0 0 14px 14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.strip span{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:top}

.brandrow{display:flex;justify-content:center;padding:18px 16px 12px}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:10px 24px;
  text-decoration:none;
  font-family:var(--head);
  font-size:20px;
  letter-spacing:.08em;
  border-radius:16px;
  background:linear-gradient(145deg,#f4fafe,#d8e9f7);
  box-shadow:var(--raise);
  transition:transform .15s ease, box-shadow .15s ease;
}
.brand:active{box-shadow:var(--sunk);transform:scale(.98)}
.mark{width:26px;height:26px;border-radius:8px}

.navwrap{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
  max-width:1080px;
  margin:0 auto;
  padding:0 16px;
}
.navwrap>summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 20px;
  border-radius:999px;
  font-size:15px;
  font-weight:600;
  letter-spacing:.14em;
  background:linear-gradient(145deg,#f8ebf1,#ecdbE4);
  box-shadow:var(--raise);
  user-select:none;
  transition:box-shadow .15s ease, transform .15s ease;
}
.navwrap>summary::-webkit-details-marker{display:none}
.navwrap>summary:active{box-shadow:var(--sunk);transform:scale(.97)}
.pills{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  flex:1 1 auto;
  min-width:0;
  margin:0;
  padding:0;
  list-style:none;
}
.pills a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 16px;
  border-radius:999px;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  background:var(--card);
  box-shadow:var(--raise);
  transition:transform .15s ease, box-shadow .15s ease;
}
.pills a:hover{transform:translateY(-2px)}
.pills a:active{box-shadow:var(--sunk);transform:scale(.97)}

.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  min-height:45vh;
  max-width:1080px;
  margin:22px auto 0;
  padding:30px 22px 32px;
  text-align:center;
  border-radius:20px;
  background-image:
    radial-gradient(rgba(23,31,38,.11) 1px, transparent 1.2px),
    linear-gradient(150deg, rgba(255,255,255,.65), rgba(245,224,232,.55));
  background-size:18px 18px, 100% 100%;
  box-shadow:var(--raise);
}
.hero h1{
  font-size:clamp(27px,5.2vw,50px);
  letter-spacing:.02em;
}
.hero h1 span{display:inline-block}
.hero .sub{
  margin:0 auto;
  max-width:36em;
  color:var(--muted);
  font-size:17px;
}
.herofig{margin:6px 0 0}
.herofig img{
  width:100%;
  border-radius:16px;
  box-shadow:var(--raise);
}

.grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 288px;
  gap:24px;
  align-items:start;
  max-width:1080px;
  margin:26px auto 0;
  padding:0 20px 10px;
}
.prose{min-width:0}
.prose>article{
  margin:0 0 20px;
  padding:22px 24px;
  border-radius:4px;
  background:var(--card);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
  box-shadow:0 2px 18px rgba(23,31,38,.08), inset 0 1px 0 rgba(255,255,255,.9);
  scroll-margin-top:100px;
}
.prose>article:last-child{margin-bottom:0}
.prose h2{
  font-size:clamp(21px,3vw,27px);
  margin:0 0 12px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.prose h2 span,.prose h3 span{display:inline-block}
.prose h3{font-size:19px;margin:22px 0 8px}
.prose p{margin:0 0 14px}
.prose ul,.prose ol{margin:0 0 14px;padding-left:22px}
.prose li{margin:6px 0}
.prose a{color:#1e5573;text-decoration:underline;text-underline-offset:3px}
.prose strong{color:#0f2b3a}
.prose figure{
  margin:18px 0;
  padding:12px;
  border-radius:12px;
  background:rgba(255,255,255,.55);
  box-shadow:var(--sunk);
}
.prose figure img{border-radius:8px}
.prose blockquote{
  margin:16px 0;
  padding:12px 18px;
  border-radius:12px;
  background:rgba(245,224,232,.5);
  box-shadow:var(--sunk);
}
.prose table{width:100%;border-collapse:collapse;font-size:16px}
.prose th,.prose td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left}

.side{
  position:sticky;
  top:18px;
  padding:18px;
  border-radius:16px;
  background:var(--card);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
  box-shadow:var(--raise);
}
.side h3{
  font-size:15px;
  letter-spacing:.16em;
  color:var(--muted);
  margin:0 0 12px;
}
.side h3 span{display:inline-block}
.side ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.side a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 14px;
  border-radius:12px;
  font-size:15px;
  text-decoration:none;
  background:rgba(255,255,255,.55);
  box-shadow:var(--raise);
  transition:box-shadow .15s ease, transform .15s ease;
}
.side a:hover{transform:translateY(-2px)}
.side a:active{box-shadow:var(--sunk);transform:scale(.97)}

.foot{max-width:1080px;margin:34px auto 0;padding:22px 20px 36px}
.cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  padding:22px;
  border-radius:16px;
  background:var(--card);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
  box-shadow:var(--raise);
}
.cols dl{margin:0}
.cols dt{
  font-family:var(--head);
  font-size:14px;
  letter-spacing:.16em;
  color:var(--muted);
  margin-bottom:8px;
}
.cols dd{margin:0 0 4px}
.cols a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:4px 10px;
  border-radius:10px;
  font-size:15px;
  text-decoration:none;
  transition:background .15s ease, box-shadow .15s ease;
}
.cols a:hover{background:rgba(255,255,255,.6);box-shadow:var(--raise)}
.base{text-align:center;margin-top:18px;color:var(--muted);font-size:14px}

.reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease, transform .5s ease}
.reveal.in{opacity:1;transform:none}

@media (max-width:860px){
  .navwrap{justify-content:flex-start;padding:0 14px}
  .pills{
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:none;
  }
  .pills::-webkit-scrollbar{display:none}
  .pills a{white-space:nowrap}
  .hero{min-height:0;margin:18px 14px 0;padding:26px 16px 28px;border-radius:16px}
  .hero .sub{font-size:16px}
  .grid{grid-template-columns:1fr;gap:18px;padding:0 14px 10px}
  .side{position:static;order:2}
  .prose>article{padding:18px 16px}
  .cols{grid-template-columns:1fr 1fr;padding:18px}
  .cols dl:last-child{grid-column:1 / -1}
  .foot{padding:18px 14px 30px}
  .strip{font-size:12px;letter-spacing:.08em}
}

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

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