:root {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #000;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  color: inherit;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}

.nav-toggle:hover {
  background: #f3f4f6;
}

.nav-toggle:focus-visible {
  outline: 2px solid #e5e7eb;
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-menu {
  display: none;
  width: 100%;
}

.nav-menu.is-open {
  display: block;
}

.nav-menu ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  font-weight: 500;
  border: 1px solid #f3f4f6;
  border-radius: 0.5rem;
  background: #f9fafb;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  color: #111827;
}

.nav-menu a:hover {
  background: #f3f4f6;
}

.page {
  padding: 0 1rem 0.5rem;
}

.page > h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.cards,
.photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 12rem;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.card-head {
  display: flex;
  flex: 1;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-head h3 {
  flex: 1;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
}

.sex-m {
  color: #2563eb;
}

.sex-f {
  color: #dc2626;
}

.links-label {
  margin: 0 0 0.25rem;
  color: #6b7280;
}

.links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  display: inline-block;
  min-width: 5rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  text-align: center;
  text-decoration: none;
  color: #f3f4f6;
}

.btn-live {
  background: #dc2626;
}

.btn-live:hover {
  background: #ef4444;
}

.btn-photo {
  background: #22c55e;
}

.btn-photo:hover {
  background: #4ade80;
}

.btn-shot {
  background: #16a34a;
}

.btn-shot:hover {
  background: #22c55e;
}

.btn-fb {
  background: #3b82f6;
}

.btn-fb:hover {
  background: #60a5fa;
}

.meta {
  margin: 0;
  text-align: right;
  font-size: 0.875rem;
  color: #9ca3af;
}

.home {
  width: 91.666%;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.home img {
  display: block;
  width: 10rem;
  height: auto;
  margin: 0 auto;
  border-radius: 0.5rem;
}

.home-copy {
  padding: 1rem;
}

.home-copy p {
  margin: 0 0 0.5rem;
  text-indent: 2rem;
}

.year-bar {
  display: flex;
  width: 14rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.year-bar span {
  padding: 0.5rem 1rem;
}

.year-bar select {
  flex: 1;
  min-width: 0;
  border: 0;
  border-left: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 0 0.5rem;
  background: transparent;
  color: inherit;
  outline: none;
}

.photo {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 1px 3px rgb(0 0 0 / 0.1);
}

.photo div:first-child {
  flex: 1;
  margin-bottom: 0.25rem;
}

.photo img {
  width: 100%;
}

.photo span {
  display: block;
  text-align: center;
}

@media (min-width: 640px) {
  .cards,
  .photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu,
  .nav-menu.is-open {
    display: block;
    width: auto;
  }

  .nav-menu ul {
    flex-direction: row;
    gap: 2rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-menu a {
    padding: 0;
    border-radius: 0;
  }

  .nav-menu a:hover {
    background: transparent;
    color: #1d4ed8;
  }

  .home img {
    width: 14rem;
  }

  .home-copy p {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .cards,
  .photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home {
    width: 83.333%;
    display: flex;
    padding: 0;
  }

  .home img {
    width: 24rem;
    margin: 0;
    border-radius: 0;
  }
}

@media (min-width: 1280px) {
  .home {
    width: 75%;
  }
}

@media (min-width: 1536px) {
  .cards,
  .photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-color-scheme: dark) {
  body {
    color: #fff;
    background: #000;
  }

  .brand {
    color: #fff;
  }

  .nav-toggle {
    color: #9ca3af;
  }

  .nav-toggle:hover {
    background: #374151;
  }

  .nav-toggle:focus-visible {
    outline-color: #4b5563;
  }

  .nav-menu ul {
    background: #1f2937;
    border-color: #374151;
  }

  .nav-menu a {
    color: #fff;
  }

  .nav-menu a:hover {
    background: #374151;
    color: #fff;
  }

  .card {
    background: #1e293b;
    border-color: #374151;
  }

  .links-label {
    color: #9ca3af;
  }

  .btn {
    color: #d1d5db;
  }

  .btn-live {
    background: #991b1b;
  }

  .btn-live:hover {
    background: #b91c1c;
  }

  .btn-photo,
  .btn-shot {
    background: #166534;
  }

  .btn-photo:hover,
  .btn-shot:hover {
    background: #15803d;
  }

  .btn-fb {
    background: #1e40af;
  }

  .btn-fb:hover {
    background: #1d4ed8;
  }

  .home {
    background: #0f172a;
    border-color: #1f2937;
  }

  .year-bar {
    border: 2px solid #374151;
  }

  .year-bar select {
    border-left: 2px solid #374151;
    background: #0f172a;
  }

  .photo {
    border: 2px solid #374151;
  }
}

@media (prefers-color-scheme: dark) and (min-width: 768px) {
  .nav-menu ul {
    background: transparent;
    border: 0;
  }

  .nav-menu a:hover {
    background: transparent;
    color: #3b82f6;
  }
}
