/* ---------- home page ---------- */
.home { padding: 0; overflow-y: auto; }
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 50%, #fef3f2 100%);
  padding: 56px 24px 48px;
  border-bottom: 1px solid #ecedef;
}
.hero-inner { max-width: 1024px; margin: 0 auto; text-align: center; }
.hero h1 {
  margin: 0 0 14px;
  font-size: 36px; line-height: 1.2; font-weight: 800;
  letter-spacing: -0.02em; color: #111827;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { font-size: 16px; color: #4b5563; line-height: 1.6; max-width: 720px; margin: 0 auto 24px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.lg { padding: 12px 22px; font-size: 15px; }
.badges {
  margin-top: 28px; display: flex; gap: 18px;
  justify-content: center; flex-wrap: wrap;
  color: #6b7280; font-size: 13px;
}
.badges span::before { content: ''; }

.showcase { padding: 40px 24px 60px; max-width: 1240px; margin: 0 auto; }
.showcase-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.showcase-head h2 { margin: 0; font-size: 22px; font-weight: 700; color: #111827; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid #e5e7eb;
  background: #fff; cursor: pointer; font-size: 13px; color: #4b5563;
  transition: all .15s;
}
.chip:hover { background: #f3f4f6; }
.chip.active { background: #6366f1; border-color: #6366f1; color: #fff; }

.content { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card.showcase-card {
  background: #fff; border: 1px solid #ecedef; border-radius: 14px;
  overflow: hidden; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card.showcase-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,23,42,.08); }
.card.showcase-card .thumb {
  height: 180px; cursor: pointer; background: #f3f4f6;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.card.showcase-card .thumb iframe { display: none; }
.card.showcase-card .cover {
  font-size: 20px;
  padding: 18px 22px;
}
.card.showcase-card .body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.card.showcase-card .cat-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: #eef2ff; color: #4338ca; font-size: 11px; font-weight: 600;
  align-self: flex-start;
}
.card.showcase-card h3 {
  margin: 8px 0 4px; font-size: 15px; font-weight: 600; color: #111827;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card.showcase-card .desc {
  font-size: 13px; color: #6b7280; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.card.showcase-card .meta {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f2f5;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #9ca3af;
}
.card.showcase-card .meta .author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }

.loading, .empty {
  text-align: center; padding: 60px 20px;
  color: #9ca3af; font-size: 14px;
}
.empty .muted { font-size: 12px; margin-top: 8px; }

/* highlight dlg title */
.dlg { width: min(1100px, 92vw); height: min(800px, 88vh); padding: 0; border: none; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.dlg::backdrop { background: rgba(15, 18, 30, .5); }
.dlg-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f1f2f5; }
.dlg-title-block { flex: 1; min-width: 0; }
.dlg-title-input { width: 100%; border: none; outline: none; font-size: 16px; font-weight: 600; }
.dlg-meta { margin: 2px 0 0; font-size: 11px; color: #6b7280; }
.dlg-actions { display: flex; gap: 6px; }
.dlg-frame { width: 100%; height: calc(100% - 56px); border: none; background: #fff; }

@media (max-width: 700px) {
  .hero h1 { font-size: 26px; }
  .hero .lead { font-size: 14px; }
}
