﻿/* ========== 项目案例页（cases.html）：海报 / 涉及行业 / 案例筛选 / 案例列表 ==========
   站内主蓝：#0092d8（与其他页面一致） */

/* ---------- 海报（全屏，图片 caseb.jpg 铺满；白色基调，不用深色遮罩压暗） ---------- */
.cs-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #FFFFFF; /* 白色兜底 */
}
.cs-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
/* 浅色微渐变：只做轻微过渡，不把海报压成灰 */
.cs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
  pointer-events: none;
}
.cs-hero-content {
  position: absolute;
  left: clamp(32px, 6vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 860px;
  z-index: 3;
}
.cs-hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
  margin: 0 0 clamp(22px, 2.5vw, 42px);
}
.cs-hero-desc {
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 1px;
  margin: 0;
}

/* ---------- 公共内容容器 ---------- */
.cs-inner {
  max-width: 1580px; /* 与产品页等宽屏页面容器宽度一致 */
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* ---------- 涉及行业（4 个圆形图标，图片 case11-14.png） ---------- */
.cs-industry {
  padding: clamp(60px, 7vw, 120px) 0 clamp(40px, 5vw, 80px);
  background: #FFFFFF;
}
.cs-section-title {
  text-align: center;
  font-size: var(--fs-h1);
  font-weight: 700;
  color: #142342;
  letter-spacing: 3px;
  margin: 0 0 clamp(40px, 4.5vw, 72px);
}
.cs-industry-grid {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 6vw, 110px);
  flex-wrap: wrap;
}
.cs-industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  cursor: pointer;
}
.cs-industry-icon {
  width: clamp(72px, 7vw, 116px);
  height: clamp(72px, 7vw, 116px);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* 色块已由图片替代 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cs-industry-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cs-industry-item:hover .cs-industry-icon {
  transform: translateY(-6px);
}
.cs-industry-name {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: #333333;
  letter-spacing: 1px;
}

/* ---------- 案例筛选：6 个等宽标签（矩形，选中蓝色高亮） ---------- */
.cs-filter {
  padding: 0 0 clamp(24px, 2.4vw, 40px);
  background: #FFFFFF;
}
.cs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.4vw, 24px);
}
.cs-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: clamp(12px, 1.2vw, 18px) clamp(16px, 1.6vw, 26px);
  border: none;
  border-radius: 8px; /* 矩形小圆角 */
  background: #FFFFFF;
  color: #333333;
  font-size: var(--fs-lead);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.cs-tab:hover {
  color: #0092d8;
  background: #F0F7FC;
}
.cs-tab.active {
  background: #3EBDED; /* 设计图亮蓝高亮 */
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(62, 189, 237, 0.35);
}

/* ---------- 案例展示：每个标签一组幻灯片（图片+文字+链接，左右切换） ---------- */
.cs-cases {
  background: #F3F5F8;
  padding: clamp(18px, 2vw, 30px) 0 clamp(70px, 7vw, 120px);
}

/* 标签面板：默认隐藏，激活显示 */
.cs-panel {
  display: none;
  position: relative;
}
.cs-panel.active {
  display: block;
}

/* 幻灯片容器：横向滚动轨道，所有 slide 排成一行 */
.cs-slides {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: clamp(12px, 1.2vw, 20px);
  box-shadow: 0 8px 30px rgba(20, 35, 66, 0.08);
  background: #3A4A6B;
  cursor: grab;
  scrollbar-width: none; /* Firefox 隐藏滚动条 */
  -ms-overflow-style: none;
}
.cs-slides::-webkit-scrollbar {
  display: none; /* Chrome/Safari 隐藏滚动条 */
}
.cs-slides.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

/* 单个幻灯片：整幅背景图 + 右侧悬浮文字模块 */
.cs-slide {
  flex: 0 0 100%;
  position: relative;
  display: block;
  min-height: clamp(400px, 38vw, 620px);
  background: #3A4A6B;
  scroll-snap-align: start;
}
/* 激活的 slide 保留 class 供 JS 索引定位，无需额外样式 */
/* 图片铺满整个幻灯片（宽度 = cs-slide 的 100%） */
.cs-feature-img {
  position: relative;
  width: 100%;
  min-height: clamp(400px, 38vw, 620px);
  background: #3A4A6B;
  overflow: hidden;
}
.cs-feature-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 按宽度或高度填满，保持比例不变形 */
  display: block;
}
/* 图片左下角：左右切换按钮 */
.cs-panel-arrows {
  position: absolute;
  left: clamp(16px, 1.8vw, 30px);
  bottom: clamp(16px, 1.8vw, 30px);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.cs-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(8px, 0.8vw, 12px) clamp(14px, 1.4vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: rgba(20, 35, 66, 0.35);
  color: #FFFFFF;
  font-size: var(--fs-lead);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.cs-arrow:hover {
  background: rgba(0, 146, 216, 0.75);
  border-color: rgba(255, 255, 255, 0.9);
}
.cs-arrow-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0092d8; /* 色块占位：后期替换为箭头图片 */
  flex: 0 0 auto;
}
.cs-arrow:nth-child(2) .cs-arrow-icon {
  order: 2;
}
/* 文字模块：悬浮在图片右侧、垂直居中的玻璃卡片 */
.cs-feature-text {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: clamp(360px, 34%, 580px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 3vw, 56px);
  background: rgba(255, 255, 255, 0.65); /* 半透背景 */
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  height: 100%;
}
.cs-feature-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: #142342;
  letter-spacing: 1px;
  margin: 0 0 clamp(16px, 1.6vw, 26px);
}
.cs-feature-desc {
  font-size: var(--fs-h4);
  line-height: 2;
  color: #555555;
  letter-spacing: 0.5px;
  margin: 0;
}
.cs-feature-btn {
  display: inline-block;
  margin-top: clamp(20px, 2.2vw, 38px);
  padding: clamp(10px, 1vw, 15px) clamp(28px, 2.8vw, 48px);
  background: #0092d8;
  color: #FFFFFF;
  font-size: var(--fs-lead);
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.cs-feature-btn:hover {
  background: #0079B8;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
  .cs-slide {
    display: flex;
    flex-direction: column;
  }
  .cs-feature-img {
    flex: none;
    width: 100%;
    min-height: 260px;
  }
  .cs-feature-text {
    position: static;
    transform: none;
    top: auto;
    right: auto;
    flex: none;
    width: 100%;
    height: auto; /* 重置桌面端的 height:100%，否则文字块被拉成整屏高、内容被裁掉 */
    background: #FFFFFF; /* 移动端无背景图叠压，实白底 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (max-width: 767.98px) {
  .cs-tabs {
    gap: 10px;
  }
  .cs-tab {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }
  /* 涉及行业：手机端一行 2 个（覆盖 components.css 全局纵向堆叠；
     components 选择器带 :not() 特异性为 (0,2,0)，这里用两个类对齐） */
  .cs-industry .cs-industry-grid {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 28px 0 !important;
  }
  .cs-industry .cs-industry-item { flex: 0 0 50% !important; max-width: 50% !important; width: auto !important; }
}
