/* zhuji 站点 - 文章详情页 / 单页样式 */

/* 上一篇 / 下一篇 */
.zj-neighbor {
  display: flex;
  gap: 14px;
  padding: 16px;
}

.zj-neighbor .item {
  flex: 1;
  min-width: 0;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 12px 16px;
}

.zj-neighbor .lbl {
  display: block;
  font-size: 12px;
  color: var(--zj-text-muted);
  margin-bottom: 6px;
}

.zj-neighbor .item.right {
  text-align: right;
}

.zj-neighbor a {
  display: block;
  color: var(--zj-text);
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.zj-neighbor a:hover {
  color: var(--zj-primary);
}

/* 相关推荐 */
.zj-related-card {
  padding: 0 16px 16px;
}

.zj-related-card .zj-panel-title {
  padding-top: 16px;
}

.zj-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 16px;
}

.zj-related-item {
  display: block;
  border: 1px solid #eceef2;
  border-radius: 10px;
  overflow: hidden;
  background: var(--zj-card-bg, #fff);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.zj-related-item:hover {
  transform: translateY(-3px);
  border-color: #dfe4ec;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
}

.zj-related-item .thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(120deg, #25384f, #3a5877);
}

.zj-related-item .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.zj-related-item:hover .thumb img {
  transform: scale(1.04);
}

.zj-related-item .info {
  display: block;
  padding: 11px 13px 12px;
}

.zj-related-item .t {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 41px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--zj-text);
  transition: color .2s;
}

.zj-related-item .m {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--zj-text-muted);
}

.zj-related-item:hover .t {
  color: var(--zj-primary);
}

@media (max-width: 900px) {
  .zj-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.zj-article {
  padding: 26px 30px 30px;
}

.zj-article-head {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--zj-border);
}

.zj-article-head h1 {
  font-size: 26px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.zj-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--zj-text-muted);
}

.zj-article-meta .zj-meta-op {
  color: var(--zj-primary);
  cursor: pointer;
}

.zj-article-meta .zj-meta-op:hover {
  text-decoration: underline;
}

.zj-article-content {
  padding: 20px 0 10px;
  font-size: 15px;
  line-height: 1.9;
  color: #374151;
}

.zj-article-content h2 {
  font-size: 19px;
  margin: 26px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--zj-primary);
}

.zj-article-content h3 {
  font-size: 16px;
  margin: 20px 0 10px;
}

.zj-article-content p {
  margin-bottom: 14px;
}

.zj-article-content ul,
.zj-article-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}

.zj-article-content ol {
  list-style: decimal;
}

.zj-article-content li {
  margin-bottom: 6px;
}

.zj-article-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid #ffd591;
  background: #fffbf5;
  border-radius: 0 8px 8px 0;
  color: #8a6d3b;
  font-size: 14px;
}

.zj-article-content table {
  margin: 16px 0;
  border: 1px solid var(--zj-border);
  font-size: 14px;
}

.zj-article-content th {
  background: #f6f9fc;
  font-weight: 600;
}

.zj-article-content th,
.zj-article-content td {
  border: 1px solid var(--zj-border);
  padding: 10px 12px;
  text-align: left;
}

.zj-article-content img {
  border-radius: var(--zj-radius-sm);
  margin: 12px 0;
}

.zj-article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px dashed var(--zj-border);
  border-bottom: 1px dashed var(--zj-border);
}

.zj-article-actions .zj-btn.is-on {
  color: var(--zj-accent);
  border-color: var(--zj-accent);
  background: #fff5f0;
}

.zj-article-tags {
  padding: 16px 0 4px;
}

.zj-article-tags a {
  margin-right: 8px;
}

.zj-copyright {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f7f9fb;
  border-radius: var(--zj-radius-sm);
  font-size: 13px;
  color: var(--zj-text-sub);
}

.zj-prev-next {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.zj-prev-next a {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--zj-border);
  border-radius: var(--zj-radius-sm);
  background: #fff;
  font-size: 13px;
  color: var(--zj-text-sub);
}

.zj-prev-next a:hover {
  border-color: var(--zj-primary);
  color: var(--zj-primary);
}

/* 相关推荐 */
.zj-related {
  padding: 18px 20px;
}

.zj-related ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--zj-border);
  font-size: 14px;
}

.zj-related ul li:last-child {
  border-bottom: none;
}

.zj-related ul li span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zj-primary);
  margin-right: 8px;
  vertical-align: middle;
}

/* QQ群 */
.zj-qq-group {
  margin: 18px 0 4px;
  padding: 10px 14px;
  background: #f7f9fb;
  border-radius: var(--zj-radius-sm);
  text-align: center;
  font-size: 14px;
  color: var(--zj-text);
}

.zj-qq-group b {
  color: var(--zj-primary);
}

/* 分享到 */
.zj-share {
  margin-top: 18px;
  text-align: center;
}

.zj-share-label {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--zj-text-muted);
}

.zj-share-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.zj-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: transform .2s, opacity .2s;
}

.zj-share-btn:hover {
  transform: translateY(-2px);
  opacity: .85;
}

/* 快捷工具按钮 */
.zj-quick-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.zj-quick-links a {
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--zj-primary);
  color: #fff;
  font-size: 13px;
  transition: opacity .2s;
}

.zj-quick-links a:hover {
  opacity: .85;
  color: #fff;
}

/* 评论 */
.zj-comments {
  padding: 18px 20px 24px;
}

.zj-comment-list li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--zj-border);
}

.zj-comment-list .zj-avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.zj-comment-main {
  flex: 1;
  min-width: 0;
}

.zj-comment-main .top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.zj-comment-main .top b {
  font-size: 14px;
}

.zj-comment-main .top span {
  font-size: 12px;
  color: var(--zj-text-muted);
}

.zj-comment-main .top .reply {
  margin-left: auto;
  font-size: 12px;
  color: var(--zj-primary);
  cursor: pointer;
}

.zj-comment-main .text {
  font-size: 14px;
  color: #374151;
  line-height: 1.8;
}

.zj-comment-main .ops {
  margin-top: 6px;
  font-size: 12px;
  color: var(--zj-text-muted);
  cursor: pointer;
}

.zj-comment-reply {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f7f9fb;
  border-radius: var(--zj-radius-sm);
  display: flex;
  gap: 10px;
}

.zj-comment-reply .zj-avatar {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.zj-comment-form {
  margin-top: 18px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--zj-border);
  border-radius: var(--zj-radius-sm);
}

.zj-comment-form .row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.zj-comment-form .row .zj-input {
  flex: 1;
}

.zj-comment-form .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 单页（关于我们等） */
.zj-page {
  padding: 26px 30px 34px;
}

.zj-page h1 {
  font-size: 22px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--zj-border);
}

.zj-page .zj-article-content {
  padding-top: 6px;
}

/* 404 */
.zj-404 {
  padding: 70px 20px;
  text-align: center;
}

.zj-404 .code {
  font-size: 90px;
  font-weight: 700;
  color: var(--zj-primary);
  line-height: 1;
  margin-bottom: 12px;
}

.zj-404 p {
  color: var(--zj-text-sub);
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .zj-article,
  .zj-page {
    padding: 20px 16px;
  }

  .zj-article-head h1 {
    font-size: 20px;
  }
}
