html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

body {
  min-height: 100vh;
  box-sizing: border-box;
  /* 兼容旧版 iOS */
  padding-top: env(safe-area-inset-top, 0px);
  padding-top: constant(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-bottom: constant(safe-area-inset-bottom, 0px);
}

#bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: background-image 0.5s ease;
}

.content {
  position: relative;
  z-index: 2;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  /* 适配安全区 */
  padding-top: calc(2vh + env(safe-area-inset-top));
  padding-bottom: calc(2vh + env(safe-area-inset-bottom));
}

.quote {
  margin-top: 35vh;
  font-size: 2.2rem;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 0.1em;
  font-weight: 400;
  line-height: 1.3;
  font-family: 'SimSun', '宋体', serif;
  opacity: 0;
  animation: fadeInQuote 2s ease forwards;
}
@keyframes fadeInQuote {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timestamp {
  position: absolute;
  bottom: 24vh;
  left: 0;
  width: 100vw;
  text-align: center;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  font-family: 'Times New Roman', Times, serif;
}

.logo {
  position: absolute;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  width: auto;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .quote {
    font-size: 1.3rem;
    margin-top: 28vh;
    font-weight: bold;
  }
  .timestamp {
    font-size: 1rem;
    bottom: 32vh;
    font-family: 'Times New Roman', Times, serif;
  }
  .logo {
    height: 40px;
    bottom: 18vh;
  }
}

.quote.en {
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  letter-spacing: 0.08em; /* 可选，让英文更美观 */
}
