/* =========================================================
   聚淼成型科技 - 案例归档 / 分类 / 标签页通用样式（v1.7 Final）
   文件：/assets/css/case-archive.css
   功能：Hero + 案例列表 + 分页 + 右侧栏（含联系我们）
   ========================================================= */

/* =========================================================
   Hero 区块（全宽出血）
   ========================================================= */
body.archive.tax-case_category .case-hero,
body.archive.tax-case_tag .case-hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 100px 20px 80px !important;
  background: linear-gradient(135deg, #0048a8 0%, #0b6cff 100%) !important;
  color: #fff !important;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Hero 内部内容 */
body.archive.tax-case_category .case-hero-inner,
body.archive.tax-case_tag .case-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s ease forwards;
}
.case-hero-inner h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.case-hero-inner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 25px;
}

/* 返回按钮 */
.case-hero .back-to-center {
  display: inline-block;
  padding: 10px 26px;
  background: #fff;
  color: #0b6cff;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.case-hero .back-to-center:hover {
  background: #0b6cff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(11,108,255,0.3);
}

/* 柔光动画 */
.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 fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes heroGlow {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.5; transform: scale(1.1); }
}

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

/* 左侧案例区 */
.case-left {
  flex: 1 1 auto;
  min-width: 0;
}

/* 右侧栏 */
.sidebar {
  flex: 0 0 280px;
}

/* =========================================================
   案例卡片
   ========================================================= */
.case-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.case-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.case-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.case-card-content {
  padding: 15px 18px;
}
.case-card-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.case-card-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px 15px;
  font-size: 14px;
  color: #777;
}
.case-meta a {
  color: #0b6cff;
  text-decoration: none;
  transition: 0.3s;
}
.case-meta a:hover { text-decoration: underline; }

/* =========================================================
   分页
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 50px;
}
.pagination a {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #0b6cff;
  text-decoration: none;
  transition: all 0.3s;
}
.pagination a:hover {
  background: #0b6cff;
  color: #fff;
}

/* =========================================================
   右侧栏
   ========================================================= */
.sidebar-box {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.sidebar-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0b6cff;
  margin-bottom: 15px;
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: 10px; }
.sidebar-box a {
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}
.sidebar-box a:hover { color: #0b6cff; }

/* 标签样式 */
.tags a {
  display: inline-block;
  background: #f2f6ff;
  color: #0b6cff;
  border: 1px solid #e1e9ff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin: 4px 6px 4px 0;
  transition: 0.3s;
}
.tags a:hover {
  background: #0b6cff;
  color: #fff;
}

/* ===== 联系我们模块 ===== */
.sidebar-box.contact-box {
  background: #f9fafc;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  padding: 20px;
  line-height: 1.8;
  color: #333;
}
.sidebar-box.contact-box h3 {
  color: #0b6cff;
}
.sidebar-box.contact-box a {
  color: #0b6cff;
  text-decoration: none;
}
.sidebar-box.contact-box a:hover {
  text-decoration: underline;
}
.sidebar-box.contact-box strong {
  color: #0048a8;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
  .case-center .container {
    flex-direction: column;
    gap: 30px;
  }
  .sidebar { flex: 0 0 100%; }
}
@media (max-width: 768px) {
  body.archive.tax-case_category .case-hero,
  body.archive.tax-case_tag .case-hero {
    padding: 60px 15px !important;
  }
  .case-hero-inner h1 { font-size: 28px; }
  .case-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}
