body {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-family: "Alegreya", jinkaiFont;
}

.page {
  display: flex;
  flex-direction: column;
  margin-top: 5%;
  width: 80%;
}

#about {
  display: flex;
}

.section {
  display: flex;
  flex-direction: column;
}

.section-container {
  display: grid;
  /*
   * This is the core of responsive layout:
   *   - auto-fit: Automatically calculates how many columns fit in a row.
   *   - minmax(320px, 1fr): Each column has a minimum width of 320px and a maximum width of 1fr (proportional to the remaining space).
   * Effect: When the screen width is sufficient, it automatically creates multiple columns; when the width is insufficient, the number of columns decreases automatically until it becomes a single column.
 */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1ch;
}

#img img {
  width: 400px;
  height: 400px;
}

#about-container {
  display: flex;
  flex-direction: column;
}

#links {
  display: flex;
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1ch;
  /* justify-content: space-between; */
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background-color: white;
  padding: 2ch;
  max-height: 15ch;
  overflow: hidden;
  color: #2d3748;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.25rem;
}

.card-description {
  overflow: hidden;
  color: #718096;
  font-size: 1rem;
}

.footer-line {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-width: 2px;
  border-style: solid none none none;
  border-color: #718096;
  width: 100%;
}

footer {
  text-align: center;
}
