/* ==== Cases Page ==== */
body {
    margin: 0;
    font-family: "Microsoft YaHei", sans-serif;
    background: #fff;
    color: #333;
}

.intro {
  text-align: left; /* 整体靠左 */
  margin-left: 12%; /* 和主视觉对齐 */
}

/* 标题样式 */
.intro h2 {
  font-size: 3.2rem;  
  font-weight: 400;
  color: #000;      
  margin-bottom: 0.2rem;
  line-height: 1.2;     
}

/* 链接行样式 */
.intro .more-link a {
  font-size: 1.6rem; 
  color: #666;       
  font-weight: 300;    
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.2;  
}

.intro .more-link a:hover {
  color: #333; /* hover 时稍微变深 */
}

/* 文字容器：位置靠左、上下居中，层级高于背景和遮罩 */
.hero-content {
  position: absolute;
  top: 60%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 3; /* 确保在遮罩上层 */
  display: flex;
  flex-direction: column;
}

/* 链接样式 */
.hero-link {
  display: inline-block;
  margin-bottom: 2rem;
  text-align: left;
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  position: relative;
}


.hero-link .en {
  display: block;
  font-size: 2.2rem; 
  line-height: 1.2;
}
.hero-link .cn {
  display: block;
  font-size: 4rem; /* 调整 */
  line-height: 1.2;
}

/* 中文 + 下划线动画 */
.hero-link .cn {
  display: inline-block;   /* 让宽度随中文内容 */
  font-size: 4rem;
  line-height: 1.2;
  position: relative;
}

.hero-link .cn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px; /* 调整 */
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.hero-link:hover .cn::after {
  width: 100%; /* 跟随中文宽度 */
}

.container {
  max-width: 900px;   /* 最大宽度 */
  margin: 0 auto;     /* 水平居中 */
  column-count: 2;    /* 两列瀑布流 */
  column-gap: 16px;   /* 列间距 */
  padding: 0 16px;    /* 左右内边距，增加留白 */
}

.image-item {
  position: relative;
  margin-bottom: 16px;
  display: inline-block; /* 保持瀑布流中图片块的自然尺寸 */
  width: 100%; /* 占满列宽 */
  cursor: pointer;
  break-inside: avoid; /* 防止内容断开 */
  border-radius: 8px;
  overflow: hidden;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.case-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  border-radius: 0 0 8px 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  pointer-events: none;
}

.image-item > a {
  position: relative;
  display: block;
}

/* 悬停效果 */
.image-item:hover img {
  transform: scale(1.05);
}

.image-item:hover .case-caption {
  background: linear-gradient(90deg, #ff5f00cc, #ff8c1acc);
  box-shadow: 0 0 10px #ff5f00;
  color: #fff;
  font-weight: 600;
}


