:root {
  color-scheme: dark;
  --color-page-bg: #141313;
  --color-surface: #1d1c1c;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text-primary: #f4e7cf;
  --color-text-secondary: rgba(244, 231, 207, 0.76);
  --color-accent: #e8cfa9;
  --color-accent-strong: #f8e3be;
  --color-line: #03b805;
  --shadow-elevated: 0 22px 45px rgba(0, 0, 0, 0.28);
  --radius-large: 22px;
  --radius-medium: 16px;
  --radius-small: 999px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--color-page-bg);
  color: var(--color-text-primary);
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.site-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.site-header img {
  width: clamp(120px, 16vw, 160px);
  height: auto;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
}

.site-lede {
  max-width: 520px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.hero-gallery {
  margin-bottom: 2.5rem;
}

.hero-gallery__images {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.hero-gallery__images img {
  border-radius: var(--radius-medium);
  height: 180px;
  object-fit: cover;
  box-shadow: var(--shadow-elevated);
}

.marquee {
  margin: 0 -1.5rem 3rem;
  background: var(--color-surface);
  padding: 1.25rem 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
}

.marquee__group {
  display: flex;
  gap: 1.25rem;
  flex-shrink: 0;
  animation: marqueeScroll 45s linear infinite;
}

.marquee__group:nth-child(2) {
  animation-delay: 22.5s;
}

.marquee__group img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.section-heading p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: linear-gradient(145deg, rgba(30, 29, 29, 0.96), rgba(20, 19, 19, 0.92));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  padding: 1.6rem;
  box-shadow: var(--shadow-elevated);
}

.profile-card__media {
  margin: 0;
}

.profile-card__media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: calc(var(--radius-large) - 6px);
}

.profile-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-small);
  background: rgba(232, 207, 169, 0.12);
  color: var(--color-accent-strong);
  font-weight: 600;
}

.profile-card__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.profile-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-card__tags li {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-small);
  background: rgba(232, 207, 169, 0.14);
  color: var(--color-accent-strong);
  font-size: 0.85rem;
}

.profile-card__meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.profile-card__meta div {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.35rem;
}

.profile-card__meta dt {
  font-weight: 600;
  color: var(--color-accent);
}

.profile-card__meta dd {
  margin: 0;
}

.profile-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: var(--radius-small);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.55rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button img {
  width: 26px;
  height: 26px;
}

.button--primary {
  background: linear-gradient(135deg, var(--color-accent-strong), var(--color-accent));
  color: #141010;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 35px rgba(0, 0, 0, 0.32);
}

.button--line {
  background: rgba(3, 184, 5, 0.12);
  color: var(--color-line);
  border: 1px solid rgba(3, 184, 5, 0.6);
}

.button--line:hover {
  background: rgba(3, 184, 5, 0.22);
  transform: translateY(-2px);
}

.button--footer {
  background: rgba(3, 184, 5, 0.18);
  border: 1px solid rgba(3, 184, 5, 0.4);
  color: var(--color-line);
  padding: 0.85rem 1.9rem;
  font-size: 1rem;
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-large);
  background: rgba(20, 19, 19, 0.92);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.site-footer__title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer__subtitle {
  margin: 0.35rem 0 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .profile-card__media img {
    height: 280px;
  }
}

@media (min-width: 880px) {
  .marquee {
    border-radius: var(--radius-large);
    margin-left: 0;
    margin-right: 0;
  }

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

  .profile-card {
    padding: 1.8rem;
  }

  .profile-card__media img {
    height: 260px;
  }
}
