/* =========================================
   银发财经 — 案例详情页专属样式
   用途：仅 case_detail.html 模板生成的页面引用
   隔离说明：所有类名以 .case- 为前缀或具有页面特异性
   ========================================= */

/* ---- Hero 区 ---- */
.case-hero {
  color: #fff;
  padding: 32px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #065f46, #059669);
}
.case-hero .ch-left { flex: 1; min-width: 0; }
.case-hero .ch-emoji { font-size: 48px; display: block; margin-bottom: 8px; }
.case-hero .ch-name { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.case-hero .ch-province { font-size: 14px; opacity: 0.85; margin-bottom: 8px; }
.case-hero .ch-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  font-size: 13px;
  font-weight: 600;
}
.case-hero .ch-meta { font-size: 12px; opacity: 0.7; margin-top: 8px; }

/* ---- 返回按钮（深色背景专用） ---- */
.case-back-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.case-back-btn:hover { background: rgba(255,255,255,0.25); }

/* ---- 内容区 ---- */
.case-content { max-width: 900px; margin: 0 auto; padding: 30px; }

/* ---- 评分网格 ---- */
.case-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.case-score-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  border-left: 4px solid #059669;
}
.case-score-card .sc-val { font-size: 28px; font-weight: 800; color: #059669; display: block; }
.case-score-card .sc-lbl { font-size: 12px; color: #666; margin-top: 4px; }

/* ---- 信息网格 ---- */
.case-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 28px;
}
.case-info-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px 18px;
}
.case-info-item .label {
  color: #999;
  font-size: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.case-info-item .value { color: #333; font-weight: 600; font-size: 15px; }

/* ---- 亮点标签 ---- */
.case-highlight-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.case-highlight-tag {
  background: #d1fae5;
  color: #065f46;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ---- 章节 ---- */
.case-section { margin-bottom: 28px; }
.case-section h2 {
  font-size: 17px;
  color: #444;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

/* ---- 相关推荐 ---- */
.case-related-section { margin-top: 32px; padding-top: 24px; border-top: 2px solid #e5e7eb; }
.case-related-section h3 { font-size: 15px; color: #444; margin-bottom: 14px; }
.case-related-list { display: flex; flex-direction: column; gap: 10px; }
.case-related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.case-related-item:hover {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.case-related-item .ri-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}
.case-related-item .ri-tag {
  font-size: 11px;
  color: #059669;
  background: #f0fdf4;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .case-hero { padding: 24px 16px; }
  .case-hero .ch-name { font-size: 22px; }
  .case-content { padding: 16px; }
  .case-score-grid { grid-template-columns: repeat(2, 1fr); }
}
