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

:root{
  --ink:#171f26;
  --ink-2:#42525f;
  --ice:#c8e0f4;
  --rose:#f5e0e8;
  --bg:#e7eef5;
  --sh:-6px -6px 14px rgba(255,255,255,.92), 6px 6px 18px rgba(23,31,38,.14);
  --sh-sm:-3px -3px 8px rgba(255,255,255,.9), 4px 4px 10px rgba(23,31,38,.13);
  --sh-in:inset -2px -2px 6px rgba(255,255,255,.95), inset 3px 3px 8px rgba(23,31,38,.1);
  --f:"Poppins","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --d:"Righteous","Poppins",system-ui,sans-serif;
}

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

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

body{
  margin:0;
  min-height:100vh;
  font-family:var(--f);
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(23,31,38,.11) 1px, transparent 0) 0 0/22px 22px,
    radial-gradient(900px 520px at 88% -6%, #f7e4ee 0%, rgba(247,228,238,0) 62%),
    radial-gradient(760px 520px at 4% 8%, #dcecf9 0%, rgba(220,236,249,0) 66%),
    linear-gradient(165deg,#eef4fa 0%, var(--bg) 48%, #eae2ec 100%);
  background-attachment:fixed,fixed,fixed,fixed;
}

body.menu-open{overflow:hidden}

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

a{color:#255e86}
a:focus-visible,button:focus-visible{outline:3px solid #7fb0d6;outline-offset:3px}

.strip{
  text-align:center;
  padding:8px 14px;
  font-size:16px;
  line-height:1.5;
  letter-spacing:.24em;
  color:#5d4150;
  background:linear-gradient(145deg,#f9e3ec,#f2d6e3);
  box-shadow:inset 0 -3px 6px rgba(23,31,38,.06);
}

.top{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px clamp(14px,4vw,30px);
  background:rgba(238,244,250,.9);
  backdrop-filter:blur(10px);
  box-shadow:0 6px 16px rgba(23,31,38,.09);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:4px 6px;
  border-radius:12px;
  font-family:var(--d);
  font-size:17px;
  letter-spacing:.04em;
  color:var(--ink);
  text-decoration:none;
}
.brand img{display:block;width:30px;height:30px;border-radius:9px}
.brand:active{transform:scale(.97)}

.topnav{margin-left:auto;display:none}
.topnav p{display:flex;flex-wrap:wrap;gap:2px;margin:0}
.topnav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 11px;
  border-radius:11px;
  font-size:16px;
  line-height:1.5;
  color:var(--ink-2);
  text-decoration:none;
  transition:box-shadow .15s ease,color .15s ease;
}
.topnav a:hover{
  color:var(--ink);
  background:linear-gradient(145deg,#f7fbfe,#dbe8f3);
  box-shadow:var(--sh-sm);
}
.topnav a:active{transform:scale(.97)}

.burger{
  margin-left:auto;
  width:46px;
  height:46px;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0;
  border:0;
  border-radius:14px;
  background:linear-gradient(145deg,#f8fbfe,#dde8f2);
  box-shadow:var(--sh);
  cursor:pointer;
}
.burger span{
  display:block;
  width:20px;
  height:2px;
  border-radius:2px;
  background:var(--ink);
}
.burger:active{transform:scale(.95);box-shadow:var(--sh-in)}

.hero{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  min-height:45vh;
  padding:clamp(24px,6vw,54px) clamp(16px,5vw,48px) clamp(26px,5vw,46px);
}
.hero::before{
  content:"";
  position:absolute;
  inset:auto -12% -34% auto;
  width:min(60vw,520px);
  height:min(60vw,520px);
  border-radius:50%;
  background:radial-gradient(circle at 35% 35%, #f9e5ee, rgba(249,229,238,0));
  z-index:0;
}
.hero > *{position:relative;z-index:1}

.tagline{
  margin:0;
  font-family:var(--d);
  font-size:16px;
  line-height:1.5;
  letter-spacing:.3em;
  color:#6d8598;
}

.hero h1{
  margin:0;
  font-size:clamp(2.1rem,7.2vw,3.5rem);
  line-height:1.45;
  letter-spacing:-.4px;
  max-width:18ch;
}

.hero .lead{
  margin:0;
  max-width:46ch;
  font-size:17px;
  line-height:1.75;
  color:var(--ink-2);
}

.hero-media{
  margin:10px 0 0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--sh);
  animation:bob 7s ease-in-out infinite;
}
.hero-media img{display:block;width:100%;height:auto}

@keyframes bob{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(14px,4vw,32px) clamp(34px,6vw,58px);
}

.content-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:22px;
  align-items:start;
}

.paper{
  padding:clamp(16px,3.4vw,34px);
  border-radius:22px;
  background:linear-gradient(150deg,#f7fbfe,#e3ecf5);
  box-shadow:var(--sh);
  overflow-wrap:break-word;
}

section article{
  padding:clamp(14px,2.6vw,24px);
  border-radius:16px;
  background:rgba(255,255,255,.52);
  box-shadow:var(--sh-in);
}
section article + article{margin-top:20px}
section article[id]{scroll-margin-top:92px}

section h2,section h3,section h4{
  line-height:1.45;
  letter-spacing:-.2px;
  margin:0 0 .55em;
}
section h2{font-size:clamp(1.32rem,3.2vw,1.7rem)}
section h3{font-size:1.16rem}
section p{margin:0 0 1em;line-height:1.85}
section h2 > span,section h3 > span,section h4 > span{position:relative;display:inline-block}
section h2 > span::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-3px;
  height:7px;
  border-radius:7px;
  background:linear-gradient(90deg,var(--ice),var(--rose));
  z-index:-1;
}
section ul,section ol{pargin:0 0 1em;padding-left:1.25em}
section li{margin:.35em 0;line-height:1.75}
section img{border-radius:14px;box-shadow:var(--sh-sm)}

section article{animation:rise .5s ease both}
section article:nth-child(2){animation-delay:.05s}
section article:nth-child(3){animation-delay:.1s}
section article:nth-child(4){animation-delay:.15s}
section article:nth-child(5){animation-delay:.2s}
section article:nth-child(6){animation-delay:.25s}
section article:nth-child(7){animation-delay:.3s}

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

.side{display:grid;gap:16px;align-content:start}
.side-card{
  padding:16px;
  border-radius:16px;
  background:linear-gradient(145deg,#faeff4,#f1dce6);
  box-shadow:var(--sh);
}
.side h3{margin:0 0 10px;font-size:1.05rem;line-height:1.5;letter-spacing:.04em}
.sidelinks{display:flex;flex-direction:column;gap:2px;margin:0}
.sidelinks a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:7px 11px;
  border-radius:10px;
  font-size:16px;
  line-height:1.5;
  color:#4d3844;
  text-decoration:none;
}
.sidelinks a:hover{background:linear-gradient(145deg,#fff,#f6e6ee);box-shadow:var(--sh-sm)}
.sidelinks a:active{transform:scale(.98)}

footer{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  padding:clamp(22px,4vw,38px) clamp(16px,5vw,40px);
  border-radius:26px 26px 0 0;
  background:linear-gradient(150deg,#e2ecf5,#ece3ef);
  box-shadow:0 -8px 22px rgba(23,31,38,.1);
}
.f-brand{
  font-family:var(--d);
  font-size:clamp(1.7rem,5vw,2.3rem);
  line-height:1.3;
  letter-spacing:.01em;
}
.f-nav{display:flex;flex-wrap:wrap;gap:2px}
.f-nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:7px 10px;
  border-radius:10px;
  font-size:16px;
  line-height:1.5;
  color:var(--ink-2);
  text-decoration:none;
}
.f-nav a:hover{background:#f5eef3;box-shadow:var(--sh-sm)}
.f-copy{font-size:16px;line-height:1.6;color:var(--ink-2);text-align:center}
.f-top a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:7px 14px;
  border-radius:12px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  background:linear-gradient(145deg,#fbfdff,#e0eaf4);
  box-shadow:var(--sh-sm);
}
.f-top a:active{transform:scale(.97);box-shadow:var(--sh-in)}

.menu{
  position:fixed;
  inset:0;
  z-index:90;
  overflow:auto;
  display:grid;
  align-content:center;
  gap:8px;
  padding:86px clamp(18px,6vw,48px) 44px;
  background:
    radial-gradient(circle at 1px 1px, rgba(23,31,38,.1) 1px, transparent 0) 0 0/22px 22px,
    linear-gradient(160deg,#eef4fa,#f7e6ee);
  opacity:0;
  visibility:hidden;
  transition:opacity .22s ease,visibility .22s ease;
}
body.menu-open .menu{opacity:1;visibility:visible}

.menu nav{display:grid;gap:8px;max-width:520px;width:100%;margin:0 auto}
.menu a{
  display:flex;
  align-items:center;
  min-height:52px;
  padding:12px 20px;
  border-radius:14px;
  font-size:1.25rem;
  line-height:1.5;
  color:var(--ink);
  text-decoration:none;
  background:linear-gradient(145deg,#fbfdff,#e1ebf5);
  box-shadow:var(--sh);
}
.menu a:active{transform:scale(.98);box-shadow:var(--sh-in)}

.menu-close{
  position:absolute;
  top:18px;
  right:18px;
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  font-size:1.6rem;
  line-height:1;
  color:var(--ink);
  background:linear-gradient(145deg,#fbfdff,#dfe9f3);
  box-shadow:var(--sh);
  cursor:pointer;
}
.menu-close:active{transform:scale(.95);box-shadow:var(--sh-in)}

@media (min-width:700px){
  .hero-media{max-width:760px}
  .hero .lead{font-size:1.06rem}
}

@media (min-width:960px){
  .content-grid{grid-template-columns:minmax(0,1fr) 278px;gap:26px}
  .side{position:sticky;top:90px}
}

@media (min-width:1120px){
  .topnav{display:block;margin-left:auto}
  .burger{margin-left:6px}
}

@media (min-width:840px){
  footer{
    grid-template-columns:1.3fr 2.2fr 1fr auto;
    align-items:center;
    gap:20px;
  }
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
</style>

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