body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 使用用户提供的雨景图片作为背景（请将图片保存为 rain-bg.jpg 到项目根）
     在图片上叠加深色遮罩来突出毛玻璃卡片 */
  background:
    linear-gradient(rgba(6,10,14,0.55), rgba(6,10,14,0.55)),
    url('rain-bg.jpg') center/cover no-repeat;
  font-family: sans-serif;
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

/* 近景雨（粗、长、速度快）——增强景深与雨量感 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(115deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 2px 180px, 3px 360px; /* 长条线，制造拉长效果 */
  opacity: 0.55;
  transform: translateZ(0);
  animation: rainMoveNear 0.7s linear infinite;
  mix-blend-mode: screen;
  filter: blur(0.6px) contrast(1.05);
}

@keyframes rainMoveNear {
  from { background-position: 0 0, 0 0; }
  to   { background-position: -240px 2400px, -480px 4800px; }
}

/* 远景雨（细、短、速度慢）——营造远处雨幕 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(115deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(115deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 1px 60px, 1px 120px, 1px 220px;
  opacity: 0.36;
  transform: translateZ(0);
  animation: rainMoveFar 1.6s linear infinite;
  mix-blend-mode: screen;
  filter: blur(0.2px) contrast(1.02);
}

@keyframes rainMoveFar {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: -120px 1200px, -240px 2400px, -480px 4800px; }
}

.card {
  max-width: 700px;
  padding: 32px 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  position: relative;
  z-index: 3;
  margin: 0 20px; /* 增加左右边距，防止在小屏幕贴边 */
}

.title {
  font-size: 20px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 600;
}

.quote {
  font-size: 26px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #ffffff;
}

.author {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

/* 雨滴容器与样式 */
.raindrops {
  position: fixed;
  inset: 0; /* 覆盖整个视口 */
  z-index: 4; /* 显示在页面最顶层（会覆盖卡片） */
  pointer-events: none;
  overflow: visible;
}

.raindrops .drop {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: transform 1.6s cubic-bezier(.2,.9,.2,1), opacity 1.6s ease;
  will-change: transform, opacity;
}

.raindrops .drop.fall {
  transform: translate(-50%, -30%) scale(1);
  opacity: 1;
}

/* 小水波扩散，当 drop 完成时会出现轻微的光圈 */
.raindrops .ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0.18;
  pointer-events: none;
  transition: transform 700ms ease-out, opacity 700ms ease-out;
}

.raindrops .ripple.expand {
  transform: translate(-50%, -50%) scale(2.8);
  opacity: 0;
}

.refresh-btn {
  margin-top: 24px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.refresh-btn:active {
  transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .card {
    padding: 24px 20px;
    margin: 0 16px;
    width: 90%; /* 宽度自适应 */
    box-sizing: border-box;
  }

  .title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .quote {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .author {
    font-size: 12px;
  }

  .refresh-btn {
    padding: 10px 24px;
    font-size: 14px;
    margin-top: 20px;
  }
}
