/* zibll-like design system for zibi2 (PC front) */

:root {
  --zb-bg: #f5f6f8;
  --zb-card: #ffffff;
  --zb-text: #111827;
  --zb-muted: #6b7280;
  --zb-border: rgba(229, 231, 235, 1);
  --zb-shadow: 0 10px 25px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
  --zb-brand: #2563eb;
  --zb-brand-2: #7c3aed;
  --zb-radius: 16px;
  --zb-radius-sm: 12px;
  --zb-pill: 999px;
}

/* Layout */
.zb-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header (zibll-like) */
.zb-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.zb-nav-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--zb-pill);
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  transition: background .16s ease, color .16s ease;
}

.zb-nav-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--zb-brand);
}

.zb-search {
  position: relative;
}

.zb-search input {
  height: 40px;
  width: 100%;
  border-radius: var(--zb-pill);
  border: 1px solid var(--zb-border);
  background: #f9fafb;
  padding: 0 14px 0 36px;
  font-size: 13px;
}

.zb-search input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.zb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--zb-pill);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.zb-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--zb-brand), var(--zb-brand-2));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.zb-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.zb-btn-ghost {
  color: #374151;
  background: #fff;
  border-color: var(--zb-border);
}

.zb-btn-ghost:hover {
  background: #f9fafb;
}

/* Cards */
.zb-card {
  border-radius: var(--zb-radius);
  border: 1px solid var(--zb-border);
  background: var(--zb-card);
  box-shadow: var(--zb-shadow);
}

.zb-card-hd {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.zb-card-bd {
  padding: 12px 16px 16px;
}

/* Post list (zibll-like) */
.zb-post {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.zb-post:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.zb-post-cover {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: #e5e7eb;
}

.zb-post-cover img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.zb-post-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--zb-text);
  line-height: 1.25;
}

.zb-post-excerpt {
  margin-top: 8px;
  color: var(--zb-muted);
  font-size: 13px;
  line-height: 1.6;
}

.zb-post-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #9ca3af;
}

/* Footer (zibll-like) */
.zb-footer {
  margin-top: 36px;
  background: #fff;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.zb-footer-inner {
  padding: 22px 0;
}

.zb-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 18px;
}

@media (max-width: 1024px) {
  .zb-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .zb-footer-grid { grid-template-columns: 1fr; }
}

.zb-footer-title {
  font-size: 13px;
  font-weight: 900;
  color: #111827;
}

.zb-footer-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}

.zb-footer-link:hover {
  color: var(--zb-brand);
}

.zb-footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(229, 231, 235, 0.85);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
}

.zb-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 10px;
  border-radius: var(--zb-pill);
  font-size: 12px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

/* Home hero / slider */
.zb-hero {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--zb-border);
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.22) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.22) 0, transparent 55%),
    #0b1220;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.25);
}

.zb-hero-slide {
  position: relative;
  min-height: 280px;
}

.zb-hero-slide img,
.zb-hero-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zb-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.28) 55%, rgba(2, 6, 23, 0.18));
}

.zb-hero-content {
  position: relative;
  padding: 28px 22px;
  color: rgba(248, 250, 252, 0.96);
}

.zb-hero-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.zb-hero-sub {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.88);
}

@media (min-width: 768px) {
  .zb-hero-slide { min-height: 340px; }
  .zb-hero-content { padding: 40px 40px; max-width: 760px; }
  .zb-hero-title { font-size: 44px; }
}

/* Category tiles */
.zb-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1024px) {
  .zb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .zb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.zb-tile {
  border-radius: 14px;
  border: 1px solid var(--zb-border);
  background: #fff;
  padding: 10px 12px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.zb-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06);
}

.zb-tile-title {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.zb-tile-sub {
  margin-top: 3px;
  font-size: 11px;
  color: #9ca3af;
}

/* Category section */
.zb-section-title {
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}

.zb-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1024px) {
  .zb-cat-grid { grid-template-columns: minmax(0, 1fr); }
}

.zb-mini {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  transition: background .16s ease;
}
.zb-mini:hover { background: #f9fafb; }
.zb-mini img {
  width: 100%;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(229, 231, 235, 0.9);
}
.zb-mini-title {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
}
.zb-mini-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .zb-post {
    grid-template-columns: minmax(0, 1fr);
  }
  .zb-post-cover img {
    height: 160px;
  }
}

