html,
body {
  overflow-y: auto;
}

/* 全局滚动条 - 必生效版 */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background: #6d28d9 !important;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b5cf6;
}

/* 火狐兼容 */
* {
  scrollbar-width: thin;
  scrollbar-color: #6d28d9 transparent;
}

/*.ad-swiper */
.ad-swiper .ad-a {
  width: 100%;
  height: 100%;
  display: inline-block;
  border-radius: 8px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

* {
  box-sizing: border-box;
}

body.custom-site-body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei",
    sans-serif;
  color: #111827;
  background: #f6f8fb;
}

a {
  text-decoration: none;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
}
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: 1200px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-menu {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.site-menu a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 600;
}

.site-menu a:hover {
  color: #fff;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
}

.site-btn--primary {
  background: #2563eb;
  color: #fff;
}

.site-btn--light {
  background: #fff;
  color: #2563eb;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 70px 0 26px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin-top: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: #94a3b8;
}

/* Card */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.post-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.post-card__thumb {
  display: block;
  height: 220px;
  background: #e5e7eb;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.post-card__body {
  padding: 24px;
}

.post-card__body h3 {
  margin: 0 0 12px;
}

.post-card__body a {
  color: #111827;
}

.post-card__body p {
  color: #6b7280;
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 900px) {
  .site-header__inner {
    height: auto;
    padding: 18px 24px;
    flex-direction: column;
    gap: 16px;
  }

  .site-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .post-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
