
@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tagesschrift&display=swap');
/* Page layout */

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1vw;
  box-sizing: border-box;
  background: #cecece;
  color: #222;
}

/* Wrapper */


/* Title */

.detail-card {

  background-color: rgb(255, 255, 255);
  padding: 5vw;
  border-radius: 20px;
}

.detail-image {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  will-change: transform;
}

.detail-card h1 {
  font-family: "Tagesschrift";
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 30px;
}

/* CONTENT LAYOUT */

.detail-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.detail-wrapper {
  perspective: 1200px;
}
.detail-image {
  flex: 0 0 480px; /* 固定图片宽度 */
  position: relative;
  transform-style: preserve-3d;
}
.detail-image img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 20px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.15);

  transition: transform 0.55s ease;
  will-change: transform;
}



/* Text */

.detail-text {
  flex: 1;

}
.detail-text p {
  font-family: "Poetsen One";
}

#content {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

/* Page animation */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 1200px) {

  .detail-content {
    flex-direction: column;
    gap: 40px;
  }

  .detail-card h1 {
    font-size: 2.1rem;
  }

  #content {
    font-size: 16px;
  }

}

@media (max-width: 500px) {

  .detail-wrapper {
    padding: 30px 20px;
  }

  .detail-card h1 {
    font-size: 1.8rem;
  }

}

.back-btn {
  align-self: flex-start;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;

  font-family: "Poetsen One";
  font-size: 14px;

  text-decoration: none;

  color: #222;

  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;

  background: #fff;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.back-btn:hover {
  transform: translateY(-2px);

  background: #f5f5f5;

  box-shadow:
    0 5px 15px rgba(0,0,0,0.5);
}