*{box-sizing:border-box;margin:0;padding:0;}
body{
  background-color: #fff4cc;
  background-image: linear-gradient(#ffe89c 1px, transparent 1px), linear-gradient(90deg,#ffe89c 1px, transparent 1px);
  background-size: 24px 24px;
  font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;
}
.menu-cat{
  position:fixed;
  top:35px;
  right:35px;
  width:44px;
  height:44px;
  border-radius:12px;
  border:3px solid #000;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99;
  cursor:pointer;
  overflow:hidden;
  opacity:0.85;
}
.menu-cat img{
  width:80%;
  height:80%;
  object-fit:contain;
}
.mask{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.4);
  z-index:98;
  display:none;
}
.mask.active{
  display:block;
}
.sidebar{
  position:fixed;
  top:0;
  left:-180px;
  width:180px;
  height:100vh;
  background:#fff;
  border-right:4px solid #000;
  transition: left 0.3s ease;
  z-index:100;
  padding:20px 12px;
  overflow:hidden;
}
.sidebar.active{
  left:0;
}
.sidebar-title{
  text-align:center;
  font-size:20px;
  font-weight:bold;
  margin-bottom:14px;
}
.sidebar-divider{
  display:flex;
  gap:6px;
  margin-bottom:20px;
}
.sidebar-divider span{
  flex:1;
  height:2px;
  background:#222;
}
.sidebar-list{
  height: calc(100vh - 100px);
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
  padding-right:4px;
}
.sidebar-btn{
  display:block;
  width:100%;
  border:3px solid #000;
  border-radius:12px;
  padding:14px 0;
  font-size:16px;
  margin-bottom:14px;
  box-shadow:4px 4px 0 #000;
  cursor:pointer;
  transition:0.1s;
  text-align:center;
  text-decoration:none;
  color:#000;
}
.sidebar-btn:active{
  transform:translate(2px,2px);
  box-shadow:2px 2px 0 #000;
}
.btn-all{
  background:#ff66aa;
  color:#fff;
}
.btn-normal{
  background:#ffe6f0;
  color:#333;
}
.banner-wrap{
  padding:16px;
}
.banner-card{
  border:4px solid #000;
  border-radius:16px;
  padding:4px;
  background:#fff;
  box-shadow:6px 6px 0 #000;
  overflow:hidden;
  position:relative;
}
.banner-card img{
  width:100%;
  aspect-ratio:900 / 383;
  object-fit:cover;
  display:block;
  border-radius:12px;
}
.grid-container{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  padding:0 16px 20px;
}
.template-link{
  text-decoration:none;
  display:block;
}
.template-card{
  border:4px solid #000;
  border-radius:16px;
  padding:4px;
  background:#fff;
  box-shadow: 6px 6px 0 #000;
}
.card-cover{
  width:100%;
  aspect-ratio:1222 / 793;
  background:#f4f4f4;
  overflow:hidden;
  border-radius:10px;
}
.card-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:12px;
}
.card-title{
  width:100%;
  margin-top:10px;
  padding:12px 12px;
  font-size:16px;
  text-align:center;
  color:#222;
  font-weight:500;
  border:2px solid #000;
  border-radius:12px;
  background:#fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
  min-height: 64px;
  max-height: 64px;
  line-height: 1.4;
}
.loading-tip,.end-tip,.empty-tip{
  grid-column:1/-1;
  text-align:center;
  padding:24px 0;
  font-size:16px;
  color:#333;
}
.end-tip,.empty-tip{
  display:none;
  color:#999;
}