/* ==========================================================
   麒麟港生活 - 成功案例（cases.html / cases-detail.html）专属样式
   复用：style.css（.j-grid/.j-card 卡片） + news.css（布局/侧栏/分页/面包屑/详情）
   本文件仅补充：案例页卡片容器微调 + 三亮点区块 + CTA 按钮
   ========================================================== */

/* ======================= 列表页左侧：案例卡片容器 ======================= */
/* .j-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
} */

.cases-list { flex: 1; min-width: 0; }
.cases-list .j-grid { margin-bottom: 4px; }
/* 卡片阴影在浅色背景上适度收轻，保留悬浮反馈 */
.cases-list .j-card { box-shadow: 0 8px 22px rgba(17,36,67,.10); }
.cases-list .j-card:hover { box-shadow: 0 14px 34px rgba(17,36,67,.16); }
/* 分页与新闻页一致 */
.cases-list .page-nav { margin-top: 50px; }

/* 文件图片：固定高度 */
.j-pic { position: relative; margin: 8px 0 14px; border-radius: 8px; overflow: hidden; background: #f6f3ee; height: 170px; display: flex; align-items: center; justify-content: center; }
.j-pic a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.j-pic img { max-height: 100%; max-width: 100%; object-fit: contain; display: block; }
.j-pic em { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; color: #b9b3a6; z-index: 1; }


.j-pic .cat { position: absolute; top: 10px; left: 10px; background: #bfa060; color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 4px; z-index: 2; line-height: 1.4; }



/* ======================= 详情页：三亮点区块（難點/破局/結果） ======================= */
.case-highlights {
  margin: 28px 0 4px; padding: 24px 26px;
  background: #f7f4ee; border-radius: 10px;
  border-left: 4px solid var(--gold);
}
.case-highlights .j-block + .j-block { margin-top: 6px; }

/* ======================= CTA 按钮：education banner「預約升學評估」风格 ======================= */
.case-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content; /* 保证按钮宽度由内容撑开，margin auto 才生效 */
  margin: 38px auto 0; /* 上38px，左右auto水平居中 */
  padding: 15px 46px;
  border-radius: 10px;
  font-size: 17px;
  letter-spacing: 3px;
  background: linear-gradient(100deg, #cfb791, #eee2c8 55%, #cfb791);
  color: #1d2f52;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
  transition: all .3s ease;
  cursor: pointer;
}
.case-cta i { font-style: normal; display: inline-block; transition: transform .3s ease; }
.case-cta:hover { filter: brightness(1.1); transform: translateY(-2px); }
.case-cta:hover i { transform: translateX(6px); }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1200px) {
  .cases-list .j-card { padding: 24px 20px 22px; }
}

@media (max-width: 640px) {
  .cases-list .j-grid { grid-template-columns: 1fr; }
  .case-cta { display: flex; justify-content: center; width: 100%; }
}
