/**
 * 司法判例 - 列表页 & 详情页
 */

.judicial-cases-page,
.judicial-case-detail-page {
  padding-top: 0;
  background: #F9FAFB;
  min-height: 100vh;
}

/* ===== 横条式 Banner（顶部） ===== */
.jc-case-banner {
  background: linear-gradient(90deg, #197afc 0%, #1d4ed8 100%);
  padding: 20px 0;
  margin-top: 64px;
  box-shadow: 0 2px 12px rgba(25, 122, 252, 0.2);
}

.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 0;
  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;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: #197afc;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.jc-banner-phone:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  color: #1d4ed8;
}

@media (max-width: 768px) {
  .jc-case-banner {
    padding: 16px 0;
    margin-top: 56px;
  }
  .jc-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .jc-banner-title {
    font-size: 1.125rem;
  }
  .jc-banner-desc {
    font-size: 0.875rem;
  }
  .jc-banner-phone {
    width: 100%;
    justify-content: center;
  }
}

/* ===== 列表页 Hero ===== */
.jc-hero {
  padding: 48px 0 56px;
  background: linear-gradient(to bottom right, #F9FAFB, #EFF6FF);
}

.jc-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.jc-hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #197afc 0%, #1d4ed8 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jc-hero-icon i {
  font-size: 1.75rem;
  color: #fff;
}

.jc-hero-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.jc-hero-desc {
  font-size: 1rem;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 16px;
}

.jc-hero-meta {
  font-size: 0.9rem;
  color: #6B7280;
}

.jc-hero-meta i {
  margin-right: 6px;
}

.jc-hero-cta {
  margin-top: 24px;
}

.jc-hero-cta .btn {
  padding: 14px 32px;
  font-size: 1rem;
}

/* CTA 区块 - 与 copyright 页一致 */
.rl-cta {
  padding: 64px 0 80px;
  background: linear-gradient(135deg, #197afc 0%, #1d4ed8 100%);
  text-align: center;
}

/* 司法判例页 CTA 顶部底部统一 padding，修复错位 */
.judicial-cases-page .rl-cta,
.judicial-case-detail-page .rl-cta {
  padding: 48px 0;
}

/* 司法判例页：移除 CTA 与页脚之间多余留白 */
.judicial-cases-page,
.judicial-case-detail-page {
  padding-bottom: 0;
}

.rl-cta h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.rl-cta p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.rl-cta .btn {
  background: #FFFFFF;
  color: #197afc;
  padding: 16px 40px;
  font-weight: 600;
}

.rl-cta .btn:hover {
  background: rgba(255, 255, 255, 0.95);
}

.rl-cta-btn {
  background: #fff !important;
  color: #197afc !important;
  padding: 20px 48px !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* ===== 筛选栏 ===== */
.judicial-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;
}

/* ===== 列表 ===== */
.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 {
  margin-bottom: 0;
  border-bottom: 1px solid #E5E7EB;
}

.jc-list-item:last-of-type {
  border-bottom: none;
}

.jc-item-link {
  display: block;
  padding: 20px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.jc-item-link:hover {
  background: #F9FAFB;
  margin: 0 -20px;
  padding: 20px;
}

.jc-item-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.jc-item-type {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
}

.jc-type-trademark { background: #DBEAFE; color: #1d4ed8; }
.jc-type-copyright { background: #D1FAE5; color: #047857; }
.jc-type-patent { background: #FEF3C7; color: #B45309; }

.jc-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.5;
}

.jc-item-link:hover .jc-item-title {
  color: #197afc;
}

.jc-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #6B7280;
}

.jc-item-meta i {
  margin-right: 6px;
  width: 14px;
  text-align: center;
}

/* ===== 分页 ===== */
.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-info {
  font-size: 0.9rem;
  color: #6B7280;
}

.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;
}

/* 站内关联内链（SEO 权重） */
.jc-internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
  font-size: 0.9rem;
}

.jc-internal-links a {
  color: #197afc;
  text-decoration: none;
}

.jc-internal-links a:hover {
  text-decoration: underline;
}

/* ===== SEO 说明 ===== */
.jc-seo-note {
  margin-top: 48px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}

.jc-seo-note h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.jc-seo-note p {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.7;
  margin: 0;
}

/* ===== 详情页 ===== */
.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-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.jc-detail-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E5E7EB;
}

.jc-detail-type {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 12px;
}

.jc-detail-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
  margin: 0;
}

.jc-detail-meta {
  margin-bottom: 24px;
}

.jc-meta-row {
  font-size: 0.95rem;
  color: #4B5563;
  margin-bottom: 8px;
}

.jc-meta-row i {
  width: 20px;
  margin-right: 8px;
  color: #9CA3AF;
}

.jc-detail-summary,
.jc-detail-content {
  margin-bottom: 28px;
}

.jc-detail-summary h3,
.jc-detail-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.jc-detail-summary p,
.jc-content-body {
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.8;
}

.jc-content-body {
  white-space: pre-wrap;
}

.jc-detail-footer {
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

/* ===== 详情页新布局：左侧导航 + 主内容（参考判例方案） ===== */
.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: 24px;
  line-height: 1.5;
}

.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;
  padding: 0;
  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 0;
  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 24px 32px 0;
}

.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 0;
}

.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;
}

.jc-fulltext-body .jc-text-content,
.jc-legal-body .jc-text-content {
  white-space: normal;
}

.jc-text-content .jc-paragraph {
  margin: 0 0 0.75em 0;
  line-height: 1.9;
}

.jc-text-content .jc-paragraph:last-child {
  margin-bottom: 0;
}

.jc-text-content .jc-empty-value {
  color: #9CA3AF;
  font-style: italic;
}

/* 站内关联 - 相关判例 */
.jc-related-section {
  padding-top: 8px;
}

.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;
}

/* 判例详情页底部内链 */
.jc-detail-internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
  font-size: 0.9rem;
}

.jc-detail-internal-links a {
  color: #197afc;
  text-decoration: none;
}

.jc-detail-internal-links a:hover {
  text-decoration: underline;
}

.jc-list-empty {
  padding: 40px 20px;
  text-align: center;
  color: #6B7280;
}

@media (max-width: 900px) {
  .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: 24px;
  }

  .jc-field-grid {
    grid-template-columns: 1fr;
  }
}
