/* =========================================================
   聚淼成型科技 - 案例展示中心样式（v6.4 Final）
   功能：Hero 视觉区 + 搜索 + 案例卡片 + 右侧栏 + 响应式
   ========================================================= */

/* ===== Hero 区块 ===== */
.case-hero {
  background: linear-gradient(135deg, #0048a8 0%, #0b6cff 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
  overflow: hidden;
}

/* Hero 动画 */
.case-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}
.case-hero-inner h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.case-hero-inner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* 背景柔光动画 */
.case-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}
@keyframes heroGlow {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.5; transform: scale(1.1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 主体结构 ===== */
.case-center .container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 20px;
  box-sizing: border-box;
}

.case-left {
  flex: 1 1 auto;
  min-width: 0;
}
.sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* ===== 搜索栏 ===== */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}
.search-bar input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}
.search-bar button {
  background: #0b6cff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .3s;
}
.search-bar button:hover {
  background: #005ce6;
}

/* ===== 案例列表 ===== */
.case-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.case-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: all .3s ease;
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.case-card-content {
  padding: 15px;
}
.case-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}
.case-card p {
  font-size: 14px;
  color: #555;
}
.case-meta {
  display: flex;
  justify-content: space-between;
  padding: 0 15px 15px;
  font-size: 13px;
  color: #777;
}

/* ===== 分页 ===== */
.pagination {
  text-align: center;
  margin-top: 40px;
}
.pagination a {
  display: inline-block;
  margin: 0 10px;
  color: #0b6cff;
  text-decoration: none;
  transition: color .3s;
}
.pagination a:hover {
  color: #005ce6;
}

/* ===== 右侧栏 ===== */
.sidebar-box {
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  padding: 20px;
}
.sidebar-box h3 {
  font-size: 18px;
  border-bottom: 2px solid #0b6cff;
  padding-bottom: 8px;
  margin-bottom: 15px;
}
.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-box li {
  margin-bottom: 8px;
}
.sidebar-box a {
  color: #333;
  transition: color .3s;
}
.sidebar-box a:hover {
  color: #0b6cff;
}
.tags a {
  display: inline-block;
  margin: 4px 6px;
  padding: 6px 12px;
  background: #f3f5ff;
  color: #0b6cff;
  border-radius: 20px;
  font-size: 13px;
  transition: all .2s;
}
.tags a:hover {
  background: #0b6cff;
  color: #fff;
}

/* ===== 无结果提示 ===== */
.no-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 10px;
  color: #666;
  font-size: 15px;
}

/* =========================================================
   📱 移动端自适应
   ========================================================= */
@media (max-width: 960px) {
  .case-center .container {
    flex-direction: column;
    gap: 30px;
  }
  .sidebar {
    width: 100%;
    order: 2;
  }
  .case-left {
    order: 1;
  }
  .search-bar {
    flex-direction: column;
    gap: 12px;
  }
  .search-bar button {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
  }
  .case-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
  .case-card img {
    height: 160px;
  }
  .case-hero-inner h1 {
    font-size: 28px;
  }
  .case-hero-inner p {
    font-size: 16px;
  }
}

/* =========================================================
   📱 超小屏
   ========================================================= */
@media (max-width: 600px) {
  .case-card h3 { font-size: 16px; }
  .case-card p { font-size: 13px; }
  .sidebar-box h3 { font-size: 16px; }
  .pagination a { font-size: 14px; }
}
