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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  color: #e91e63;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #fce4ec;
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.card-header h2 {
  font-size: 1.5rem;
  margin-left: 0.5rem;
}

.card-content {
  display: flex;
  flex-direction: column;
}

.card-link {
  display: flex;
  align-items: center;
  color: #555;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: #e91e63;
}

.icon {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer {
  background-color: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  padding: 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.footer-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-line span {
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  /* Remove any vertical centering for mobile */
  body {
    display: block;
  }

  .container {
    margin-top: 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 769px) {
  body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
  }

  .container {
    margin-top: 18vh; /* Adjust this value to fine-tune the vertical position */
  }
}

/* 添加图片懒加载 */
img {
  loading: lazy;
}

