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

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
  background-color: #efefef;
}

@keyframes slideBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  }
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.95)
    ),
    url('/assets/bg.png');
  background-size: auto 100%;
  background-position: 0 0;
  background-repeat: repeat-x;
  background-color: #efefef;               /* 背景墙色 */
  z-index: -1;
  animation: slideBackground 60s linear infinite;
}

/* Logo */
.logo {
  position: fixed;
  top: 0rem;
  left: 0rem;                 /* logo坐标 */
  width: 12rem;               /* logo尺寸 */
  height: 12rem;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Content styles */
.content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.content-box {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

h1 {                        /** Eloim, Essaim, frugativi et appellavi. */
  font-size: 5rem;
  font-weight: initial;
  color: #1f2937;
  margin-bottom: 1rem;
}

.content-box p {
  font-size: 1.25rem;
  color: #4b5563;
  line-height: 1.6;
}

/* 黑猫图 */
.cat-link {                /* 黑猫图坐标 */
  position: fixed;
  bottom: -8rem;
  right: 0rem;
  z-index: 10;
}

.cat-image {               /* 黑猫图尺寸 */
  width: 45rem;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.cat-image:hover {
  transform: scale(1.1);
}

/* 动效 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

h1.fade-in {               /* 字体渐变时间 */
  animation-delay: 0.5s;
}

p.fade-in {
  animation-delay: 1s;
}

               /* 媒体查询，适配移动端 */
@media (max-width: 768px) {
  .logo {
    width: 4rem;
    height: 4rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  .content-box {
    padding: 1.5rem;
    max-width: 90%;
  }

  .content-box p {
    font-size: 1rem;
  }

  .cat-link {
    bottom: 0rem;
    right: 0rem;
  }

  .cat-image {
    width: 10rem;
  }
}
