:root {
  --ink: #162235;
  --muted: #5f6b7a;
  --line: #d9e1ea;
  --paper: #fbfcfd;
  --card: #ffffff;
  --teal: #0f8a83;
  --teal-dark: #08625e;
  --gold: #b9822c;
  --coral: #d86145;
  --green: #4f7c45;
  --shadow: 0 14px 36px rgba(20, 32, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-hero {
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(12, 27, 46, 0.82), rgba(12, 27, 46, 0.46) 58%, rgba(12, 27, 46, 0.12)),
    url("assets/cover/about-taichung.jpg") center / cover no-repeat;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(10, 22, 35, 0.72);
  backdrop-filter: blur(12px);
}

.topbar a {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.topbar .brand {
  margin-right: auto;
  letter-spacing: 0;
  font-size: 18px;
}

.language-switch {
  position: sticky;
  top: 50px;
  z-index: 9;
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(10, 22, 35, 0.66);
  backdrop-filter: blur(12px);
}

.lang-button {
  min-width: 42px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.lang-button.active {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--ink);
}

.hero-copy {
  width: min(720px, 100%);
  padding: 0 20px 42px;
  overflow: hidden;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 14px;
  max-width: 8.2em;
  font-size: clamp(32px, 9.2vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hero-copy p:not(.eyebrow) {
  max-width: 18em;
  margin: 0 0 22px;
  font-size: 19px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hero-button,
.site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
}

main {
  padding: 0 16px 56px;
}

.about-section,
.contact-section {
  width: min(1080px, 100%);
  margin: 28px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr;
}

.about-section img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.about-section > div,
.contact-section {
  padding: 22px;
}

h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: 0;
}

.value-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.value-list span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f5f2;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.controls {
  width: min(1080px, 100%);
  margin: 34px auto 18px;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.filter {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.filter.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.member-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.member-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20, 32, 48, 0.1);
}

.member-photo {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
  display: block;
}

.member-body {
  padding: 18px;
}

.category-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 900;
}

.member-card h3 {
  margin: 0 0 4px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 0;
}

.english-name {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}

.lang-label {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f7efe4;
  color: #8a5c1c;
  font-size: 13px;
  font-weight: 900;
}

.summary {
  margin: 0;
  color: #263347;
  font-size: 18px;
  line-height: 1.8;
}

.member-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0;
}

.identity-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.language-details {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}

.language-details summary {
  cursor: pointer;
  min-height: 42px;
  font-weight: 900;
  color: var(--teal-dark);
}

.language-details p {
  margin: 0 0 12px;
  color: var(--muted);
}

.contact-section dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-section div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.contact-section dt {
  color: var(--gold);
  font-weight: 900;
}

.contact-section dd {
  margin: 0;
  font-size: 18px;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

@media (min-width: 760px) {
  .site-hero {
    min-height: 86vh;
  }

  .hero-copy {
    padding-left: max(48px, calc((100vw - 1080px) / 2));
    padding-bottom: 70px;
  }

  main {
    padding-inline: 28px;
  }

  .about-section {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
  }

  .about-section img {
    height: 100%;
    min-height: 360px;
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-actions {
    grid-template-columns: 1fr;
  }
}

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