/* 病例详情页面专用样式 */

/* 诊断结果样式 - 简洁低调 */
#case-diagnosis {
  animation: fadeIn 0.4s ease-out;
}

#case-diagnosis > div {
  transition: box-shadow 0.2s ease;
}

#case-diagnosis > div:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#diagnosis-text {
  color: #1f2937;
  line-height: 1.6;
}

#diagnosis-detail {
  animation: fadeIn 0.4s ease-out 0.1s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 难度徽章样式(2026-09-11 外援原稿:方角小徽章,按级分色——L1浅蓝/L2蓝/L3琥珀/L4橙/L5红) */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.difficulty-badge:hover {
  transform: scale(1.05);
}

.difficulty-L1 {
  background-color: #eff6ff;
  color: #1e40af;
}

.difficulty-L2 {
  background-color: #dbeafe;
  color: #1e3a8a;
}

.difficulty-L3 {
  background-color: #fffbeb;
  color: #b45309;
}

.difficulty-L4 {
  background-color: #fff7ed;
  color: #c2410c;
}

.difficulty-L5 {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* 兼容旧的中文难度样式 */
.difficulty-入门 {
  background-color: #eff6ff;
  color: #1e40af;
}

.difficulty-初级 {
  background-color: #dbeafe;
  color: #1e3a8a;
}

.difficulty-中级 {
  background-color: #fffbeb;
  color: #b45309;
}

.difficulty-高级 {
  background-color: #fff7ed;
  color: #c2410c;
}

.difficulty-专家 {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* 切片卡片样式 */
.slice-card {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.slice-card:hover {
  border-color: var(--primary-color, #3b82f6);
  background-color: #f8fafc;
}

@media (max-width: 640px) {
  .slice-card {
    min-height: 90px;
    padding: 0.5rem;
  }
  
  .slice-card h3 {
    font-size: 0.7rem;
    min-height: 1.5rem;
  }
}

/* 病例内容动画 */
#case-content {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 卡片hover效果 */
.case-content .bg-white {
  transition: box-shadow 0.3s ease;
}

.case-content .bg-white:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 标题样式 */
#case-title {
  line-height: 1.4;
  word-break: break-word;
}

/* 按钮样式 */
.btn-primary,
a[href*="case-quiz"] {
  transition: all 0.3s ease;
}

.btn-primary:hover,
a[href*="case-quiz"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 统计信息样式 */
#stat-slice-count,
#stat-case-count {
  font-weight: 600;
}

/* 搜索框优化样式 */
#detail-search-input {
  transition: all 0.2s ease;
}

#detail-search-input:hover {
  border-color: #93c5fd;
}

#detail-search-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 移动端菜单层级优化 */
@media (max-width: 768px) {
  /* 确保移动端菜单在最上层，高于搜索框和头部 */
  #mobileMenu {
    z-index: 60 !important;
  }
  
  /* 移动端搜索框的z-index应该低于菜单 */
  .sticky.z-40 {
    z-index: 30;
  }
}

/* 分享弹窗层级优化 */
#wechatShareModal {
  z-index: 9999 !important;
}

#wechatShareModal > div {
  z-index: 10000 !important;
  position: relative;
}

/* 下拉选择框优化样式 */
.error-report-form select {
  background-image: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* 下拉箭头基础样式 */
.error-report-form .select-arrow {
  transition: transform 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

/* hover状态 */
.error-report-form .relative.select-hovered .select-arrow {
  color: #f97316;
}

/* focus状态 */
.error-report-form .relative.select-focused select {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.error-report-form .relative.select-focused .select-arrow {
  color: #f97316;
  transform: rotate(180deg);
}

/* 有值选中时的状态 */
.error-report-form .relative.select-has-value .select-arrow {
  color: #374151;
}

.error-report-form .relative.select-has-value.select-hovered .select-arrow,
.error-report-form .relative.select-has-value.select-focused .select-arrow {
  color: #f97316;
}

