
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
}

nav {
  background: #f5f5f5;
  padding: 1em;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  
}

nav li {
  display: inline;
  margin: 0 15px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.banner {
  padding: 3em 1em;
  text-align: center;
  background: #eee;
}

section {
  padding: 2em;
  max-width: 900px;
  margin: auto;
}

.profile-img {
  width: 300px;
  border-radius: 50%;
  display: block;
  margin: 1em auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1em;
}

.project-card {
  border: 1px solid #ddd;
  padding: 1em;
  text-align: center;
}

.project-card img {
  width: 100%;
  height: auto;
}

.video-wrapper {
  text-align: left;
  margin-top: 1em;
}

footer {
  text-align: center;
  padding: 1em;
  background: #f5f5f5;
  margin-top: 2em;
}

.project-images img {
  display: block;
 
  width: 711px;
  height: 400px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);

  /* 新加的动画效果 */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

/* 定义fadeInUp动画 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-images img:hover {
  transform: translateY(0) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Sacred Intelligence project page */
.sacred-project .project-subtitle {
  font-style: italic;
  margin-top: -0.5em;
  margin-bottom: 1.5em;
}

.project-section {
  margin-top: 2.5em;
}

.responsive-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.responsive-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-documentation img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 1.5em 0;
  border-radius: 3px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  opacity: 1;
  transform: none;
  animation: none;
}

.project-documentation img:hover {
  transform: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.portfolio-link {
  margin-top: 2em;
}

.portfolio-link a {
  display: inline-block;
  padding: 0.75em 1em;
  border: 1px solid #333;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.portfolio-link a:hover {
  background: #333;
  color: #fff;
}

@media (max-width: 760px) {
  section {
    padding: 1.25em;
  }

  .project-images img {
    max-width: 100%;
  }
}
