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

:root {
  --bg: #171007;
  --card: #141414;
  --card-elevated: #1a1a1a;
  --gold: #ffcc4f;
  --gold-light: #f0cd72;
  --gold-muted: #ba9f59;
  --text: #f0cd72;
  --text-soft: #e8e4dc;
  --white: #f5f0e6;
  --border: rgba(240, 205, 114, 0.28);
  --max-width: 500px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.card {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 14px;
}

.hero {
  text-align: center;
  margin-bottom: 18px;
}

.profile-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(72vw, 280px);
  height: min(72vw, 280px);
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold-muted);
  box-shadow:
    0 0 0 1px rgba(240, 205, 114, 0.15),
    0 0 32px rgba(240, 205, 114, 0.2);
  background: #000;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.name {
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  line-height: 1.15;
}

.title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.brand {
  color: var(--gold);
  font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.tagline {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 34ch;
  margin: 0 auto;
}

.btn-save {
  display: block;
  width: 100%;
  padding: 16px 24px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffd86a 0%, #ffcc4f 55%, #e8b030 100%);
  color: #1a1200;
  font-family: "Noto Sans TC", "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(255, 204, 79, 0.35);
}

.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 204, 79, 0.48);
}

.btn-save:active {
  transform: translateY(0);
}

.gallery {
  margin-bottom: 14px;
}

.gallery-item {
  background: var(--card-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--gold-muted);
  margin-bottom: 16px;
}

.contact-panel {
  margin-bottom: 0;
}

.contact-list {
  font-style: normal;
}

.contact-list p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-soft);
}

.contact-list p:last-child {
  margin-bottom: 0;
}

.label {
  color: var(--gold-light);
  font-weight: 600;
}

.contact-value {
  color: var(--text-soft);
}

.contact-list a {
  color: var(--text-soft);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

@media (min-width: 520px) {
  .card {
    padding: 44px 24px 60px;
  }

  .panel {
    padding: 26px 24px;
  }

  .profile-wrap {
    width: 280px;
    height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-save {
    transition: none;
  }
}
