/* ============================================
   阿晚科技 - 案例页样式 (case.css)
   ============================================ */
.clist { background: var(--bg-alt); }
.cfilt { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.cfilt button {
  padding: 6px 16px; border-radius: 18px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-secondary); font-size: 0.82rem; cursor: pointer;
  transition: all var(--transition);
}
.cfilt button.on { background: var(--primary); color: #fff; border-color: var(--primary); }

.cc {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 260px; cursor: pointer; box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.cc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cc img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cc:hover img { transform: scale(1.05); }
.cc-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,58,95,0.88) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; color: #fff;
}
.cc-ov .cat {
  display: inline-block; background: var(--primary); padding: 3px 12px;
  border-radius: 16px; font-size: 0.72rem; font-weight: 600; margin-bottom: 8px; width: fit-content;
}
.cc-ov h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cc-ov p { font-size: 0.82rem; opacity: 0.85; line-height: 1.5; }
.cc-data { display: flex; gap: 16px; margin-top: 10px; }
.cc-data .di { text-align: center; }
.cc-data .dn { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.cc-data .dl { font-size: 0.68rem; opacity: 0.8; }

/* 案例详情 */
.cdet { background: var(--bg); }
.cdet-hero { width: 100%; height: 320px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.cdet-hero img { width: 100%; height: 100%; object-fit: cover; }
.cdet-meta { display: flex; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.cdet-meta span { font-size: 0.85rem; color: var(--text-muted); }
.cdet-meta strong { color: var(--primary); }
.cdet-body { color: var(--text-secondary); line-height: 1.9; font-size: 0.92rem; max-width: 820px; margin: 0 auto; }
.cdet-body h2 { font-size: 1.15rem; color: var(--text); margin: 24px 0 12px; }
.cdet-body p { margin-bottom: 14px; }
.cdet-body img { border-radius: var(--radius); margin: 16px 0; width: 100%; }
.cdet-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.cdet-gal img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); }
.cdet-gal img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.cdet-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.cdet-nav a {
  flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.85rem; color: var(--text); transition: all var(--transition); display: flex; align-items: center; gap: 6px;
}
.cdet-nav a:hover { border-color: var(--primary); color: var(--primary); }

@media(max-width:768px){
  .cdet-gal { grid-template-columns: repeat(2, 1fr); }
}
