/* 案件预警页面样式 - 从 warningView.vue 转换 */
.empty-state { text-align: center; padding: 4rem 1rem; background-color: #fff; border-radius: 8px; margin-bottom: 1.5rem; }
.empty-state .empty-icon { font-size: 3rem; color: #ccc; margin-bottom: 1rem; }
.empty-state .empty-text { color: #999; font-size: 1rem; }
.content-tabs {
  display: flex; justify-content: center; margin: 2rem auto; max-width: 1200px;
  padding: 0 1rem; border-bottom: 1px solid #e0e0e0;
}
.content-tabs .tab-item {
  padding: 1rem 2rem; cursor: pointer; font-size: 1.1rem; font-weight: 500;
  transition: all 0.3s ease; position: relative;
}
.content-tabs .tab-item:hover { color: var(--primary-color); }
.content-tabs .tab-item.active { color: var(--primary-color); }
.content-tabs .tab-item.active::after {
  content: ""; position: absolute; bottom: -1px; left: 0; width: 100%;
  height: 3px; background-color: var(--primary-color);
}
.content-container { max-width: 1200px; margin: 0 auto; padding: 0 1rem 1rem; }
.list-item, .knowledge-item, .appeal-item {
  background-color: #fff; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.list-item:hover, .knowledge-item:hover, .appeal-item:hover {
  transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.case-list .item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.case-list .item-title { font-size: 1.25rem; font-weight: 600; margin: 0; color: #333; }
.case-list .item-date { color: #888; font-size: 0.9rem; white-space: nowrap; }
.case-list .item-desc {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.content-container .list-item .read-more {
  display: inline-block;
  width: auto;
  margin-left: auto;
  align-self: flex-end;
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.content-container .list-item .read-more:hover { background-color: var(--primary-color); color: #fff; }

.load-more { text-align: center; margin-top: 2rem; }
/* 详情页 */
.case-detail-container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; box-sizing: border-box; }
.case-detail-container h2 { width: 60%; font-size: 28px; margin: 1.5rem auto 1rem; text-align: center; font-weight: 600; }
.detail-content { width: 100%; }
.detail-content ol { list-style: decimal; margin: 0 0 1em; padding-left: 2em; }
.detail-content ul { list-style: disc; margin: 0 0 1em; padding-left: 2em; }
.detail-content li { margin: 0.4em 0; }
.detail-content img { display: block; width: 50%; max-width: 50%; height: auto; margin: 0 auto; }
p:has(> img.rich_pages.wxw-img), p:has(img.rich_pages.wxw-img) { text-align: center; }
p span img.rich_pages.wxw-img { display: block; margin: 0 auto; }
img.rich_pages.wxw-img { display: block; margin: 0 auto; }
img.rich_pages.wxw-img.__bg_gif { display: block; margin: 0 auto; }

.warning-faq-section {
  max-width: 1400px;
  margin: 0rem auto 4rem;
  padding: 0 2rem;
  box-sizing: border-box;
}

.warning-faq-shell {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.warning-faq-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.warning-faq-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding-bottom: 6px;
  color: #fe9906;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 3px solid #fe9906;
}

.warning-faq-title {
  margin: 0 0 0.75rem;
  color: #111111 !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.warning-faq-intro {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

.warning-faq-grid {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-content: start;
}

.warning-faq-card {
  position: relative;
  min-width: 0;
  min-height: 220px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.1rem 1rem 0.9rem;
  box-shadow: none;
}

.warning-faq-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff4e5;
  color: #fe9906;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.warning-faq-card-badge svg {
  width: 14px;
  height: 14px;
}

.warning-faq-card-badge-1 { background: #fff4e5; color: #fe9906; }
.warning-faq-card-badge-2 { background: #fff1f1; color: #ef5464; }
.warning-faq-card-badge-3 { background: #eef2ff; color: #6366f1; }
.warning-faq-card-badge-4 { background: #ecfdf5; color: #10b981; }
.warning-faq-card-badge-5 { background: #fffbeb; color: #d97706; }
.warning-faq-card-badge-6 { background: #eff6ff; color: #2563eb; }

.warning-faq-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  padding-right: 34px;
}

.warning-faq-index {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fe9906;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.warning-faq-card h3 {
  margin: 0;
  color: #111111 !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.warning-faq-question,
.warning-faq-answer {
  margin: 0;
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.7;
}

.warning-faq-question {
  margin-bottom: 0.5rem;
  color: #374151;
}

.warning-faq-question strong,
.warning-faq-answer strong {
  color: #fe9906 !important;
  font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .content-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  .content-tabs::-webkit-scrollbar {
    display: none;
  }
  .list-item, .knowledge-item, .appeal-item {
    padding: 1rem;
  }
  .case-list .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .case-list .item-title {
    font-size: 16px;
  }
  .case-list .item-date {
    font-size: 12px;
  }
  .item-desc {
    font-size: 13px;
  }
  .item-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .case-detail-container {
    padding: 1rem;
  }
  .case-detail-container h2 {
    width: 100%;
    font-size: 20px;
  }
  .warning-faq-section {
    max-width: 100%;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  .warning-faq-header {
    text-align: left;
    margin-bottom: 1.25rem;
  }
  .warning-faq-title {
    font-size: 20px;
    line-height: 1.4;
  }
  .warning-faq-intro {
    font-size: 12.5px;
    line-height: 1.7;
  }
  .warning-faq-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .warning-faq-card {
    min-height: auto;
    padding: 0.9rem 0.85rem 0.85rem;
    border-radius: 6px;
  }
  .warning-faq-card-head {
    align-items: flex-start;
    gap: 0.6rem;
    padding-right: 30px;
  }
  .warning-faq-index {
    width: 26px;
    height: 26px;
    font-size: 12.5px;
  }
  .warning-faq-card h3 {
    font-size: 14.5px;
  }
  .warning-faq-card-badge {
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
  }
  .warning-faq-card-badge svg {
    width: 12px;
    height: 12px;
  }
  .warning-faq-question,
  .warning-faq-answer {
    font-size: 12px;
    line-height: 1.75;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .warning-faq-section {
    max-width: 100%;
    padding: 0 1.25rem;
  }
  .warning-faq-header {
    text-align: left;
    margin-bottom: 1.25rem;
  }
  .warning-faq-title {
    font-size: 22px;
  }
  .warning-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .warning-faq-card h3 {
    font-size: 15px;
  }
  .warning-faq-question,
  .warning-faq-answer {
    font-size: 12.5px;
  }
}
.rich_media_title { display: flex; justify-content: center; }
