/* xzjq 主题 CMS 补充样式（列表分页、案例封面、文章详情） */

/* 分页链接与按钮统一外观 */
.pagination a.page-link,
.pagination button {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(120, 130, 150, 0.35);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.pagination a.page-link:hover { border-color: currentColor; }
.pagination button:disabled { opacity: 0.35; cursor: not-allowed; }

/* 空状态 */
.cms-empty {
  padding: 64px 24px;
  text-align: center;
  font-size: 15px;
  opacity: 0.55;
  border: 1px dashed rgba(120, 130, 150, 0.35);
  border-radius: 12px;
}

/* 案例封面图（CMS 内容驱动） */
#grid .item .cover,
.grid .item .cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: rgba(125, 140, 165, 0.12);
}
#grid .item .cover img,
.grid .item .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 文章详情页 */
.post {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.post-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 16px;
}
.post-title {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 16px;
}
.post-intro {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.72;
  margin: 0 0 28px;
  padding-left: 14px;
  border-left: 3px solid rgba(125, 140, 165, 0.4);
}
.post-cover {
  margin: 0 0 32px;
  border-radius: 14px;
  overflow: hidden;
}
.post-cover img { width: 100%; display: block; }
.post-body p {
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 18px;
}
/* 富文本正文插图 */
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 24px auto;
}
.post-body h2,
.post-body h3 { line-height: 1.5; margin: 28px 0 14px; }
.post-body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid rgba(125, 140, 165, 0.4);
  background: rgba(125, 140, 165, 0.08);
  border-radius: 0 8px 8px 0;
}
.post-body ul,
.post-body ol { padding-left: 22px; line-height: 1.9; }
.post-body li { margin: 6px 0; }
.post-body video,
.post-body iframe { max-width: 100%; border-radius: 10px; }
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
}
.post-tags span,
.post-body p:empty { display: none; }
.post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(120, 130, 150, 0.25);
}
.post-nav-item {
  font-size: 14px;
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-nav-item.right { text-align: right; margin-left: auto; }
.post-nav-item.muted { opacity: 0.35; }
.post-nav-back {
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(120, 130, 150, 0.35);
  border-radius: 8px;
  padding: 6px 14px;
  color: inherit;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .post { padding-top: 32px; }
  .post-nav { flex-wrap: wrap; }
  .post-nav-item { max-width: 100%; }
}

/* 案例分类 tab（服务端渲染，/cases 与 /cases?cat=<子分类>） */
.cms-case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 26px;
}
.cms-case-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(120, 130, 150, 0.35);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.cms-case-tab span { opacity: 0.6; font-size: 12px; }
.cms-case-tab:hover { border-color: currentColor; }
.cms-case-tab.is-active {
  border-color: currentColor;
  background: rgba(120, 130, 150, 0.12);
  font-weight: 600;
}
@media (max-width: 640px) {
  .cms-case-tabs { gap: 8px; }
  .cms-case-tab { padding: 6px 12px; font-size: 13px; }
}

/* ============ 运营横幅位（后台广告管理配置，无内容不渲染） ============ */
.op-banner {
  display: block;
  margin: 26px auto 6px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line, #dce7f4);
  background: linear-gradient(115deg, #e8f8fb, #edf3ff 60%, #f2ecff);
  box-shadow: 0 10px 26px rgba(22, 58, 110, 0.06);
  transition: transform 0.18s, box-shadow 0.18s;
}
.op-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(22, 58, 110, 0.12);
}
.op-banner img { display: block; width: 100%; }
.op-banner-text {
  display: block;
  padding: 46px 30px;
  text-align: center;
  color: var(--ink, #102343);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .op-banner { margin: 18px auto 4px; border-radius: 10px; }
  .op-banner-text { padding: 30px 16px; font-size: 15px; }
}
