/**
 * 问答站列表 & 详情（参照 chongfa judicial_cases.css）
 */

.zq-cases-page,
.zq-case-detail-page {
  padding-top: 0;
  background: #F9FAFB;
  min-height: 100vh;
  padding-bottom: 0;
}

.zq-cases-page + .site-footer,
.zq-case-detail-page + .site-footer {
  margin-top: 0;
}

/* Banner */
.jc-case-banner {
  background: linear-gradient(90deg, #197afc 0%, #1d4ed8 100%);
  padding: 20px 0;
  margin-top: 64px;
}

/* 详情页主内容区顶部横幅（容器全宽） */
.jc-case-banner--detail,
.jc-case-banner--inline {
  margin-top: 0;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 8px;
}

.jc-case-banner--detail .jc-banner-inner,
.jc-case-banner--inline .jc-banner-inner {
  flex-wrap: wrap;
}

.jc-case-banner--detail .jc-banner-title,
.jc-case-banner--inline .jc-banner-title {
  font-size: 1.05rem;
}

.jc-case-banner--detail .jc-banner-desc,
.jc-case-banner--inline .jc-banner-desc {
  font-size: 0.8125rem;
}

.jc-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.jc-banner-text { flex: 1; min-width: 200px; }

.jc-banner-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.4;
}

.jc-banner-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

.jc-banner-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  background: #fff;
  color: #197afc;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100%;
}

/* CTA：干净白底按钮，靠边框与浮起暗示可点 */
.jc-cta-action {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 4px 14px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.jc-cta-action:hover {
  background: #fff;
  color: #1565d8;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 6px 20px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.06);
}

.jc-cta-action:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.jc-cta-action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.jc-cta-label {
  line-height: 1.35;
}

.jc-cta-icon {
  flex-shrink: 0;
  font-size: 0.95em;
  opacity: 0.92;
}

.jc-case-banner--detail .jc-cta-action,
.jc-case-banner--inline .jc-cta-action {
  padding: 9px 16px;
  font-size: 0.8125rem;
  border-radius: 8px;
}

/* CTA */
.rl-cta {
  padding: 48px 0;
  background: linear-gradient(135deg, #197afc 0%, #1d4ed8 100%);
  text-align: center;
}

.rl-cta h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.rl-cta p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.rl-cta-btn {
  background: #fff !important;
  color: #197afc !important;
  padding: 16px 36px !important;
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 4px 14px rgba(15, 23, 42, 0.08) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
}

.rl-cta-btn.jc-cta-action:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 20px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

/* Page shell + category sidebar（HTML 链接；移动端 details 折叠，桌面端常显） */
.zq-shell-container { padding-top: 24px; padding-bottom: 32px; }

.zq-page-shell {
  --zq-sidebar-width: 248px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.zq-page-main {
  flex: 1;
  min-width: 0;
}

.zq-category-sidebar {
  width: var(--zq-sidebar-width, 248px);
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 20px 16px;
}

.zq-sidebar-details {
  margin: 0;
}

.zq-sidebar-summary {
  display: none;
  list-style: none;
  cursor: pointer;
}

.zq-sidebar-summary::-webkit-details-marker,
.zq-sidebar-summary::marker {
  display: none;
  content: '';
}

.zq-sidebar-panel {
  display: block;
}

.zq-sidebar-title {
  margin: 0 0 14px;
  padding: 0 10px 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827;
  border-bottom: 1px solid #E5E7EB;
}

.zq-sidebar-nav { display: block; }

.zq-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zq-sidebar-list li { margin: 0; }

.zq-sidebar-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #374151;
  text-decoration: none;
  line-height: 1.5;
  word-break: break-word;
}

.zq-sidebar-link:hover {
  background: #EFF6FF;
  color: #197afc;
}

.zq-sidebar-link.active {
  background: #197afc;
  color: #fff;
  font-weight: 600;
}

.zq-page-main .jc-list-section { padding-top: 0; }
.zq-page-main .jc-breadcrumb { padding-top: 0; }

.footer-modern .footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 32px 48px;
  margin-bottom: 32px;
  align-items: start;
}

.footer-about {
  margin-bottom: 0;
}

.footer-col-sitemap {
  min-width: 0;
}

.footer-sitemap-section {
  margin-bottom: 0;
}

.footer-sitemap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px 18px;
}

@media (min-width: 1200px) {
  .footer-sitemap {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.footer-sitemap a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-sitemap a:hover { color: #fff; }

/* Filter — legacy, kept if reused */
.zq-cases-page .container > .jc-filter-bar:first-child {
  padding-top: 32px;
}

.jc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #E5E7EB;
}

.jc-filter-label { font-size: 0.9rem; color: #6B7280; }

.jc-filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.jc-tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #6B7280;
  background: #fff;
  border: 1px solid #E5E7EB;
  text-decoration: none;
  transition: all 0.2s;
}

.jc-tag:hover { color: #197afc; border-color: #197afc; }
.jc-tag.active { color: #fff; background: #197afc; border-color: #197afc; }

/* List */
.jc-list-section { padding: 32px 0; }

.jc-list-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 20px;
}

.jc-list { list-style: none; padding: 0; margin: 0; }

.jc-list-item { border-bottom: 1px solid #F3F4F6; }
.jc-list-item:last-of-type { border-bottom: none; }

.jc-item-link {
  display: block;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.jc-item-link:hover {
  background: #F9FAFB;
  margin: 0 -16px;
  padding: 16px;
  border-radius: 6px;
}

.jc-item-title-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.jc-item-type {
  flex-shrink: 0;
  margin-top: 3px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  line-height: 1.4;
}

.jc-item-type,
.jc-related-type {
  background: #EDE9FE;
  color: #6D28D9;
}
.jc-type-depression { background: #DBEAFE; color: #1d4ed8; }
.jc-type-anxiety { background: #D1FAE5; color: #047857; }
.jc-type-stress { background: #FEF3C7; color: #B45309; }

.jc-item-title {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.5;
}

.jc-item-link:hover .jc-item-title { color: #197afc; }

.jc-item-date {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #9CA3AF;
  white-space: nowrap;
}

.jc-item-excerpt {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jc-list-empty {
  padding: 40px 20px;
  text-align: center;
  color: #6B7280;
}

/* Admin draft preview bar */
.zq-preview-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 16px;
  background: #451a03;
  color: #FDE68A;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.zq-preview-bar-text strong {
  color: #fff;
}

.zq-preview-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.zq-preview-bar-actions a {
  color: #FCD34D;
  text-decoration: none;
  font-weight: 600;
}

.zq-preview-bar-actions a:hover {
  text-decoration: underline;
}

.zq-admin-preview-page .site-header {
  position: relative;
  z-index: 100;
}

/* Pagination */
.jc-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.jc-pagination-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.jc-page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.jc-page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4B5563;
  background: #fff;
  border: 1px solid #E5E7EB;
  text-decoration: none;
  transition: all 0.2s;
}

.jc-page-num:hover:not(.active) {
  color: #197afc;
  background: #EFF6FF;
  border-color: #197afc;
}

.jc-page-num.active {
  color: #fff;
  background: #197afc;
  border-color: #197afc;
  pointer-events: none;
}

.jc-page-ellipsis { padding: 0 6px; font-size: 0.9rem; color: #9CA3AF; }

.jc-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #197afc;
  background: #fff;
  border: 1px solid #E5E7EB;
  text-decoration: none;
  transition: all 0.2s;
}

.jc-page-btn:hover:not(.disabled) { background: #EFF6FF; border-color: #197afc; }
.jc-page-btn.disabled { color: #9CA3AF; cursor: not-allowed; pointer-events: none; }

/* Detail */
.jc-breadcrumb { padding: 24px 0 16px; font-size: 0.9rem; }
.jc-breadcrumb a { color: #6B7280; text-decoration: none; }
.jc-breadcrumb a:hover { color: #197afc; }
.jc-breadcrumb-sep { color: #9CA3AF; margin: 0 8px; }
.jc-breadcrumb-current { color: #374151; }

.jc-detail-title-bar {
  background: linear-gradient(90deg, #197afc 0%, #1d4ed8 100%);
  color: #fff;
  padding: 16px 24px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  margin-top: 0;
  line-height: 1.5;
}

.jc-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-left: 1px solid #E5E7EB;
  border-right: 1px solid #E5E7EB;
}

.jc-detail-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #4B5563;
  text-decoration: none;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  transition: all 0.15s;
}

.jc-detail-tabs a:hover {
  color: #197afc;
  border-color: #BFDBFE;
  background: #EFF6FF;
}

.jc-detail-tabs a i { color: #197afc; font-size: 0.85rem; }

.jc-detail-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.jc-detail-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.jc-detail-nav {
  flex-shrink: 0;
  width: 200px;
  padding: 24px 0 24px 24px;
  border-right: 1px solid #E5E7EB;
}

.jc-nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E7EB;
}

.jc-nav-list { list-style: none; padding: 0; margin: 0; }
.jc-nav-list li { margin-bottom: 4px; }

.jc-nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: #4B5563;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.jc-nav-list a:hover { color: #197afc; background: #EFF6FF; }
.jc-nav-list a i { color: #197afc; width: 18px; text-align: center; }

.jc-detail-main { flex: 1; min-width: 0; padding: 24px; }

.jc-detail-card .jc-detail-main { padding: 24px; }

.jc-detail-section { margin-bottom: 28px; }
.jc-detail-section:last-of-type { margin-bottom: 0; }

.jc-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px;
}

.jc-section-title i { color: #197afc; }

.jc-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.jc-field-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}

.jc-field-label { font-size: 0.8rem; color: #6B7280; margin-bottom: 4px; }
.jc-field-value { font-size: 0.95rem; color: #111827; line-height: 1.5; }

.jc-fulltext-body,
.jc-legal-body {
  padding: 16px 20px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.9;
}

/* Related list (legacy list pages) */
.jc-related-list { list-style: none; padding: 0; margin: 0; }
.jc-related-item { border-bottom: 1px solid #E5E7EB; }
.jc-related-item:last-child { border-bottom: none; }

.jc-related-link {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.jc-related-link:hover {
  background: #F9FAFB;
  margin: 0 -16px;
  padding: 12px 16px;
}

.jc-related-link:hover .jc-related-title { color: #197afc; }

.jc-related-type {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

.jc-related-title { font-size: 0.95rem; font-weight: 500; color: #111827; line-height: 1.5; }
.jc-related-meta { display: block; font-size: 0.85rem; color: #6B7280; margin-top: 4px; }

/* ===== Q&A detail ===== */
.zq-case-detail-page .jc-breadcrumb { padding-top: 0; }

.jc-qa-hero {
  padding: 0 0 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #E5E7EB;
}

.jc-qa-title {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: #111827;
  line-height: 1.55;
}

.jc-qa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jc-meta-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: #6B7280;
  background: #F3F4F6;
}

.jc-meta-chip--link {
  color: #197afc;
  background: #EFF6FF;
  text-decoration: none;
}

.jc-meta-chip--link:hover { background: #DBEAFE; }

.jc-qa-article {
  margin-bottom: 36px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 24px 28px 28px;
}

.jc-answer-label {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
}

.jc-answer-body {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.8;
}

.jc-answer-body p { margin: 0 0 1em; }
.jc-answer-body p:last-child { margin-bottom: 0; }

.jc-answer-body h2 {
  margin: 1.5em 0 0.6em;
  padding-left: 10px;
  border-left: 3px solid #197afc;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.45;
}

.jc-answer-body h2:first-child { margin-top: 0; }

.jc-answer-body h3 {
  margin: 1.25em 0 0.5em;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1F2937;
}

.jc-answer-body ul,
.jc-answer-body ol {
  margin: 0.5em 0 1em;
  padding-left: 1.25em;
}

.jc-answer-body ul { list-style: disc; }
.jc-answer-body ol { list-style: decimal; }

.jc-answer-body li { margin-bottom: 0.35em; }

/* 正文 SEO 内链：视觉与普通文字一致，可点击跳转 */
.jc-answer-body a.zq-seo-link,
.jc-answer-body a[href*="fenmiao.cn"] {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  border-bottom: none;
  cursor: pointer;
}

.jc-answer-body a.zq-seo-link:hover,
.jc-answer-body a[href*="fenmiao.cn"]:hover {
  color: inherit;
  text-decoration: none;
}

.jc-answer-body a:not(.zq-seo-link):not([href*="fenmiao.cn"]) { color: #197afc; }
.jc-answer-body a:not(.zq-seo-link):not([href*="fenmiao.cn"]):hover { text-decoration: underline; }

.jc-inline-ad {
  margin: 1.25em 0;
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-left: 3px solid #197afc;
  border-radius: 4px;
}

/* 测评引导块：保持可点击的蓝色链接样式（覆盖正文 SEO 内链规则） */
.jc-answer-body .jc-inline-ad a,
.jc-inline-ad a {
  color: #197afc;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

.jc-inline-ad a:hover,
.jc-answer-body .jc-inline-ad a:hover {
  color: #197afc;
  text-decoration: underline;
}
.jc-inline-ad i { margin-right: 6px; }

.jc-disclaimer {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
  font-size: 0.8125rem;
  color: #9CA3AF;
  line-height: 1.6;
}

.jc-test-link {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: #6B7280;
}

.jc-test-link-action {
  margin-left: 8px;
  color: #197afc;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.jc-test-link-action:hover {
  color: #1d4ed8;
  border-bottom-color: rgba(29, 78, 216, 0.35);
}

.jc-related-panel { margin-bottom: 40px; }

.jc-category-tests-panel {
  margin: 0 0 28px;
  padding: 18px 20px 20px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}

.jc-category-tests-panel--prominent {
  margin: 8px 0 36px;
  padding: 24px 24px 26px;
  border-color: #BFDBFE;
  background: linear-gradient(180deg, #F8FBFF 0%, #fff 100%);
}

.jc-category-tests-header {
  margin-bottom: 18px;
}

.jc-category-tests-heading {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.jc-category-tests-panel--prominent .jc-category-tests-heading {
  font-size: 1.25rem;
}

.jc-category-tests-desc {
  margin: 0;
  font-size: 0.875rem;
  color: #4B5563;
  line-height: 1.6;
  max-width: 52em;
}

.jc-category-tests-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.jc-category-test-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #DBEAFE;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.jc-category-test-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 6px 16px rgba(25, 122, 252, 0.12);
  transform: translateY(-1px);
}

.jc-category-test-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.jc-category-test-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.45;
}

.jc-category-test-hint {
  font-size: 0.75rem;
  color: #6B7280;
}

.jc-category-test-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #197afc;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.jc-category-test-card:hover .jc-category-test-go {
  background: #1565d8;
}

.jc-category-test-go .fa-heart-pulse {
  font-size: 0.85rem;
}

/* legacy pill layout (unused on detail) */
.jc-category-tests-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jc-category-test-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #DBEAFE;
  border-radius: 999px;
  background: #F8FAFF;
  color: #1d4ed8;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jc-category-test-link:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1d4ed8;
}

.jc-category-test-icon {
  font-size: 0.7rem;
  opacity: 0.75;
}

.jc-related-panel { margin-bottom: 40px; }

.jc-related-panel--compact {
  margin-bottom: 28px;
}

.jc-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
}

.jc-related-heading {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
}

.jc-related-heading i {
  margin-right: 6px;
  color: #9CA3AF;
  font-size: 0.8125rem;
}

.jc-related-more {
  font-size: 0.8125rem;
  color: #6B7280;
  text-decoration: none;
  white-space: nowrap;
}

.jc-related-more:hover {
  color: #197afc;
}

.jc-related-compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jc-related-compact-link {
  display: block;
  padding: 9px 0;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  line-height: 1.5;
  border-bottom: 1px solid #F3F4F6;
  transition: color 0.15s ease;
}

.jc-related-compact-list li:last-child .jc-related-compact-link {
  border-bottom: none;
}

.jc-related-compact-link:hover {
  color: #197afc;
}

.jc-guess-link {
  padding: 0;
}

.jc-guess-link-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
}

.jc-guess-cat {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.4;
}

.jc-guess-title {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.jc-guess-link:hover .jc-guess-title {
  color: #197afc;
}

.jc-related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.zq-case-detail-page .jc-related-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.jc-related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.jc-related-card:hover {
  border-color: #93C5FD;
}

.jc-related-card:hover .jc-related-title { color: #197afc; }

.jc-related-card .jc-related-type { align-self: flex-start; }

.jc-related-card .jc-related-title {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.5;
}

.jc-related-card .jc-related-meta {
  font-size: 0.75rem;
  color: #9CA3AF;
}

@media (max-width: 900px) {
  .zq-page-shell { display: block; }
  .zq-category-sidebar {
    width: 100%;
    margin-bottom: 14px;
    padding: 0;
    border: none;
    background: transparent;
  }

  .zq-sidebar-details {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
  }

  .zq-sidebar-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #FAFBFC 0%, #fff 100%);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .zq-sidebar-summary-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }

  .zq-sidebar-summary-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
  }

  .zq-sidebar-summary-meta {
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .zq-sidebar-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #EFF6FF;
    color: #197afc;
    font-size: 0.6875rem;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .zq-sidebar-details[open] .zq-sidebar-chevron {
    transform: rotate(180deg);
    background: #DBEAFE;
  }

  .zq-sidebar-details[open] .zq-sidebar-summary {
    border-bottom: 1px solid #F3F4F6;
  }

  .zq-sidebar-panel {
    padding: 10px 12px 12px;
  }

  .zq-sidebar-title {
    display: none;
  }

  .zq-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: min(52vh, 360px);
    overflow-y: auto;
    padding-right: 2px;
  }

  .zq-sidebar-link {
    padding: 10px 12px;
    font-size: 0.875rem;
    border: 1px solid transparent;
  }

  .zq-sidebar-link:not(.active):hover {
    border-color: #E5E7EB;
    background: #F9FAFB;
  }

  .zq-sidebar-link.active {
    box-shadow: 0 1px 2px rgba(25, 122, 252, 0.15);
  }
  .footer-modern .footer-grid { grid-template-columns: 1fr; }
  .footer-sitemap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .jc-case-banner { padding: 16px 0; margin-top: 56px; }
  .jc-banner-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .jc-banner-phone { width: 100%; justify-content: center; }
  .jc-detail-layout { flex-direction: column; }
  .jc-detail-nav {
    width: 100%;
    padding: 20px 24px;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
  }
  .jc-nav-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .jc-nav-list li { margin-bottom: 0; }
  .jc-detail-main { padding: 20px 16px; }
  .jc-detail-card .jc-detail-main { padding: 20px 16px; }
  .jc-detail-tabs { padding: 10px 12px; }
  .jc-field-grid { grid-template-columns: 1fr; }
  .jc-qa-article { padding: 18px 16px 20px; }
  .jc-category-tests-cards { grid-template-columns: 1fr; }
  .jc-category-test-card {
    flex-direction: column;
    align-items: stretch;
  }
  .jc-category-test-go {
    justify-content: center;
  }
  .zq-case-detail-page .jc-related-grid,
  .jc-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 901px) {
  .zq-sidebar-summary { display: none !important; }

  .zq-sidebar-details .zq-sidebar-panel {
    display: block !important;
  }
}
