.workflow-page {
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-header h1 {
  text-align: center;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.16em;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4rem;
  margin-top: auto;
  margin-bottom: auto;
}

/* ── Workflow Card ── */
.workflow-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
  background: transparent;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.workflow-card:hover {
  transform: translateY(-4px);
}

/* Icon wrapper */
.step-icon-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.step-icon-wrap .material-icons-outlined {
  font-size: 2rem;
  color: var(--text-1);
  opacity: 0.75;
  transition: color 0.35s ease, opacity 0.35s ease;
}

/* 修正 Firefox 下中文字型與 Material Icons 的渲染高度偏差 */
@-moz-document url-prefix() {
  .step-icon-wrap .material-icons-outlined {
    transform: translateY(0.2rem);
  }
}

.workflow-card:hover .step-icon-wrap .material-icons-outlined {
  color: var(--accent-color);
  opacity: 1;
}

/* Step number + title row */
.step-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.4rem;
  /* margin-bottom: 0.25rem; */
}

.step-num {
  /* font-family: "Noto Serif TC", serif; */
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.08em;
  line-height: 1;
  flex-shrink: 0;
}

.step-meta h3 {
  /* font-size: 1.05rem; */
  color: var(--text-1);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 0;
}

/* Description */
.workflow-card>p {
  /* font-size: 1rem; */
  color: var(--text-2);
  line-height: 1.8;
  margin: 0;
}

.emphasis {
  font-weight: 800;
}

/* ── Tablet: 2 columns ── */
@media (max-width: 1080px) {
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* gap: 2.5rem 3rem; */
  }
}

/* ── Mobile: 1 column ── */
@media (max-width: 768px) {
  .workflow-grid {
    font-size: 16px;
  }

  .workflow-grid h3 {
    font-size: 1.6rem;
  }

  .step-icon-wrap .material-icons-outlined {
    font-size: 2rem;
  }

  .page-header {
    margin-bottom: 2.4rem;
  }


  .workflow-grid {
    grid-template-columns: 1fr;
  }
}