:root {
  --bg-base: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-muted: #f8fafc;
  --bg-element: #f1f5f9;
  --bg-primary: #1e293b;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #475569;
  --text-muted: #64748b;
  --border-default: #e2e8f0;
  --border-strong: #cbd5e1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: "Noto Sans TC", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero__logo {
  display: block;
  height: 4rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgb(15 23 42 / 8%);
  opacity: 0.92;
}

.card:focus-visible {
  outline: 2px solid var(--bg-primary);
  outline-offset: 2px;
}

.card__label {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.625rem;
  background-color: var(--bg-element);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.card__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.site-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-default);
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--text-tertiary);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  transition: opacity 0.2s ease;
}

.site-footer__social-link:hover {
  opacity: 0.8;
}

.site-footer__social-link:focus-visible {
  outline: 2px solid var(--bg-primary);
  outline-offset: 2px;
}

.site-footer__social-icon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.site-footer__copyright {
  margin: 0 0 0.5rem;
}

.site-footer__legal {
  margin: 0.5rem 0 0;
}

@media (min-width: 640px) {
  .page {
    padding: 3rem 1.5rem 2rem;
  }

  .hero__logo {
    height: 5rem;
  }

  .cards {
    gap: 1.5rem;
  }
}
