/*** uncss> filename: D:/Others/mzy好好学习/3500 finalproject/wenzhou-3/css/index.css ***/
/*** uncss> filename: D:/Others/mzy好好学习/3500 finalproject/wenzhou-3/css/index.css ***/
* {
  /* 初始化 */
  margin: 0;
  padding: 0;
  /* 元素的总宽度和高度包含内边距和边框 */
  box-sizing: border-box;
}

body {
  /* 100%窗口高度 */
  height: 100vh;
  /* 弹性布局 水平+垂直居中 */
  display: flex;
  justify-content: center;
  align-items: center;
  /* 渐变背景 */
  background: linear-gradient(200deg, #e7f0fd, #accbee);
}

.container {
  /* 相对定位 */
  position: relative;
  /* 弹性布局 横向排列 允许换行 */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.container .box {
  position: relative;
  width: 275px;
  height: 275px;
  /* 溢出隐藏 */
  overflow: hidden;
  /* 动画过渡 */
  transition: 0.5s;
}

/* 鼠标移入，盒子变大 */
.container .box:hover {
  transform: scale(1.25);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.container .box .img-box {
  /* 绝对定位 */
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* 渐变遮罩（黑色——透明） 默认隐藏 */
.container .box .img-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #222, transparent);
  z-index: 1;
  opacity: 0;
  transition: 0.5s;
}

/* 鼠标移入，渐变遮罩显示 */
.container .box:hover .img-box::before {
  opacity: 1;
}

.container .box .img-box img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* 保持原有尺寸比例，裁切长边 */
  object-fit: cover;
}

.container .box .text-box {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  /* 弹性布局 元素位于容器的结尾 */
  display: flex;
  align-items: flex-end;
  color: #fff;
  z-index: 2;
}

.container .box .text-box h2 {
  font-size: 20px;
  margin-bottom: 10px;
  /* 默认移出可视范围 */
  transform: translateY(200px);
  transition: 0.5s;
}

.container .box:hover .text-box h2 {
  /* 鼠标移入，移入可视范围 */
  transform: translateY(0);
  /* 设置动画延迟时间 */
  transition-delay: 0.3s;
}

.container .box .text-box p {
  font-size: 13px;
  line-height: 20px;
  /* 默认移出可视范围 */
  transform: translateY(200px);
  transition: 0.5s;
}

.container .box:hover .text-box p {
  /* 鼠标移入，移入可视范围 */
  transform: translateY(0);
  /* 设置动画延迟时间 */
  transition-delay: 0.4s;
}

.container {
  position: relative;
  width: 800px;
  /* 根据需要调整宽度 */
  margin: 0 auto;
  /* 使容器水平居中 */
  /* 其他已有的样式 */
}

.row {
  display: flex;
  justify-content: center;
  /* 其他已有的样式 */
}

.container .box {
  position: relative;
  width: 200px;
  /* 根据需要调整宽度 */
  height: 300px;
  /* 根据需要调整高度 */
  /* 其他已有的样式 */
}


.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.7;
  filter: brightness(70%);
}

h1 {
  color: #ffffff;
  /* 设置标题颜色为白色 */
  font-family: cursive;
  /* 使用手写风格的字体 */
  font-size: 52px;
  /* 设置字体大小 */
  position: fixed;
  /* 固定标题位置 */
  top: 30px;
  /* 距离顶部的距离 */
  left: 50px;
  /* 距离左侧的距离 */
  z-index: 9999;
  /* 设置较高的层级，确保标题显示在最顶层 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* 添加文字阴影效果 */
  opacity: 0.9;
  /* 设置透明度 */
}



.enter {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.btn {
  display: inline-block;
  padding: 20px 30px;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background-color: #163f6b;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.btn:hover {
  transform: scale(1.1);
  background-color: #ff8f00;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}



.btn:hover:before {
  opacity: 1;
  transform: scale(1);
}