body {
  margin: 0%;
  background: linear-gradient(#3704ae, #c4148f);
  /*background-image: url(1.gif);*/
  background-size: cover;
  background-attachment: fixed; /* 背景固定，不随页面滚动 */
  background-repeat: space; /* 不重复背景 */
  background-position: center; /* 背景居中 */
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 255);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
@font-face {
  src: url("corleone.ttf");
  font-family: Corleone;
}
h1 {
  font-family: Corleone;
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #c4148f;
}
.container {
  /* 使用纯色背景，不受body的3.gif背景影响 */
  background-color: rgba(255, 255, 255, 0.1);
  background-image: none; /* 显式设置无背景图，防止继承 */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  /* position: relative 确保container成为定位上下文，与body的gif隔离 */
  position: relative;
}

#input-input-btn {
  padding: 15px 20px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  width: 80%;
  margin: 20px 0;
  transition: all 0.3s;
}

#input-input-btn:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hidden {
  display: none !important;
}

#count-el {
  font-size: 24px;
  line-height: 1.5;
  margin: 30px 0;
  min-height: 100px;
}

.emoji {
  font-size: 40px;
  margin: 20px 0;
  animation: pulse 2s infinite;
}

.instructions {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-top: 10px;
}

.reset-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.reset-btn:hover {
  background-color: #45a049;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ========================================
   凤凰飞翔动画容器样式
   ======================================== */

/* 凤凰容器：定位和动画控制 */
.phoenix {
  position: fixed; /* 固定定位，相对于视口 */
  animation: phoenixFly 8s infinite linear; /* 调用phoenixFly动画，8秒完成一个周期 */
  pointer-events: none; /* 鼠标事件穿透，不影响下层元素交互 */
  z-index: 1; /* 设置z-index为1，使其显示在文字下方（文字z-index一般为auto/0） */
  width: 200px; /* 容器宽度 */
  height: 200px; /* 容器高度 */
  display: flex; /* 使用flex布局 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
}

/* ========================================
   凤凰图片样式
   ======================================== */

/* 图片元素样式 */
.phoenix-img {
  width: 400px; /* 图片宽度，放大2倍显示 */
  height: 400px; /* 图片高度，放大2倍显示 */
  object-fit: contain; /* 保持图片宽高比，完全显示 */

  /* 边缘透明处理 - 径向渐变遮罩 */
  /* 从中心70%处是完全不透明的黑色，70%到100%逐渐变透明 */
  -webkit-mask-image: radial-gradient(
    circle,
    black 0%,
    black 70%,
    transparent 100%
  );
  mask-image: radial-gradient(circle, black 0%, black 70%, transparent 100%);

  /* 添加发光效果 */
  filter: drop-shadow(0 0 15px rgba(255, 100, 0, 0.6));

  /* 图片旋转动画 - 每1秒顺时针旋转1周 */
  animation: rotate360 3s linear infinite;
}

/* ========================================
   动画关键帧定义
   ======================================== */

/* phoenixFly动画：控制凤凰位置移动 */
/* 8秒内绕屏幕飞翔一圈 */
@keyframes phoenixFly {
  0% {
    left: 10%; /* 起始位置：左10% */
    top: 20%; /* 起始位置：上20% */
  }
  25% {
    left: 70%; /* 1/4周期：右侧上方 */
    top: 15%;
  }
  50% {
    left: 80%; /* 1/2周期：右侧中央 */
    top: 50%;
  }
  75% {
    left: 20%; /* 3/4周期：左侧下方 */
    top: 70%;
  }
  100% {
    left: 10%; /* 完整周期：回到起点 */
    top: 20%;
  }
}

/* rotate360动画：控制图片旋转 */
/* 1秒内顺时针旋转360度 */
@keyframes rotate360 {
  0% {
    transform: rotate(0deg); /* 初始状态：旋转0度 */
  }
  100% {
    transform: rotate(360deg); /* 结束状态：旋转360度（完整一圈） */
  }
}
