/* ===== 印象吉祥 · 欢迎页 ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1208;
  -webkit-tap-highlight-color: transparent;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans Thai", sans-serif;
}

.welcome {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ===== 背景（0.00s 直接出现，无动画） ===== */
.welcome-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url('img/welcome-bg.jpg') center center / cover no-repeat;
  z-index: 0;
}

/* 背景柔光 */
.welcome-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 200, 90, 0.12), transparent 60%),
              radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.4), transparent 70%);
}

/* ===== 圆环（低亮度，0.00s 出现，大 + 向上） ===== */
.ring-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateY(-5vh); /* 圆环再往上移 */
}

.ring {
  width: 97%;
  height: auto;
  display: block;
  opacity: 0.45; /* 低亮度 */
  will-change: transform;
  animation: ring-rotate 28s linear infinite, ring-glow 1.3s ease-in-out;
  filter: drop-shadow(0 0 12px rgba(255, 200, 90, 0.4));
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 圆环柔亮一次（0.78-0.94s）后恢复低亮度 */
@keyframes ring-glow {
  0%      { opacity: 0.45; }
  60%     { opacity: 0.45; } /* 0.78s 前保持低亮度 */
  72%     { opacity: 0.95; } /* 0.94s 附近柔亮 */
  85%     { opacity: 0.65; }
  100%    { opacity: 0.45; } /* 恢复低亮度 */
}

/* ===== 品牌区（顶部，0.00s 开始淡入） ===== */
.logo-wrap {
  position: absolute;
  top: 7vh;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  animation: logo-fadein 0.7s ease-out 0.05s forwards;
}

.logo {
  width: 48%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255, 210, 110, 0.45));
}

@keyframes logo-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 小吉（左侧滑入 + 由小变大，0.08s，大幅放大 + 上移 + 靠拢） ===== */
.xiaoji-wrap {
  position: absolute;
  left: 2%;
  bottom: 32%;
  z-index: 2;
  width: 75%;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  animation: xiaoji-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards,
             xiaoji-bounce 0.16s ease-in-out 0.78s;
}

.xiaoji {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* 左侧滑入 + 由小变大 */
@keyframes xiaoji-in {
  0%   { opacity: 0; transform: translateX(-60px) scale(0.7); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* 极轻微回弹（0.78-0.94s） */
@keyframes xiaoji-bounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ===== 吞吞袋（右侧滑入 + 由小变大，0.16s，大幅放大 + 上移 + 靠拢） ===== */
.tuntun-wrap {
  position: absolute;
  right: 2%;
  bottom: 32%;
  z-index: 2;
  width: 45%;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  animation: tuntun-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards,
             tuntun-bounce 0.16s ease-in-out 0.82s;
}

.tuntun {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* 右侧滑入 + 由小变大 */
@keyframes tuntun-in {
  0%   { opacity: 0; transform: translateX(60px) scale(0.7); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* 极轻微回弹（吞吞袋稍晚，0.82-0.94s） */
@keyframes tuntun-bounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ===== 开启今日签按钮（0.82s 淡入 + 从下方向上浮动） ===== */
.enter-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  z-index: 4;
  display: flex;
  justify-content: center;
  opacity: 0;
  will-change: transform, opacity;
  animation: btn-in 0.32s ease-out 0.82s forwards,
             btn-float 3.2s ease-in-out 1.14s infinite;
}

.enter-btn {
  display: block;
  width: 70%;
  max-width: 340px;
}

.enter-btn:active {
  transform: scale(0.94);
}

.enter-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 200, 90, 0.45));
}

/* 淡入 + 从下方向上浮动（0.82-1.12s） */
@keyframes btn-in {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 最终位置轻微浮动（循环） */
@keyframes btn-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ===== 备案号（底部，低调展示） ===== */
.beian {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5vh;
  z-index: 5;
  text-align: center;
  pointer-events: auto;
}
.beian a {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.beian a:active {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 响应式 ===== */
@media (max-width: 380px) {
  .logo { width: 46%; }
  .xiaoji-wrap { width: 46%; }
  .tuntun-wrap { width: 38%; }
  .enter-btn { width: 68%; }
}
